/* =========================================
   TIPOGRAFÍAS LOCALES (antes Google Fonts; mismas familias y pesos)
   ========================================= */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/syne-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/syne-latin-800-normal.woff2') format('woff2'); }

/* =========================================
   VARIABLES "HIGH-END CONSULTING"
   ========================================= */
:root {
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;      
    --text-dark: #111827;    
    --text-muted: #6B7280;   
    
    --accent-blue: #0056D2;  
    --accent-hover: #003F9A;
    --wa-green: #25D366;
    
    --font-heading: 'Syne', sans-serif; 
    --font-body: 'Inter', sans-serif;   
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw; /* Esta es la regla de oro para evitar el scroll horizontal */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }

/* Tipografía */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-dark); }
.section-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -1px; }
.section-title span { color: var(--accent-blue); }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 50px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Botones */
.btn-primary-blue { background: var(--accent-blue); color: #FFF; padding: 15px 35px; font-weight: 600; text-decoration: none; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; box-shadow: 0 10px 20px rgba(0, 86, 210, 0.2); border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem; }
.btn-primary-blue:hover { background: var(--accent-hover); transform: translateY(-3px); color: #FFF; }
.btn-nav-blue { background: var(--text-dark); color: #FFF !important; padding: 10px 25px; border-radius: 50px; font-weight: 500; transition: all 0.3s; }
.btn-nav-blue:hover { background: var(--accent-blue); }
.btn-submit-blue { width: 100%; background: var(--accent-blue); color: #FFF; border: none; padding: 15px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; gap: 10px; }
.btn-submit-blue:hover { background: var(--accent-hover); }

/* Navegación Clean */
nav { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); transition: all 0.3s ease; border-bottom: 1px solid transparent; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; max-width: 1300px; margin: 0 auto; }
.logo img { height: 80px; display: block; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* =========================================
   HERO MODERNO Y ASIMÉTRICO (CORREGIDO)
   ========================================= */
.modern-hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 140px 0 80px; /* Separación garantizada del menú superior */
    overflow: hidden; 
    background: var(--bg-gray); 
}
.hero-bg-text { 
    position: absolute; 
    top: 15%; 
    left: -5%; 
    font-family: var(--font-heading); 
    font-size: 18vw; 
    font-weight: 800; 
    color: #FFFFFF; 
    z-index: 1; 
    user-select: none; 
    line-height: 1; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.02); 
}
.hero-content-wrapper { display: flex; align-items: center; justify-content: space-between; z-index: 2; position: relative; width: 100%; }
.hero-text-area { width: 45%; padding-right: 20px; } 
.subtitle-line { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.subtitle-line::before { content: ''; width: 40px; height: 2px; background: var(--accent-blue); }
.subtitle-line span { font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--accent-blue); }
.hero-text-area h1 { font-size: 5rem; line-height: 0.9; margin-bottom: 30px; letter-spacing: -2px; }
.hero-text-area p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 450px; }

.hero-image-area { width: 50%; position: relative; } 
.image-mask { 
    border-radius: 20px 80px 250px 20px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    border: 12px solid #FFF; 
    height: 520px; /* Altura controlada para evitar desbordamiento */
    width: 100%;
}
.image-mask img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Ajuste automático para fotos horizontales */
    object-position: center;
    display: block; 
}
.floating-badge { position: absolute; background: #FFF; padding: 15px 25px; border-radius: 50px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; z-index: 3; }
.floating-badge i { color: var(--accent-blue); font-size: 1.2rem; }

/* Posición corregida de las burbujas */
.badge-1 { top: 120px; left: -40px; animation: floatUp 4s ease-in-out infinite; }
.badge-2 { bottom: 80px; right: -20px; animation: floatUp 5s ease-in-out infinite reverse; }

@keyframes floatUp { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

/* Sticky Bio */
.sticky-bio-section { padding: 120px 0; background: var(--bg-white); }
.bio-flex { display: flex; gap: 80px; align-items: flex-start; }
.bio-sticky-col { width: 40%; position: sticky; top: 120px; }
.sticky-image-container { position: relative; border-radius: 12px; overflow: hidden; }
.sticky-image-container img { width: 100%; display: block; filter: grayscale(20%); }
.blue-overlay-box { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--accent-blue); color: #FFF; padding: 30px; }
.blue-overlay-box h3 { color: #FFF; font-size: 1.5rem; margin-bottom: 5px; }
.bio-scroll-col { width: 60%; padding-top: 20px; }
.bio-scroll-col .section-title { font-size: 3rem; margin-bottom: 50px; }
.bio-block { margin-bottom: 40px; padding-left: 30px; border-left: 2px solid #E5E7EB; transition: border-color 0.3s; }
.bio-block:hover { border-color: var(--accent-blue); }
.bio-block h4 { font-family: var(--font-body); font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.bio-block p { color: var(--text-muted); font-size: 1.05rem; }

/* Servicios (Acordeón) */
.accordion-services { padding: 100px 0; background: var(--bg-gray); }
.accordion-container { max-width: 900px; margin: 0 auto; border-top: 2px solid #E5E7EB; }
.accordion-item { border-bottom: 2px solid #E5E7EB; overflow: hidden; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; cursor: pointer; transition: all 0.3s; }
.accordion-header:hover .acc-title h3 { color: var(--accent-blue); transform: translateX(10px); }
.acc-title { display: flex; align-items: center; gap: 30px; }
.acc-num { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-muted); }
.acc-title h3 { font-size: 1.8rem; text-transform: uppercase; transition: transform 0.3s, color 0.3s; }
.accordion-header i { font-size: 1.5rem; color: var(--text-dark); transition: transform 0.3s; }
.accordion-item.active .accordion-header i { transform: rotate(45deg); color: var(--accent-blue); }
.accordion-body { max-height: 0; opacity: 0; transition: all 0.4s ease; padding: 0 0 0 55px; }
.accordion-item.active .accordion-body { max-height: 200px; opacity: 1; padding-bottom: 30px; }
.accordion-body p { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; }

/* Aliados (Marquee) */
.clean-alliances { padding: 60px 0; background: #FFF; border-bottom: 1px solid #E5E7EB; }
.clean-alliances h4 { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 40px; }
.marquee { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(to right, #FFF, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #FFF, transparent); }
.marquee-content { display: inline-flex; animation: scroll 25s linear infinite; align-items: center; }
.marquee-content img { height: 40px; margin: 0 40px; filter: grayscale(100%) opacity(0.6); transition: 0.3s; }
.marquee-content img:hover { filter: grayscale(0%) opacity(1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Catálogo de Cursos en Grid */
.academy-section { padding: 120px 0; background: var(--bg-gray); }
.academy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.academy-empty { margin-top: 50px; text-align: center; color: var(--text-muted); font-size: 1.1rem; padding: 40px 20px; border: 1px dashed #D1D5DB; border-radius: 12px; background: var(--bg-white); }
.academy-card { background: var(--bg-white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #E5E7EB; display: flex; flex-direction: column; }
.academy-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.academy-img { position: relative; height: 250px; }
.academy-img img { width: 100%; height: 100%; object-fit: cover; }
.price-tag { position: absolute; top: 20px; right: 20px; background: var(--accent-blue); color: #FFF; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; padding: 8px 15px; border-radius: 6px; box-shadow: 0 5px 15px rgba(0, 86, 210, 0.3); }
.course-tag { display: inline-block; background: var(--bg-gray); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 15px; }
.academy-info { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; }
.academy-info h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 15px; text-transform: uppercase; }
.academy-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }
.course-details { list-style: none; margin-bottom: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.course-details li { font-size: 0.9rem; color: var(--text-dark); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.course-details li i { color: var(--accent-blue); width: 15px; text-align: center; }

/* Footer */
.modern-footer { background: var(--text-dark); color: #FFF; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; margin-bottom: 30px; }
.footer-logo { max-width: 200px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.brand-col p { color: #9CA3AF; max-width: 300px; }
.links-col h4, .contact-col h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; }
.links-col ul { list-style: none; }
.links-col li { margin-bottom: 10px; }
.links-col a { color: #9CA3AF; text-decoration: none; transition: 0.3s; }
.links-col a:hover { color: #FFF; }
.contact-col p { color: #9CA3AF; font-size: 1.1rem; margin-bottom: 20px; }
.contact-col i.fa-whatsapp { color: var(--wa-green); margin-right: 10px; }
.social-circle a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #FFF; margin-right: 10px; transition: 0.3s; text-decoration: none; }
.social-circle a:hover { background: var(--accent-blue); border-color: var(--accent-blue); transform: translateY(-3px); }
.footer-copy { text-align: center; color: #6B7280; font-size: 0.85rem; }
.footer-copy a { color: #FFF; text-decoration: none; font-weight: 600; }

/* Modal WhatsApp */
.wa-float-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--wa-green); color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 1000; transition: transform 0.3s; }
.wa-float-btn:hover { transform: scale(1.1); }
.wa-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.85); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.wa-modal-box { background: #FFF; width: 90%; max-width: 450px; border-radius: 12px; padding: 40px; position: relative; animation: modalPop 0.3s ease-out; }
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header i { font-size: 2.5rem; color: var(--wa-green); margin-bottom: 10px; }
.modal-header h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 5px; }
.modal-header p { font-size: 0.9rem; color: var(--text-muted); }
#wa-contact-form input, #wa-contact-form textarea { width: 100%; padding: 12px 15px; background: var(--bg-gray); border: 1px solid #E5E7EB; border-radius: 8px; color: var(--text-dark); font-family: var(--font-body); outline: none; margin-bottom: 15px; transition: 0.3s; }
#wa-contact-form input:focus, #wa-contact-form textarea:focus { border-color: var(--accent-blue); background: #FFF; }
.custom-dropdown-container { position: relative; width: 100%; margin-bottom: 15px; }
.custom-dropdown-header { width: 100%; padding: 12px 15px; background: var(--bg-gray); border: 1px solid #E5E7EB; border-radius: 8px; color: var(--text-muted); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.custom-dropdown-body { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #FFF; border: 1px solid #E5E7EB; margin-top: 5px; z-index: 10; max-height: 180px; overflow-y: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.custom-dropdown-body.show { display: block; }
#dropdown-search { width: 100%; border: none; border-bottom: 1px solid #E5E7EB; padding: 10px; }
#dropdown-list { list-style: none; margin: 0; padding: 0; }
#dropdown-list li { padding: 10px 15px; cursor: pointer; display: flex; gap: 10px; font-size: 0.9rem; transition: background 0.2s; }
#dropdown-list li:hover { background: var(--bg-gray); color: var(--accent-blue); }
.form-error-msg { color: #DC2626; font-size: 0.85rem; margin-bottom: 15px; display: none; text-align: center; }
#dropdown-list li:focus-visible { background: var(--bg-gray); color: var(--accent-blue); outline: none; }
#dropdown-list .country-code { color: #94A3B8; font-size: 0.8rem; margin-left: auto; }

/* Consentimiento de privacidad del formulario de WhatsApp */
.wa-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); text-align: left; cursor: pointer; }
#wa-contact-form .wa-consent input { width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent-blue); cursor: pointer; }
.wa-consent a { color: var(--accent-blue); font-weight: 500; }

/* Página de Política de Privacidad */
.legal-body { background: var(--bg-white); }
.legal-nav { border-bottom: 1px solid #E5E7EB; }
.legal-back { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.legal-back:hover { color: var(--accent-blue); }
.legal-page { max-width: 820px; padding-top: 170px; padding-bottom: 80px; }
.legal-page .section-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin: 35px 0 10px; }
.legal-page p { color: var(--text-muted); line-height: 1.7; }
.legal-page strong { color: var(--text-dark); }
.legal-footer { padding: 30px 0; }

/* Páginas de error (404, 500, 503...) */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 15px; }
.error-logo { height: 90px; margin-bottom: 10px; }
.error-code { font-family: var(--font-heading); font-size: clamp(4rem, 15vw, 7rem); font-weight: 800; line-height: 1; color: var(--accent-blue); }
.error-message { font-size: 1.4rem; margin-bottom: 15px; }

/* Foco visible solo con teclado en los elementos que actúan como botón */
[role="button"]:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .logo img { height: 60px; }
    .nav-links { position: absolute; top: 100%; left: -100%; width: 100%; background: #FFF; flex-direction: column; padding: 30px 0; border-bottom: 1px solid #E5E7EB; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    
    .hero-content-wrapper { flex-direction: column; text-align: center; gap: 50px; }
    .hero-text-area, .hero-image-area { width: 100%; padding: 0; }
    .subtitle-line { justify-content: center; }
    .hero-text-area h1 { font-size: 4rem; }
    .hero-text-area p { margin: 0 auto 30px; }
    .hero-bg-text { display: none; }
    .image-mask { width: 80%; margin: 0 auto; height: 400px; } /* Ajuste de altura en móvil */
    
    .bio-flex { flex-direction: column; gap: 40px; }
    .bio-sticky-col { width: 100%; position: relative; top: 0; }
    .bio-scroll-col { width: 100%; }
    
    .academy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
}

@media (max-width: 600px) {
    .hero-text-area h1 { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .acc-title h3 { font-size: 1.3rem; }
    
    /* Ajuste de burbujas para no romper la pantalla */
    .floating-badge { padding: 10px 15px; font-size: 0.8rem; }
    .badge-1 { top: 60px; left: 0px; } /* Puesto en 0 para no empujar a la izquierda */
    .badge-2 { bottom: 60px; right: 0px; } /* Puesto en 0 para no empujar a la derecha */
    
    .course-details { grid-template-columns: 1fr; }
}
/* Descargas: biblioteca editorial que mantiene la paleta y la tipografía del portal. */
.downloads-section { position: relative; padding: 112px 0; background: #edf3fc; border-top: 1px solid #dce5f1; }
.downloads-section::before { position: absolute; top: -2px; left: 50%; width: 72px; height: 3px; border-radius: 2px; background: var(--accent-blue); content: ''; transform: translateX(-50%); }
#descargas { scroll-margin-top: 104px; }
.download-section-heading { margin-bottom: 56px; }
.download-section-heading .section-subtitle { margin-bottom: 0; }
.download-eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent-blue); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.download-eyebrow span { width: 28px; height: 2px; background: currentColor; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 28px; }
.download-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(340px, 34vw, 430px) minmax(0, 1fr); min-width: 0; min-height: 680px; overflow: hidden; background: #fff; border: 1px solid #e1e6ed; border-radius: 16px; box-shadow: 0 12px 30px -24px rgba(17,24,39,.28); transition: transform 220ms cubic-bezier(.23,1,.32,1), box-shadow 220ms ease, border-color 220ms ease; }
.download-cover-stage { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; padding: 0; background: #eaf0f9; }
.download-cover-stage::before { position: absolute; z-index: -1; bottom: -86px; left: -70px; width: 230px; height: 230px; border: 1px solid rgba(0,86,210,.12); border-radius: 50%; content: ''; }
.download-cover-stage::after { position: absolute; z-index: -1; top: 22px; right: 22px; width: 42px; height: 42px; border-top: 3px solid rgba(0,86,210,.3); border-right: 3px solid rgba(0,86,210,.3); content: ''; }
.download-preview-sheet { display: block; width: 100%; height: 100%; max-width: none; max-height: none; padding: 14px; border: 0; border-radius: 0; background: #eaf0f9; object-fit: contain; }
.download-cover-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: #b33b33; background: linear-gradient(145deg, #f6f8fc, #eaf0f9); }
.download-cover-placeholder i { font-size: 2.4rem; }
.download-cover-placeholder span { color: #172536; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; letter-spacing: .12em; }
.download-card-body { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 36px); }
.download-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.download-card-meta .course-tag { margin: 0; color: var(--accent-blue); background: #eef4fd; }
.download-format { color: #778397; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.download-card h3 { margin: 22px 0 12px; color: #172536; font-family: var(--font-heading); font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.download-card-body > p { margin: 0 0 24px; color: #596575; font-size: .97rem; line-height: 1.65; }
.download-card-body > .download-price { margin-top: -12px; color: #0759d8; font-size: .9rem; font-weight: 700; }
[data-paid-download][hidden], [data-return-to-downloads][hidden] { display: none; }
.download-card-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: auto; padding-top: 8px; }
.download-access-note { display: flex; align-items: center; gap: 8px; color: #647286; font-size: .78rem; }
.download-access-note i { color: var(--accent-blue); font-size: .8rem; }
.download-card .download-cta { width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-size: .9rem; white-space: nowrap; box-shadow: 0 8px 18px rgba(0,86,210,.16); transition: transform 140ms ease-out, background-color 160ms ease, box-shadow 160ms ease; }
.download-card .download-cta:active { transform: scale(.98); }
.download-card .download-cta:focus-visible { outline: 3px solid rgba(0,86,210,.35); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .download-card:hover { transform: translateY(-4px); border-color: #cbd8eb; box-shadow: 0 20px 38px -24px rgba(17,24,39,.3); }
    .download-card:hover .download-preview-sheet { transform: translateY(-2px); }
    .download-preview-sheet { transition: transform 220ms cubic-bezier(.23,1,.32,1); }
    .download-card .download-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,86,210,.22); }
}
.download-request-page { max-width: 850px; min-height: 72vh; padding-top: 70px; padding-bottom: 80px; }
.download-request-page h1 { margin: 12px 0; color: #172536; font-size: clamp(32px, 5vw, 48px); }
.download-request-page h1 span { color: #176b9a; }
.download-form { display: grid; gap: 22px; margin-top: 36px; padding: clamp(20px, 4vw, 38px); background: #fff; border: 1px solid #e5e8ed; border-radius: 16px; box-shadow: 0 12px 32px -24px rgba(17,24,39,.3); }
.download-modal .download-form[hidden] { display: none; }
.download-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download-consent { display: flex; align-items: flex-start; gap: 11px; color: #394657; font-size: 14px; }
.download-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: #176b9a; }
.download-consent a { color: #176b9a; text-decoration: underline; text-underline-offset: 3px; }
.download-form .btn-primary-blue { justify-self: start; border: 0; cursor: pointer; }
.download-form .field { display: grid; gap: 7px; color: #263548; font-weight: 600; }
.download-form input:not([type=checkbox]), .download-form select { min-height: 46px; width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #cbd3dd; border-radius: 8px; }
.download-form .field-error { color: #a52e2e; font-weight: 500; }
.download-resend-form { margin-top: 10px; padding-top: 0; border: 0; box-shadow: none; background: transparent; }
.download-resend-button { justify-self: start; border: 0; padding: 4px 0; background: transparent; color: #0756d8; font: inherit; font-size: .92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.download-resend-button:hover { color: #111827; }
.download-resend-button:disabled { cursor: wait; opacity: .65; }
.download-modal { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--text-dark); background: #fff; box-shadow: 0 28px 90px rgba(17, 24, 39, .3); }
.download-modal::backdrop { background: rgba(17, 24, 39, .68); backdrop-filter: blur(4px); }
.download-modal-panel { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px); }
.download-modal-close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e5e8ed; border-radius: 50%; color: #596575; background: #fff; font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.download-modal-header { padding-right: 44px; margin-bottom: 22px; }
.download-modal-header h2 { margin: 10px 0 6px; color: #172536; font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); overflow-wrap: anywhere; }
.download-modal-header p { color: #596575; }
.download-modal .download-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 18px; }
.download-modal .download-form .btn-primary-blue { width: 100%; justify-content: center; }
.download-consents { display: grid; gap: 14px; }
.download-form-error { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; color: #a52e2e; background: #fff1f0; font-size: 14px; }
.download-success-modal { width: min(620px, calc(100vw - 32px)); text-align: center; }
.download-success-modal[open] { animation: download-success-fade 240ms ease-out both; }
.download-success-modal::backdrop { animation: download-success-backdrop 180ms ease-out both; }
.download-success-panel { display: flex; flex-direction: column; align-items: center; padding: clamp(30px, 6vw, 52px); }
.download-success-panel .download-modal-close { top: 14px; right: 14px; }
.download-success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 4px 0 24px; border: 1px solid #b7e4d0; border-radius: 24px; color: #087b57; background: linear-gradient(145deg, #e4f8ef, #f3fbf6); box-shadow: 0 12px 28px rgba(8,123,87,.12); }
.download-success-mark svg { width: 48px; height: 48px; overflow: visible; }
.download-success-circle { fill: none; stroke: #8fcfb2; stroke-width: 2; stroke-dasharray: 126; stroke-dashoffset: 126; }
.download-success-check { stroke-dasharray: 40; stroke-dashoffset: 40; }
.download-success-modal[open] .download-success-mark { animation: download-success-badge 620ms cubic-bezier(.16,1,.3,1) both; }
.download-success-modal[open] .download-success-circle { animation: download-success-circle-draw 680ms cubic-bezier(.65,0,.35,1) 120ms both; }
.download-success-modal[open] .download-success-check { animation: download-success-check-draw 430ms cubic-bezier(.23,1,.32,1) 650ms both; }
.download-success-kicker { margin: 0; color: var(--accent-blue); background: #eef4fd; }
.download-success-panel h2 { display: block; align-self: stretch; width: 100%; max-width: 520px; min-height: 0; height: auto; margin: 16px auto 18px; padding: .2em 0 .8em; color: #172536; font-family: var(--font-heading); font-size: clamp(25px, 4vw, 34px); line-height: 1.8; overflow: visible; }
.download-success-panel > p { max-width: 420px; margin: 0; color: #596575; line-height: 1.65; }
.download-success-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin: 24px 0 0; }
.download-success-modal[open] .download-success-kicker { animation: download-success-content-in 240ms cubic-bezier(.23,1,.32,1) 130ms both; }
.download-success-modal[open] .download-success-panel h2 { animation: download-success-fade 240ms ease-out 180ms both; }
.download-success-modal[open] .download-success-description { animation: download-success-content-in 240ms cubic-bezier(.23,1,.32,1) 240ms both; }
.download-success-modal[open] .download-success-social { animation: download-success-content-in 240ms cubic-bezier(.23,1,.32,1) 290ms both; }
.download-success-modal[open] .download-success-portal { animation: download-success-content-in 240ms cubic-bezier(.23,1,.32,1) 340ms both; }
.download-success-modal[open] .download-success-note { animation: download-success-content-in 240ms cubic-bezier(.23,1,.32,1) 390ms both; }
.download-success-social a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid #dce5f1; border-radius: 999px; color: #172536; background: #f7f9fc; font-size: .9rem; font-weight: 650; text-decoration: none; transition: transform 160ms ease-out, border-color 160ms ease, background-color 160ms ease; }
.download-success-social a > i:first-child { color: var(--accent-blue); }
.download-success-social a > i:last-child { color: #778397; font-size: .72rem; }
.download-success-social a:focus-visible, .download-success-portal:focus-visible { outline: 3px solid rgba(0,86,210,.35); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .download-success-social a:hover { transform: translateY(-2px); border-color: #b8cbe5; background: #fff; } }
.download-success-panel .download-success-portal { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 22px; border-radius: 999px; text-decoration: none; }
.download-success-panel .download-success-note { margin-top: 14px; color: #778397; font-size: .82rem; }
@keyframes download-success-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes download-success-enter { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes download-success-badge { from { opacity: 0; transform: translateY(16px) scale(.72) rotate(-8deg); } 72% { opacity: 1; transform: translateY(-2px) scale(1.06) rotate(2deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes download-success-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes download-success-check-draw { to { stroke-dashoffset: 0; } }
@keyframes download-success-content-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes download-success-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .download-success-modal[open] { animation: download-success-fade 180ms ease-out both; } .download-success-modal::backdrop { animation: none; } .download-success-mark, .download-success-circle, .download-success-check { animation: none !important; } .download-success-circle, .download-success-check { stroke-dashoffset: 0; } .download-success-kicker, .download-success-panel h2, .download-success-description, .download-success-social, .download-success-portal, .download-success-note { animation: none; } .download-success-social a { transition: none; } .download-success-social a:hover { transform: none; } }
@media (max-width: 760px) { .downloads-section { padding: 88px 0; } .download-section-heading { margin-bottom: 42px; } .download-card { grid-template-rows: clamp(320px, 58vw, 400px) minmax(0, 1fr); } .download-card-body { padding: 24px; } }
@media (max-width: 560px) { .downloads-section { padding: 72px 0; } .download-section-heading .section-title { font-size: 2.1rem; } .download-section-heading .section-subtitle { font-size: 1rem; } .download-grid { gap: 18px; } .download-card { grid-template-rows: 300px minmax(0, 1fr); min-height: 0; } .download-preview-sheet { padding: 10px; } .download-card-body { padding: 24px; } .download-card h3 { margin-top: 17px; font-size: 1.25rem; } .download-card-footer { width: 100%; gap: 14px; } .download-card .download-cta { width: 100%; justify-content: center; padding-right: 12px; padding-left: 12px; font-size: .82rem; } .download-fields { grid-template-columns: 1fr; } .download-form .btn-primary-blue { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .download-card, .download-preview-sheet, .download-card .download-cta { transition: none; } .download-card:hover, .download-card:hover .download-preview-sheet, .download-card .download-cta:hover, .download-card .download-cta:active { transform: none; } }
@media (prefers-reduced-motion: reduce) { .download-modal-close { transition: none; } }
.download-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.download-form [data-download-submit]:disabled { cursor: wait; opacity: .72; }
.download-fallback-list { display: grid; gap: 12px; margin-top: 32px; }
.download-fallback-item, .download-selected-document { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid #e1e6ed; border-radius: 14px; color: #172536; background: #fff; text-decoration: none; }
.download-fallback-item { transition: border-color 160ms ease, transform 160ms ease; }
.download-fallback-item:hover { transform: translateY(-2px); border-color: #b8cbe5; }
.download-fallback-item > span:nth-child(2), .download-selected-document > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.download-fallback-item small, .download-selected-document small { color: #647286; line-height: 1.5; }
.download-fallback-arrow { margin-left: auto; color: var(--accent-blue); font-size: 1.25rem; }
.download-fallback-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 64px; border-radius: 9px; color: #b33b33; background: #fff0ee; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.download-selected-document { margin-bottom: 22px; }
.download-selected-document strong { overflow-wrap: anywhere; }
