/* --- VARIABLES DE MARCA (FIGMA EXACTO) --- */
:root {
    --bg-dark: #0D1313;
    /* Fondo profundo */
    --primary-teal: #218581;
    /* Color del Paso 1 */
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
}

/* --- RESET & ESTRUCTURA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    /* Suavizado de fuente para diseño premium */
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1080px;
    /* Mantenemos tu límite original */
    margin: 0 auto;
    padding: 0 20px;
    /* Padding de seguridad para móviles */
    text-align: center;
}

/* --- SECCIÓN HERO (FRAME 52) --- */
/* --- HEADER --- */
.main-header {
    padding: 48px 0;
    /* Padding superior del Frame 52 */
    display: flex;
    justify-content: center;
}

.logo-img {
    width: 205px;
    height: 90px;
    object-fit: contain;
}

/* --- HERO & TEXTOS --- */
.hero {
    padding-bottom: 48px;
    position: relative;
    overflow: visible;
    text-align: center;
}

.step-text {
    font-size: 26px;
    font-weight: 500;
    color: #218581;
    /* Color exacto Figma */
    margin-bottom: 24px;
    line-height: 1.4
        /* Gap del Frame 54 */
}

.hero-description p {
    font-size: 20px;
    font-weight: 200;
    max-width: 1080px;
    margin: 0 auto 36px;
    /* Gap de 36px hacia el video */
    line-height: 1.4;
    color: #FFFFFF;
}

/* --- VIDEO CONTAINER (RECTANGLE 8) --- */
.video-container {
    width: 100%;
    /* Cambiado de 790px a fluido */
    max-width: 790px;
    height: auto;
    /* Para mantener proporción */
    aspect-ratio: 16 / 9;
    /* Mantiene la forma del video */
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    width: 100%;
    height: calc(100% - 40px);
    /* Espacio para la barra inferior */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* --- PLAY BUTTON CENTRADO --- */
.play-button {
    position: relative;
    /* Cambiado para que flex lo centre */
    z-index: 10;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4);
    /* #FFFFFF66 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
}

.play-button i {
    font-size: 35px;
    color: white;
    margin-left: 5px;
    /* Ajuste visual del triángulo */
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.5);
}

/* --- BARRA INFERIOR DEL VIDEO --- */
.video-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 5;
}

.video-footer span {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
}

/* Brillo de fondo (Ellipse 2) */
.hero::before {
    content: '';
    position: absolute;
    width: 892px;
    height: 892px;
    top: 10%;
    left: 10%;
    /* Desplazado a la izquierda como en la imagen */
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(26, 114, 111, 0.3) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}


/* --- REGISTRATION SECTION (FRAME 53) --- */
.registration {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 180px;
    /* Aumentado para dar el aire que se ve en la imagen */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    overflow: visible;
}

