/* ================================
   AUTOPSIA ESTRATÉGICA - CSS STYLES
   Diseño médico-forense disruptivo
   ================================ */

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores médico-forense */
    --blue-dark: #0A1F44;
    --gray-metallic: #E5E7EB;
    --red-surgical: #E63946;
    --green-lime: #06D6A0;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradientes */
    --gradient-dark: linear-gradient(135deg, #0A1F44 0%, #1a2a4d 50%, #2a3b66 100%);
    --gradient-emergency: linear-gradient(135deg, #E63946 0%, #d63031 100%);
    --gradient-success: linear-gradient(135deg, #06D6A0 0%, #00b894 100%);
    
    /* Tipografías */
    --font-headers: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-cta: 'Montserrat', sans-serif;
    
    /* Sombras médicas */
    --shadow-surgical: 0 4px 20px rgba(14, 31, 68, 0.3);
    --shadow-emergency: 0 4px 20px rgba(230, 57, 70, 0.4);
    --shadow-glow: 0 0 30px rgba(6, 214, 160, 0.3);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--blue-dark);
    overflow-x: hidden;
}

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

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    background-color: var(--blue-dark);
    background-image: url('https://vipfunnel.com/contenidos/fondoautopsialanding.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* ECG Background Animation */
.ecg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* ECG realista con SVG */
.ecg-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 220%;
    height: 220px;
    transform: translateY(-50%);
}

.ecg-wave {
    fill: none;
    stroke: var(--green-lime);
    stroke-width: 4.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(6,214,160,0.9));
    animation: ecg-color 12s ease-in-out infinite;
}

/* Grupo que se desplaza para simular la lectura continua */
.wave-group {
    animation: wave-scroll 8s linear infinite;
}

/* Grupo externo que modula la amplitud (vida/flatline/revive) */
.amp {
    transform-origin: 0 50%;
    animation: ecg-amp 12s ease-in-out infinite;
}

@keyframes wave-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-240px); }
}

@keyframes ecg-amp {
    0%, 20%   { transform: scaleY(1.2); }
    35%       { transform: scaleY(0.15); }
    50%       { transform: scaleY(0.05); }
    58%       { transform: scaleY(2.2); }
    70%       { transform: scaleY(1.3); }
    100%      { transform: scaleY(1.2); }
}

@keyframes ecg-color {
    0%, 34%   { stroke: var(--green-lime); opacity: 0.9; }
    35%, 55%  { stroke: var(--red-surgical); opacity: 0.7; }
    56%, 100% { stroke: var(--green-lime); opacity: 0.95; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(10, 31, 68, 0.92) 0%,
        rgba(10, 31, 68, 0.88) 55%,
        rgba(6, 214, 160, 0.22) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

/* Topbar: logo + menú */
.hero-topbar { 
    display: inline-flex; 
    align-items: center; 
    gap: 16px; 
    margin: 0 auto 16px; 
}

.hero-logo { }
.hero-logo img { 
    display: block; 
    margin: 0 auto; 
    max-width: 220px; 
    width: 100%; 
    height: auto; 
}

.hero-menu { position: relative; }
.menu-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: var(--gradient-emergency);
    color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-emergency);
}
.menu-btn i { font-size: 1.1rem; }

.menu-dropdown {
    position: absolute;
    right: 0; top: 56px;
    background: rgba(10, 31, 68, 0.95);
    border: 2px solid var(--red-surgical);
    border-radius: 12px;
    padding: 10px;
    display: none;
    min-width: 180px;
    backdrop-filter: blur(6px);
    z-index: 9998; /* por encima de todo excepto el modal */
}
.menu-dropdown a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}
.menu-dropdown a:hover { background: rgba(230, 57, 70, 0.2); }
.menu-dropdown.show { display: block; }

