/* ============================================= */
/*  SUPPORT & INFRAESTRUCTURA — Estilos 2026     */
/*  Mobile-First | Optimizado Hostinger LiteSpeed */
/* ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Paleta principal */
    --navy-deep:    #0A1F3F;
    --navy-mid:     #132B52;
    --navy-light:   #1A3A6B;
    --slate:        #2F3E4E;
    --slate-light:  #6B7B8D;
    --slate-lighter:#A0ACB8;
    --white:        #F8F9FA;
    --pure-white:   #FFFFFF;
    --cyan-accent:  #00C6D7;
    --cyan-dark:    #009FAD;
    --orange-burnt: #D4603A;
    --orange-hover: #BF5030;

    /* Tipografía */
    --font-primary: 'Inter', 'Roboto', 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Espaciado */
    --section-gap:  clamp(3rem, 8vw, 6rem);
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* Bordes y sombras */
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-full:  9999px;
    --shadow-card:  0 4px 24px rgba(10, 31, 63, 0.08);
    --shadow-elevated: 0 12px 40px rgba(10, 31, 63, 0.15);
    --shadow-glow-cyan: 0 0 30px rgba(0, 198, 215, 0.15);

    /* Transiciones */
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cyan-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--cyan-dark); }
a:focus-visible {
    outline: 2px solid var(--cyan-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Accesibilidad ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--navy-deep);
    color: var(--pure-white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Utilidades ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-cyan { color: var(--cyan-accent); }
.text-orange { color: var(--orange-burnt); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary {
    background: var(--cyan-accent);
    color: var(--navy-deep);
    border-color: var(--cyan-accent);
}
.btn-primary:hover {
    background: var(--cyan-dark);
    border-color: var(--cyan-dark);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}
.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--pure-white);
    color: var(--pure-white);
}

/* ---------- Navegación ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 31, 63, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition);
}
.site-header.scrolled {
    background: rgba(10, 31, 63, 0.97);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 36px; width: auto; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    color: var(--pure-white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity var(--transition), color var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-accent);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link:focus-visible {
    opacity: 1;
    color: var(--pure-white);
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

.nav-link-cta {
    background: var(--cyan-accent);
    color: var(--navy-deep);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    opacity: 1;
}
.nav-link-cta:hover {
    background: var(--pure-white);
    color: var(--navy-deep);
}
.nav-link-cta::after { display: none; }

/* Hamburguesa (móvil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--pure-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================= */
/*  HERO SECTION                                 */
/* ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-deep);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,31,63,0.92) 0%, rgba(19,43,82,0.78) 50%, rgba(10,31,63,0.88) 100%);
    z-index: 2;
}
.hero-bg-picture {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    padding: 6rem var(--container-padding) 4rem;
    color: var(--pure-white);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,198,215,0.12);
    border: 1px solid rgba(0,198,215,0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan-accent);
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--pure-white);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--slate-lighter);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-inline: auto;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--cyan-accent);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--slate-lighter);
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--slate-lighter);
    font-size: 0.75rem;
    animation: bounce-down 2s infinite;
}
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================= */
/*  SECCIONES GENÉRICAS                          */
/* ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header-left { text-align: left; }
.section-overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan-accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-deep);
    margin-bottom: 1rem;
}
.section-description {
    font-size: 1.05rem;
    color: var(--slate-light);
    max-width: 650px;
    margin: 0 auto;
}

/* ============================================= */
/*  SERVICIOS                                    */
/* ============================================= */
.services {
    padding: var(--section-gap) 0;
    background: var(--pure-white);
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(107, 123, 141, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    transition: all var(--transition-slow);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 198, 215, 0.25);
}
.card-featured {
    border-color: rgba(212, 96, 58, 0.3);
    background: linear-gradient(180deg, rgba(212,96,58,0.03) 0%, var(--white) 40%);
}
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--orange-burnt);
    color: var(--pure-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.icon-cyan {
    background: rgba(0, 198, 215, 0.1);
    color: var(--cyan-accent);
}
.icon-orange {
    background: rgba(212, 96, 58, 0.1);
    color: var(--orange-burnt);
}
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
}
.card-description {
    font-size: 0.95rem;
    color: var(--slate-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}
.card-features li {
    font-size: 0.88rem;
    color: var(--slate);
    padding: 6px 0;
    padding-left: 1.5rem;
    position: relative;
}
.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-accent);
    opacity: 0.6;
}
.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cyan-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-link:hover { gap: 8px; }

/* ============================================= */
/*  CASOS DE ÉXITO                               */
/* ============================================= */
.cases {
    padding: var(--section-gap) 0;
    background: var(--white);
}
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.case-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow);
}
.case-card:hover { box-shadow: var(--shadow-elevated); }
.case-image-wrapper {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}
.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.case-card:hover .case-image { transform: scale(1.03); }
.case-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--navy-deep);
    color: var(--cyan-accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}
.case-tag-orange { color: var(--orange-burnt); }
.case-content { padding: 1.5rem; }
.case-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 1rem;
}
.case-detail { margin-bottom: 1rem; }
.case-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange-burnt);
    margin-bottom: 0.25rem;
}
.case-detail p { font-size: 0.92rem; color: var(--slate); }
.case-result {
    background: rgba(0,198,215,0.05);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}
.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan-accent);
}
.metric-desc { font-size: 0.7rem; color: var(--slate-light); }