/* Resplandores Atmosféricos (Ellipse 2 y 3) */
/* En la imagen, los brillos están posicionados a los lados del formulario */
.registration::before,
.registration::after {
    content: '';
    position: absolute;
    width: 753px;
    height: 851px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(26, 114, 111, 0.4) 0%, rgba(13, 19, 19, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.registration::before {
    left: 80%;
    top: 40%;
    transform: translateY(-50%);
}

.registration::after {
    right: 80%;
    top: 80%;
    transform: translateY(-50%);
}

/* Tipografía de Encabezado */
.registration .step-text {
    font-size: 26px;
    font-weight: 500;
    color: var(--primary-teal);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.4
}

.registration .section-title {
    font-size: 20px;
    /* Frame 55 */
    font-weight: 200;
    /* Light */
    line-height: 1.4;
    /* Muy pegado según Figma */
    max-width: 1080px;
    margin: 0 auto 48px;
    color: #FFFFFF;
    text-align: center;
}

/* --- FORM CONTAINER (FRAME 67) --- */
.form-container {
    width: 1080px;
    background: rgba(66, 192, 180, 0.08);
    /* #42C0B414 */
    backdrop-filter: blur(10px);
    /* Efecto cristal para fidelizar la imagen */
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 16px;
    /* Gap exacto entre inputs */
    width: 100%;
    justify-content: center;
}

/* Estilo de Inputs y Select */
.registration-form input,
.registration-form select {
    width: 100% !important;
    /* Que ocupen el ancho de su columna */
    /* max-width: 484px; */
    /* Frame 57 & 58 */
    height: 56px;
    background-color: #1A726F;
    /* Color base de los campos */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    outline: none;
    transition: background 0.3s ease;
}

/* Placeholder blanco como en la imagen */
.registration-form input::placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.form-row.full-width {
    width: 100%;
}

.form-row.full-width select {
    width: 984px;
    /* Ancho total de la fila (484+484+16) */
    cursor: pointer;
}

/* --- FEATURES SECTION (FRAME 75) --- */
/* --- FEATURES SECTION (FRAME 75) --- */
.features {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 80px;
    /* Padding exacto Figma */
    /* background-color: #0D1313; */
    overflow: hidden;
}

/* Resplandor Inferior (Ellipse 3) */
.features::after {
    content: '';
    position: absolute;
    width: 753px;
    height: 662px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, #1A726F 4.33%, rgba(13, 19, 19, 0) 100%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Título de la Sección */
.features-main-title {
    width: 100%;
    max-width: 633px;
    margin: 0 auto 42px;
    /* Gap de 42px */
    font-size: 36px;
    font-weight: 700;
    color: #218581;
    /* Color exacto Figma */
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Grid de Contenido (Frame 74) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 384px);
    /* Ancho exacto de cada columna */
    gap: 64px;
    /* Gap exacto Frame 74 */
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Columnas (Frames 73, 71, 75) */
.feature-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Gap interno exacto */
}

.feature-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Títulos de Items */
.feature-group h3 {
    font-size: 20px;
    /* Tamaño exacto Figma */
    font-weight: 600;
    /* SemiBold */
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Párrafos de Items */
.feature-group p {
    font-size: 18px;
    /* Tamaño exacto Figma */
    font-weight: 200;
    color: #D9D8D5;
    /* Color var(--cPrimary-cBlack2) */
    line-height: 1.4;
    margin-bottom: 0;
}

/* Contenedor de Imagen (Rectangle 9) */
.feature-img-box {
    width: 384px;
    height: 216px;
    border-radius: 8px;
    /* Opcional, para suavizar */
    overflow: hidden;
    background: #1a1a1a;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-img-box:hover .feature-img {
    transform: scale(1.05);
}

/* Ajuste de espaciado extra para los grupos inferiores */
.feature-group+.feature-group {
    margin-top: 16px;
}

/* --- FOOTER SECTION (FRAME 85) --- */
/* --- FOOTER SECTION (FRAME 85) --- */
.main-footer {
    width: 100%;
    max-width: 1440px;
    /* Ancho del frame */
    height: 248px;
    /* Altura exacta */
    margin: 0 auto;
    padding: 48px 180px;
    /* Padding lateral solicitado */
    background-color: #0D1313;
    /* Fondo profundo */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrado horizontal total */
    justify-content: center;
    /* Centrado vertical total */
    gap: 36px;
    /* Gap entre el bloque de redes y el copyright */
    box-sizing: border-box;
}

/* Bloque Superior: Título + Iconos (Frame 84) */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* Espacio entre título e iconos */
}

/* Título (32px Bold) */
.footer-title {
    font-size: 25px;
    /* Tamaño exacto Figma */
    font-weight: 700;
    color: #1A726F;
    /* Color de marca */
    line-height: 100%;
    text-align: center;
    margin: 0;
}

/* Contenedor de Iconos (Frame 70) */
.social-links {
    width: 224px;
    /* Ancho total del grupo de iconos */
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* Gap exacto entre iconos */
}

.social-links a {
    width: 32px;
    /* Tamaño de caja de cada icono */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A726F;
    /* Color exacto */
    font-size: 24px;
    /* Proporción visual del glifo */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #218581;
    /* Variación sutil al interactuar */
    transform: translateY(-2px);
}

/* Texto de Derechos Reservados (24px Regular) */
.footer-copyright {
    width: 1080px;
    /* Ancho máximo del bloque de texto */
    font-size: 18px;
    /* Tamaño exacto Figma */
    font-weight: 400;
    color: #1A726F;
    /* Color exacto */
    line-height: 100%;
    text-align: center;
    margin: 0;
    opacity: 0.9;
    /* Suavizado para jerarquía visual */
    margin: 25px 0;
}

/* Ajuste de responsividad para mantener la fidelidad */
@media (max-width: 1100px) {
    .main-footer {
        padding: 48px 40px;
        height: auto;
    }

    .footer-title {
        font-size: 28px;
    }

    .footer-copyright {
        font-size: 18px;
        width: 100%;
        margin: 25px 0;
    }
}


@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Pasamos a 2 columnas */
        gap: 40px;
    }

    .registration,
    .features,
    .main-footer {
        padding: 60px 40px;
    }

    .form-row.full-width select {
        width: 100% !important;
        max-width: 984px;
    }
}

@media (max-width: 768px) {

    /* 1. RESET GLOBAL Y SEGURIDAD DE ANCHO */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        box-sizing: border-box;
    }

    .container {
        padding: 0 10px;
    }

    /* 3. HERO & VIDEO */
    .logo-img {
        width: 160px;
        height: auto;
    }

    .video-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button i {
        font-size: 20px;
        color: white;
        margin-left: 5px;
    }

    .step-text {
        font-size: 20px !important;
    }

    .hero-description p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        padding: 0 10px;
        margin-bottom: 24px;
    }

    /* 4. SECCIÓN REGISTRO Y FORMULARIO (ANCHO MÁXIMO) */
    .registration {
        padding: 40px 0 !important;
        /* Eliminamos padding lateral para que el form mande */
        width: 100% !important;
    }

    .registration .section-title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .form-container {
        width: 95% !important;
        /* Toma casi toda la pantalla */
        max-width: 100% !important;
        padding: 30px 15px !important;
        /* Espacio interno optimizado */
        border-radius: 12px;
        background: rgba(66, 192, 180, 0.12);
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .registration-form {
        width: 100%;
        gap: 12px;
    }

    .form-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .registration-form input,
    .registration-form select,
    .form-row.full-width select {
        width: 100% !important;
        max-width: 100% !important;
        height: 55px !important;
        /* Altura cómoda para dedos */
        font-size: 12px !important;
        margin: 0;
    }

    /* 5. FEATURES (GRID VERTICAL) */
    .features-main-title {
        font-size: 20px !important;
        padding: 0 0;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .feature-img-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    /* 6. DECORACIÓN Y BRILLOS */
    .registration::before,
    .registration::after,
    .hero::before,
    .features::after {
        width: 200px !important;
        height: 200px !important;
        opacity: 0.3;
    }

    .feature-group h3 {
        font-size: 15px;
    }

    .feature-group p {
        font-size: 14px;
        line-height: 1.4 !important;
    }

    /* 7. FOOTER */
    .main-footer {
        height: auto !important;
        padding: 40px 20px !important;
    }

    .footer-title {
        font-size: 15px !important;
    }

    .footer-copyright {
        width: 100% !important;
        font-size: 10px !important;
        margin-top: 20px;
    }
}

/* * {
    outline: 1px solid red !important;
} */