.hero-title {
    font-family: var(--font-headers);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-title .question {
    display: block;
    color: var(--gray-metallic);
    font-weight: 400;
}

.hero-title .emphasis {
    display: block;
    color: var(--red-surgical);
    text-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
    animation: danger-glow 3s ease-in-out infinite;
}

.hero-title .highlight {
    color: var(--green-lime);
    font-size: 1.2em;
}

/* Pregunta verde junto a "MUERTO" */
.hero-title .question-mark {
    color: var(--green-lime);
    text-shadow: none;
    animation: none;
    font-size: 1.2em;
}

@keyframes danger-glow {
    0%, 100% { 
        text-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
    }
    50% { 
        text-shadow: 0 0 50px rgba(230, 57, 70, 0.8);
    }
}

.subtitle-wrapper {
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: var(--font-headers);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--gray-metallic);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-metallic);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Video VSL en el hero */
.hero-video {
    max-width: 900px;
    margin: 20px auto 30px;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Asegurar que Wistia ocupe todo el contenedor */
.video-embed wistia-player {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-description strong {
    color: var(--green-lime);
    font-weight: 700;
}

.cta-container {
    margin-top: 3rem;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary, .btn-urgent, .btn-final, .btn-sticky, .btn-submit {
    font-family: var(--font-cta);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-emergency);
    color: var(--white);
    padding: 20px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-emergency);
    flex-direction: column;
    gap: 5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

.btn-secondary {
    background: var(--gradient-success);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-glow);
}

.btn-urgent, .btn-final {
    background: var(--gradient-emergency);
    color: var(--white);
    padding: 25px 50px;
    font-size: 1.3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-emergency);
    flex-direction: column;
    gap: 8px;
}

.btn-submit {
    background: var(--gradient-success);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 6px;
    width: 100%;
}

.btn-subtitle {
    font-size: 0.8em;
    opacity: 0.9;
    font-weight: 400;
}

/* Pulse Animation for CTAs */
.pulse-animation {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.02);
    }
}

/* === AUTHORITY SECTION === */
.authority-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-metallic) 0%, #f8f9fa 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-headers);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--blue-dark);
    line-height: 1.2;
}

.highlight-green {
    color: var(--green-lime);
    text-shadow: 0 0 10px rgba(6, 214, 160, 0.3);
}

.highlight-red {
    color: var(--red-surgical);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

.authority-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.authority-text .intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--blue-dark);
}

.number-highlight {
    color: var(--red-surgical);
    font-size: 1.3em;
    font-weight: 900;
}

.deadly-patterns {
    list-style: none;
    margin: 30px 0;
}

.deadly-patterns li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(10, 31, 68, 0.1);
}

.deadly-patterns li i {
    color: var(--red-surgical);
    font-size: 1.2rem;
    width: 20px;
}

.conclusion-text {
    font-size: 1.1rem;
    margin-top: 30px;
    color: var(--blue-dark);
}

.conclusion-text strong {
    color: var(--green-lime);
}

/* Medical Monitor */
.medical-monitor {
    background: var(--blue-dark);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-surgical);
}

.monitor-screen {
    background: #000;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden; /* Evita que el ECG se salga del monitor */
}

.vital-signs {
    height: 150px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden; /* Recorta el ECG dentro del área visible */
}

/* ECG dentro del monitor (sección autoridad) */
.ecg-mini-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 120px;
    transform: translateY(-50%);
}

.ecg-mini-wave {
    fill: none;
    stroke: var(--green-lime);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(6,214,160,0.6));
    animation: ecg-color 10s ease-in-out infinite;
}

.ecg-mini-group { animation: wave-scroll 7s linear infinite; }
.ecg-mini-amp { animation: ecg-amp 10s ease-in-out infinite; transform-origin: 0 50%; }

.stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
    color: var(--green-lime);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-headers);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.credibility-seal {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-surgical);
    border-left: 5px solid var(--green-lime);
}

.seal-text {
    font-size: 1.1rem;
    color: var(--blue-dark);
    font-style: italic;
}

.seal-text i {
    color: var(--green-lime);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* === HOW IT WORKS SECTION === */
.how-it-works-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--white);
}

/* Asegura buen anclaje al formulario con header sticky */
#postulacion { scroll-margin-top: 90px; }
@media (max-width: 480px) { #postulacion { scroll-margin-top: 70px; } }

.how-it-works-section .section-title {
    color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.step-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(6, 214, 160, 0.2);
}

.step-item.highlight-step {
    border: 2px solid var(--red-surgical);
    background: rgba(230, 57, 70, 0.1);
}

.step-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.step-icon i {
    font-size: 3rem;
    color: var(--green-lime);
    display: block;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--green-lime);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.step-title {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-metallic);
}

.highlight-step .step-description {
    color: var(--white);
}

.mini-cta {
    text-align: center;
    margin-top: 60px;
}

/* === TEAM SECTION === */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--gray-metallic) 100%);
}

.team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.member-photo {
    position: relative;
}

.photo-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.photo-placeholder i {
    font-size: 4rem;
    color: var(--green-lime);
}