/* ============================================= */
/*  DIAGNÓSTICO (FORMULARIO + SUBIDA)            */
/* ============================================= */
.diagnostic {
    padding: var(--section-gap) 0;
    background: var(--navy-deep);
    color: var(--pure-white);
}
.diagnostic .section-title { color: var(--pure-white); }
.diagnostic .section-description { color: var(--slate-lighter); }
.diagnostic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.diagnostic-description {
    color: var(--slate-lighter);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}
.diagnostic-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate-lighter);
}
.benefit-item svg { flex-shrink: 0; margin-top: 1px; }

/* Formulario */
.diagnostic-form-wrapper {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    color: var(--slate);
    box-shadow: var(--shadow-elevated);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy-deep);
    margin-bottom: 0.4rem;
}
.form-hint {
    font-size: 0.78rem;
    color: var(--slate-light);
    margin-bottom: 0.75rem;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--navy-deep);
    background: var(--white);
    border: 2px solid rgba(107, 123, 141, 0.25);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 0 3px rgba(0, 198, 215, 0.15);
}
.form-input.error { border-color: var(--orange-burnt); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.char-count {
    font-size: 0.7rem;
    color: var(--slate-light);
    text-align: right;
    display: block;
    margin-top: 4px;
}
.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--orange-burnt);
    min-height: 1.2em;
    margin-top: 4px;
}

/* Zona de subida */
.upload-zone {
    border: 2px dashed rgba(107, 123, 141, 0.4);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(248, 249, 250, 0.5);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--cyan-accent);
    background: rgba(0, 198, 215, 0.04);
}
.upload-zone-content svg { margin-bottom: 0.75rem; opacity: 0.6; }
.upload-zone-text { font-size: 0.9rem; color: var(--slate); margin-bottom: 0.25rem; }
.upload-browse-link { color: var(--cyan-accent); font-weight: 600; cursor: pointer; text-decoration: underline; }
.upload-zone-formats { font-size: 0.7rem; color: var(--slate-light); }
.file-input-hidden { display: none; }

.file-list {
    list-style: none;
    margin-top: 1rem;
}
.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid rgba(107,123,141,0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.file-list .file-name { color: var(--navy-deep); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--slate-light); font-size: 0.75rem; margin: 0 12px; }
.file-list .file-remove {
    background: none;
    border: none;
    color: var(--orange-burnt);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
}

/* Consentimiento */
.form-consent { margin: 1.5rem 0; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--slate);
    cursor: pointer;
}
.checkbox-label a { text-decoration: underline; }
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(107,123,141,0.4);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all var(--transition);
}
input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--cyan-accent);
    border-color: var(--cyan-accent);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12l5 5L20 6' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}
input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

/* Botón submit */
.btn-submit {
    width: 100%;
    justify-content: center;
    position: relative;
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loader { display: none; }
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-loader {
    display: block;
    position: absolute;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}
.form-feedback.success {
    display: block;
    background: rgba(0, 198, 215, 0.1);
    color: var(--cyan-dark);
    border: 1px solid rgba(0,198,215,0.3);
}
.form-feedback.error {
    display: block;
    background: rgba(212, 96, 58, 0.08);
    color: var(--orange-burnt);
    border: 1px solid rgba(212,96,58,0.3);
}

/* ============================================= */
/*  CONTACTO                                     */
/* ============================================= */
.contact {
    padding: var(--section-gap) 0;
    background: var(--pure-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid rgba(107,123,141,0.12);
}
.contact-card svg { flex-shrink: 0; }
.contact-card strong { display: block; font-size: 0.85rem; color: var(--navy-deep); margin-bottom: 2px; }
.contact-card a, .contact-card address { font-style: normal; font-size: 0.9rem; color: var(--slate); }
.contact-map iframe { width: 100%; border-radius: var(--radius-lg); }

/* ============================================= */
/*  FOOTER                                       */
/* ============================================= */
.site-footer {
    background: var(--navy-deep);
    color: var(--slate-lighter);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-tagline {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    max-width: 280px;
}
.footer-heading {
    display: block;
    color: var(--pure-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer-nav ul, .footer-services ul, .footer-legal ul {
    list-style: none;
}
.footer-nav a, .footer-legal a {
    color: var(--slate-lighter);
    font-size: 0.85rem;
    line-height: 2;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--cyan-accent); }
.footer-services li {
    font-size: 0.85rem;
    line-height: 2;
    color: var(--slate-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}
.footer-credits { margin-top: 0.25rem; opacity: 0.5; }

/* ============================================= */
/*  RESPONSIVE (Tablet y Desktop)                */
/* ============================================= */
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 2rem; }
}

@media (min-width: 900px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .diagnostic-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: flex-start;
    }
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 31, 63, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-list.active { display: flex; }
    .nav-link { font-size: 1.2rem; }
}
/* ============================================= */
/*  OVERLAY POLÍTICA DE PRIVACIDAD                */
/* ============================================= */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 63, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-overlay[hidden] {
    display: none;
}

.privacy-container {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
    padding: 2.5rem 2rem;
    position: relative;
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cyan-accent);
    padding-bottom: 1rem;
}

.privacy-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0;
}

.privacy-close {
    background: none;
    border: 2px solid var(--slate-lighter);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.privacy-close:hover {
    background: var(--orange-burnt);
    border-color: var(--orange-burnt);
    color: var(--pure-white);
}

.privacy-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate);
}

.privacy-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-content p {
    margin-bottom: 0.75rem;
}

.privacy-date {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--slate-light);
}

@media (max-width: 600px) {
    .privacy-container {
        padding: 1.5rem 1.25rem;
        max-height: 95vh;
    }

    .privacy-header h2 {
        font-size: 1.4rem;
    }
}