/* ==========================================================================
   PERME Revamp v1 - Official Logo Palette & Visible Hero Video
   ========================================================================== */

:root {
    /* Exact Brand Colors Extracted from PERME Logo & Spheres */
    --brand-navy: #001868;             /* Deep Navy Blue (Gobernanza & Authority) */
    --brand-navy-dark: #001050;        /* Midnight Navy */
    --brand-orange: #e87830;           /* Vibrant Sunset Orange (Identidad & Energy) */
    --brand-coral: #f84010;            /* Warm Coral Red Accent */
    --brand-amber: #f09030;            /* Warm Amber Gold */
    --brand-cyan: #38a0e0;             /* Sky Cyan Blue */
    --brand-violet: #6058c0;           /* Royal Violet (Cultura & Innovation) */
    
    /* Light Theme Backgrounds & Surfaces */
    --bg-main: #fafafa;                 /* Crisp Clean Porcelain Off-White */
    --bg-surface: #ffffff;              /* Pure White Card Surface */
    --bg-cream-warm: #fff9f5;           /* Subtle Warm Cream Tint */
    --bg-glass: rgba(255, 255, 255, 0.92);
    
    --border-color: #e5e7eb;            /* Soft Slate Border */
    --border-highlight: #f09030;        /* Orange Highlight Border */
    
    /* High-Contrast Professional Text */
    --text-primary: #001050;            /* Deep Navy for Headings & Titles */
    --text-secondary: #1e293b;          /* Dark Slate Gray for Body Text */
    --text-muted: #64748b;              /* Muted Slate */
    
    --primary: #e87830;                 /* Main Brand Orange */
    --primary-hover: #f84010;           /* Active Coral Hover */
    
    --font-heading: 'Outfit', 'Playfair Display', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-card: 0 10px 30px -5px rgba(0, 24, 104, 0.08);
    --shadow-hover: 0 16px 35px -8px rgba(232, 120, 48, 0.22);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    background-color: var(--bg-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.sub-heading {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--brand-orange);
    background: #fff4ec;
    border: 1px solid rgba(232, 120, 48, 0.25);
    padding: 0.3rem 1.15rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.25;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    max-width: 680px;
    margin-inline: auto;
}

/* Navbar - Consistent Executive Glass Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 24, 104, 0.08);
    padding: 0.7rem 0;
    box-shadow: 0 4px 24px rgba(0, 24, 104, 0.06);
}

.nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 58px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-pill-group {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(241, 245, 249, 0.75);
    border: 1px solid rgba(0, 24, 104, 0.07);
    padding: 0.3rem;
    border-radius: 99px;
}

.nav-links a.nav-item {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.48rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-links a.nav-item:hover {
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.85);
}

.nav-links a.nav-item.active {
    color: var(--brand-orange);
    background: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 24, 104, 0.08);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #002896 100%);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700 !important;
    padding: 0.62rem 1.35rem;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 24, 104, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-coral) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 120, 48, 0.38);
}

.cta-arrow {
    transition: transform 0.25s ease;
}

.btn-nav-cta:hover .cta-arrow {
    transform: translateX(3px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.mobile-toggle:hover {
    border-color: var(--brand-orange);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brand-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--brand-orange);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--brand-orange);
}

/* Hero Section & Visible Video Background */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
    background: #001050;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.65;  /* Clear, crisp video visibility */
    transition: opacity 1.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.45) 0%, rgba(250, 250, 250, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: #ffffff;
    color: var(--brand-orange);
    border: 1px solid rgba(232, 120, 48, 0.4);
    padding: 0.5rem 1.4rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    color: var(--brand-navy);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.65;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-coral) 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.95rem 2.25rem;
    border-radius: 99px;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(232, 120, 48, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(248, 64, 16, 0.55);
}

.btn-secondary {
    background: #ffffff;
    color: var(--brand-navy);
    border: 1.5px solid var(--brand-navy);
    font-weight: 700;
    padding: 0.95rem 2.25rem;
    border-radius: 99px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: #fff4ec;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-orange);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* GIC Methodology Grid */
.gic-section {
    background: #f6f8fc;
}

.gic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.75rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.gic-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-hover);
}

.gic-card.highlighted {
    border: 2px solid var(--brand-orange);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
}

.gic-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--brand-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    text-transform: uppercase;
}

.gic-letter {
    position: absolute;
    right: 1rem;
    bottom: -1rem;
    font-family: var(--font-heading);
    font-size: 7.5rem;
    font-weight: 900;
    color: rgba(0, 24, 104, 0.04);
    pointer-events: none;
    line-height: 1;
}

.gic-icon-wrapper {
    margin-bottom: 1.5rem;
}

.gic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--brand-navy);
}

.gic-card p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
}

.gic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gic-list li {
    font-size: 0.925rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.gic-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-orange);
    font-weight: 800;
}