/* Imagen del equipo en el marco */
.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ajustes responsive para la foto del equipo */
@media (max-width: 768px) {
    .team-member { grid-template-columns: 1fr; }
    .member-photo { width: 100%; }
    .photo-placeholder { 
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 0 auto 20px;
    }
    .photo-placeholder img { height: 100%; }
}

.medical-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--green-lime);
    border-radius: 25px;
    background: transparent;
}

.medical-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--blue-dark);
    border-radius: 25px;
}

.member-name {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.member-title {
    font-size: 1.3rem;
    color: var(--red-surgical);
    font-weight: 700;
    margin-bottom: 20px;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--blue-dark);
}

.member-bio strong {
    color: var(--green-lime);
}

.medical-credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--green-lime);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.credential i {
    color: var(--green-lime);
    font-size: 1.2rem;
}

/* === VALUE SECTION === */
.value-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.value-section .section-title {
    color: var(--white);
}

.value-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.value-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.value-intro strong {
    color: var(--green-lime);
}

.email-preview {
    margin: 40px 0;
}

.email-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.email-item:last-child {
    border-bottom: none;
}

.email-item i {
    color: var(--green-lime);
    font-size: 1.2rem;
    width: 20px;
}

.value-conclusion {
    font-size: 1.2rem;
    color: var(--green-lime);
    font-weight: 700;
}

/* Oxygen Tank Visual */
.oxygen-tank {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tank-body {
    width: 150px;
    height: 300px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

.tank-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 50px;
    background: var(--green-lime);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--green-lime);
}

.oxygen-flow {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 20px;
    height: 100px;
    background: linear-gradient(to top, transparent 0%, var(--green-lime) 100%);
    border-radius: 10px;
    transform: translateX(-50%);
    animation: oxygen-flow 3s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes oxygen-flow {
    0%, 100% {
        opacity: 0.3;
        height: 100px;
    }
    50% {
        opacity: 1;
        height: 150px;
        box-shadow: 0 0 30px var(--green-lime);
    }
}

.tank-label {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-headers);
    font-size: 1.1rem;
    color: var(--green-lime);
    text-align: center;
    white-space: nowrap;
}

/* === TESTIMONIAL SECTION === */
.testimonial-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-metallic) 0%, #f8f9fa 100%);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-surgical);
    position: relative;
    border: 2px solid var(--green-lime);
}

.testimonial-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.medical-stamp {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-lime);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.testimonial-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--blue-dark);
    margin: 30px 0;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 4rem;
    color: var(--green-lime);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.author-photo {
    width: 60px;
    height: 60px;
    background: var(--gradient-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-photo i {
    color: var(--green-lime);
    font-size: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.author-company {
    color: var(--red-surgical);
    font-weight: 500;
}

.testimonial-vitals {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-metallic);
}

.vital {
    text-align: center;
}

.vital-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--green-lime);
    font-family: var(--font-headers);
}

.vital-label {
    font-size: 0.9rem;
    color: var(--blue-dark);
    font-weight: 700;
    text-transform: uppercase;
}

/* === URGENCY SECTION === */
.urgency-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.urgency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.urgency-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.urgency-title {
    font-family: var(--font-headers);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.urgency-title i {
    color: var(--red-surgical);
    animation: warning-flash 2s ease-in-out infinite;
}

@keyframes warning-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.urgency-description,
.urgency-warning {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.urgency-warning strong {
    color: var(--red-surgical);
    font-weight: 900;
}

.countdown-container {
    margin: 60px 0;
}

.countdown-label {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gray-metallic);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(230, 57, 70, 0.2);
    border: 2px solid var(--red-surgical);
    border-radius: 15px;
    padding: 20px;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red-surgical);
    line-height: 1;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.countdown-label-small {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 5px;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red-surgical);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.urgent-cta {
    margin-top: 60px;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-metallic) 0%, #f8f9fa 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--green-lime);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(6, 214, 160, 0.05);
}

.faq-question i:first-child {
    color: var(--green-lime);
    font-size: 1.3rem;
    width: 20px;
}

.faq-toggle {
    margin-left: auto;
    color: var(--blue-dark);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px; /* espacio lateral constante */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    /* no fijamos max-height aquí; lo controla JS para adaptarse al contenido */
    padding: 12px 28px 28px; /* aire al abrir */
}

.faq-answer p {
    font-size: 1.0625rem; /* +1px respecto a 16px */
    line-height: 1.7;
    color: var(--blue-dark);
    margin: 0;
}

.faq-answer strong {
    color: var(--green-lime);
}