.gic-mandatory-note {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f0f6ff;
    border-left: 3px solid var(--brand-navy);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.4;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.service-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.service-box:hover {
    border-color: var(--brand-orange);
    transform: translateY(-4px);
    background: #fffbf8;
}

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.service-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--brand-navy);
}

.service-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Team Grid */
.team-section {
    background: #f6f8fc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-orange);
}

.team-photo {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #eef2f7;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-smooth);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.75rem;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--brand-navy);
}

.team-role {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.team-info p {
    font-size: 0.925rem;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--brand-orange);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.author-info strong {
    display: block;
    color: var(--brand-navy);
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Blog Articles & Carousel Slider */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 300px;
}

.carousel-btn {
    background: #ffffff;
    color: var(--brand-navy);
    border: 1.5px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--brand-orange);
    color: #ffffff;
    border-color: var(--brand-orange);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--brand-orange);
    width: 28px;
    border-radius: 99px;
}

.article-card {
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.article-card:hover {
    border-color: var(--brand-orange);
    transform: translateY(-5px);
    background: #fffbf8;
}

.article-card-img {
    width: 100%;
    height: 195px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 1.5rem 1.75rem 0.5rem;
}

.article-card-footer {
    padding: 0 1.75rem 1.75rem;
}

.article-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--brand-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    color: var(--brand-navy);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-read-btn {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Contact Section */
.contact-section {
    background: #f6f8fc;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.contact-text {
    min-width: 0;
    max-width: 100%;
}

.contact-text h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-icon {
    font-size: 1.5rem;
    background: #fff4ec;
    padding: 0.65rem;
    border-radius: 14px;
}

.c-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-item a, .c-item span {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: #ffffff;
}

.btn-submit {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-coral) 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(232, 120, 48, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 64, 16, 0.45);
}

/* Modal Article Reader */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 24, 104, 0.6);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.25rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--brand-navy);
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-top: 1rem;
    max-width: 380px;
}

.footer-links h4, .footer-standards h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.footer-links a, .footer-standards a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links a:hover, .footer-standards a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FAQ Accordion Section (Native HTML5 <details>/<summary> Standard) */
.faq-section {
    background: var(--bg-surface);
}

.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    transition: var(--transition-smooth);
}

.faq-item[open] {
    border-color: var(--brand-orange);
    background: #fffcf9;
    box-shadow: 0 6px 20px rgba(232, 120, 48, 0.08);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.85rem;
}