/* === FINAL CTA SECTION === */
.final-cta-section {
    padding: 120px 0;
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ecg-revival {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.ecg-line-final {
    position: absolute;
    top: 50%;
    left: -100px;
    width: calc(100% + 200px);
    height: 3px;
    background: var(--green-lime);
    transform: translateY(-50%);
    animation: final-revival 6s ease-in-out infinite;
}

@keyframes final-revival {
    0%, 15% { 
        background: rgba(230, 57, 70, 0.3);
        transform: translateY(-50%) scaleY(1);
    }
    20% { 
        background: var(--green-lime);
        transform: translateY(-50%) scaleY(30);
        box-shadow: 0 0 50px var(--green-lime);
    }
    25%, 30% { 
        transform: translateY(-50%) scaleY(1);
    }
    35% { 
        transform: translateY(-50%) scaleY(25);
    }
    40%, 100% { 
        background: var(--green-lime);
        transform: translateY(-50%) scaleY(1);
    }
}

.final-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.final-title {
    font-family: var(--font-headers);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.3;
    margin-bottom: 30px;
}

.final-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: var(--gray-metallic);
}

.final-subtitle strong {
    color: var(--green-lime);
}

.final-cta-container {
    margin-top: 50px;
}

.final-guarantee {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--gray-metallic);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.final-guarantee i {
    color: var(--green-lime);
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.9);
    z-index: 9999; /* siempre por encima de cualquier elemento */
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--gray-metallic);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--green-lime);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--red-surgical);
    color: var(--white);
}

.modal-body {
    padding: 30px;
}

/* Wrapper para iframe externo del formulario */
.form-embed-wrapper {
    width: 100%;
    height: clamp(450px, 70vh, 720px);
    background: var(--white);
    border-radius: 18px;
    padding: 16px;
    border: 2px solid rgba(6, 214, 160, 0.25);
    box-shadow: 
        0 25px 60px rgba(10, 31, 68, 0.35), /* sombra base */
        0 0 0 4px rgba(6, 214, 160, 0.08) inset, /* halo interior */
        0 10px 40px rgba(6, 214, 160, 0.18); /* glow externo suave */
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .form-embed-wrapper { 
        height: clamp(420px, 70vh, 640px); 
        border-radius: 16px;
        padding: 12px;
    }
}

/* Insignia de verificación en esquina superior derecha */
.form-verified-badge {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-lime);
    color: var(--white);
    display: grid;
    place-items: center;
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(6,214,160,0.45), 0 0 20px rgba(6,214,160,0.5);
    z-index: 2;
}

.form-verified-badge i { font-size: 1.2rem; }

@media (max-width: 480px) {
    .form-verified-badge { width: 48px; height: 48px; top: -16px; right: -16px; }
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--gray-metallic);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-lime);
    box-shadow: 0 0 10px rgba(6, 214, 160, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* === STICKY MOBILE CTA === */
.sticky-cta-mobile {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.btn-sticky {
    background: var(--gradient-emergency);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 25px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    animation: mobile-pulse 3s ease-in-out infinite;
}

@keyframes mobile-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .authority-content,
    .value-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        gap: 5px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 15px 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .btn-primary,
    .btn-urgent,
    .btn-final {
        padding: 18px 30px;
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .testimonial-vitals {
        flex-direction: column;
        gap: 20px;
    }
    
    .sticky-cta-mobile {
        display: block;
    }

    /* Mostrar ECG por encima del video pero detrás del texto */
    .ecg-background { z-index: 3; }
    .hero-video { position: relative; z-index: 2; }
    .hero-title, .hero-topbar { position: relative; z-index: 4; }
    /* Menú del hero como capa fija para que no lo tape nada */
    .hero-menu .menu-dropdown {
        position: fixed;
        right: 16px;
        top: 80px;
        z-index: 9998;
    }
    
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .countdown-timer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .urgency-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .final-title {
        font-size: 1.8rem;
    }
}

/* === UTILITY CLASSES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

/* === LOADING ANIMATION === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-metallic);
    border-radius: 50%;
    border-top-color: var(--green-lime);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* === STICKY HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(10, 31, 68, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.site-header.visible {
    transform: translateY(0);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.header-logo img {
    height: 34px;
    width: auto;
    display: block;
}

/* Añade espacio solo cuando el header está visible */
body.header-present { padding-top: 64px; }

@media (max-width: 480px) {
  body.header-present { padding-top: 56px; }
  .header-inner { min-height: 56px; }
}

.site-header .menu-wrapper { position: relative; }