/* Responsive Breakdown */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .contact-box {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.25rem;
        border: 1px solid rgba(0, 24, 104, 0.1);
        border-radius: 24px;
        box-shadow: 0 20px 45px rgba(0, 24, 104, 0.16);
        gap: 0.85rem;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-pill-group {
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
        gap: 0.25rem;
    }
    .nav-links a.nav-item {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    .nav-links a.nav-item.active {
        background: #fff4ec;
        box-shadow: none;
    }
    .btn-nav-cta {
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.lang-selector {
    position: relative;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-navy);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-current:hover {
    border-color: var(--brand-orange);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-caret {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 24, 104, 0.12);
    list-style: none;
    min-width: 145px;
    padding: 0.4rem;
    z-index: 1100;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
    display: block;
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-dropdown li:hover {
    background: #fff4ec;
    color: var(--brand-orange);
}

/* Secondary Hero Video Crossfade */
.secondary-hero-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Team LinkedIn Button */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    background: #f0f6ff;
    color: #0a66c2;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.linkedin-btn:hover {
    background: #0a66c2;
    color: #ffffff;
}

/* Contact Form 2-Column Row & Status Message */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-status-msg {
    display: none;
    padding: 0.9rem 1.15rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.form-status-msg.success {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
}

.form-status-msg.error {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #991b1b;
}

/* Post Hero Featured Image & Related Grid */
.post-hero-image-wrap {
    margin-top: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    max-height: 420px;
}

.post-featured-img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Dedicated Blog Page & Individual Post Page Styles */
.blog-page-header {
    padding: 9.5rem 1.5rem 3.5rem;
    background: linear-gradient(180deg, #fff6f0 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.blog-page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.25;
    max-width: 820px;
    margin: 0.5rem auto 1rem;
}

.blog-page-header p {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto;
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-header-section {
    padding: 9rem 1.5rem 3rem;
    background: linear-gradient(180deg, #fff6f0 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-badge {
    display: inline-block;
    background: #fff4ec;
    color: var(--brand-orange);
    border: 1px solid rgba(232, 120, 48, 0.3);
    padding: 0.35rem 1.15rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.22;
    margin-bottom: 1.25rem;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-content-body {
    padding: 3.5rem 0 5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-back:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* ==========================================================================
   Plataforma de Gestión de Sostenibilidad Estratégica ESG (IGSE Carousel)
   ========================================================================== */
.platform-section {
    background: linear-gradient(180deg, #001050 0%, #001868 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.platform-section .sub-heading {
    background: rgba(232, 120, 48, 0.18);
    border-color: rgba(232, 120, 48, 0.45);
    color: #ff9d5c;
}

.platform-section .section-header h2 {
    color: #ffffff;
}

.platform-section .section-header p {
    color: #cbd5e1;
    max-width: 780px;
}

.platform-showcase {
    max-width: 1120px;
    margin: 0 auto;
}

.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.plat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.plat-tab:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.plat-tab.active {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-coral) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(232, 120, 48, 0.35);
}

.plat-tab-num {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.22);
    padding: 0.15rem 0.48rem;
    border-radius: 99px;
}

.platform-browser-frame {
    background: #0f172a;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.browser-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.b-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.b-dot.red { background: #ef4444; }
.b-dot.yellow { background: #f59e0b; }
.b-dot.green { background: #10b981; }

.browser-url {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 1.1rem;
    border-radius: 99px;
    flex: 1;
    max-width: 540px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plat-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.plat-nav-btn:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.plat-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    min-width: 38px;
    text-align: center;
}

.plat-viewport {
    position: relative;
    background: #ffffff;
}

.plat-slide {
    display: none;
    animation: platFadeIn 0.35s ease;
}

.plat-slide.active {
    display: block;
}

@keyframes platFadeIn {
    from { opacity: 0.4; transform: scale(0.995); }
    to { opacity: 1; transform: scale(1); }
}

.plat-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.plat-slide-info {
    background: #0f172a;
    padding: 1.5rem 2rem;
    color: #ffffff;
}

.plat-slide-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff9d5c;
    margin-bottom: 0.45rem;
}

.plat-slide-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.plat-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.plat-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.plat-dot.active {
    width: 30px;
    border-radius: 99px;
    background: var(--brand-orange);
}

.platform-cta-bar {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platform-cta-bar strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.platform-cta-bar span {
    font-size: 0.92rem;
    color: #cbd5e1;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.35rem;
    }
    .contact-box {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2.25rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container,
    .post-container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
    }
    .section {
        padding: 4rem 0;
    }
    .brand-logo img {
        height: 46px;
    }
    .hero-section {
        padding: 6.75rem 1rem 3rem;
        min-height: auto;
    }
    .hero-video {
        object-position: center 20%;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        max-width: 100%;
    }
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.24;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .hero-subtitle {
        font-size: 1.02rem;
        margin-bottom: 1.75rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin-bottom: 2.25rem;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.25rem;
        font-size: 0.98rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }
    .section-header {
        margin-bottom: 2.25rem;
    }
    .section-header h2,
    .blog-page-header h1,
    .post-title {
        font-size: 1.75rem;
        line-height: 1.26;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .gic-grid,
    .services-grid,
    .team-grid,
    .testimonials-slider,
    .blog-archive-grid,
    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .gic-card,
    .service-box,
    .testimonial-card {
        padding: 1.75rem 1.35rem;
    }
    .carousel-wrapper {
        gap: 0.4rem;
    }
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    /* Contact Box & Form Mobile Fixes */
    .contact-box {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1.15rem;
        gap: 1.75rem;
        border-radius: 18px;
    }
    .contact-text h2 {
        font-size: 1.65rem;
    }
    .c-item {
        align-items: flex-start;
    }
    .c-item a,
    .c-item span {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .btn-submit {
        width: 100%;
        padding: 0.95rem 1rem;
        font-size: 1rem;
    }
    /* Platform ESG Showcase Mobile Fixes */
    .platform-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .plat-tab {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.55rem 0.95rem;
    }
    .browser-url {
        display: none;
    }
    .plat-slide-info {
        padding: 1.25rem 1.15rem;
    }
    .plat-slide-info h3 {
        font-size: 1.12rem;
    }
    .platform-cta-bar {
        flex-direction: column;
        text-align: center;
        padding: 1.35rem 1.15rem;
    }
    .platform-cta-bar .btn-primary {
        width: 100%;
        text-align: center;
    }
    /* Blog & Post Pages Mobile Fixes */
    .blog-page-header,
    .post-header-section {
        padding: 6.75rem 1rem 2.25rem;
    }
    .post-content-body {
        padding: 2rem 0 3.5rem;
        font-size: 0.98rem;
        overflow-wrap: break-word;
    }
    #perme-custom-post .points-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    #perme-custom-post .intro-block,
    #perme-custom-post .outro-block,
    #perme-custom-post .pcp-card,
    #perme-custom-post .pcp-cta-section {
        padding: 1.35rem 1.15rem !important;
    }
    .faq-item {
        padding: 1rem 1.15rem;
    }
    .faq-question {
        font-size: 1rem;
        gap: 0.75rem;
    }
}





