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

:root {
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --soft-grey: #f5f5f5;
    --back-grey: #c1ff72;
    --medium-grey: #888888;
    --charcoal: #1a1a1a;
    --accent-nude: #e8d5c4;
    --accent-rose: #a8a5a7;
    --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 10px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--pure-white);
    background: var(--charcoal);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 400; /* Anton solo tiene este grosor, es importante definirlo */
    letter-spacing: 1px; /* Opcional: Anton se ve bien con un poco más de espacio */
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--back-grey);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--pure-white);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
}

.mobile-menu-links li {
    margin: 2rem 0;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
    color: var(--accent-rose);
}

/* === ESTILOS PARA EL LOGO FIJO EN LA ESQUINA === */

/* Contenedor del logo fijo (oculto por defecto) */
.sticky-logo-container {
    position: fixed;
    top: 2rem;
    left: 2rem; /* En el lado opuesto al hamburger */
    z-index: 1001; /* Debe estar encima de todo, como el hamburger */
    
    /* Mismas proporciones que el hamburger menu */
    width: 30px;
    height: 20px;
    
    /* Estado inicial para la animación (oculto y fuera de la pantalla) */
    opacity: 0;
    transform: translateY(-50px);
    pointer-events: none; /* No se puede hacer clic cuando está oculto */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estilo cuando el usuario ha hecho scroll */
.sticky-logo-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Se puede interactuar con él si es necesario */
}

/* Asegura que la imagen dentro del contenedor se ajuste correctamente */
#sticky-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la proporción del logo sin deformarlo */
}

/* ESTILOS MODIFICADOS PARA HERO Y CASCADA  */


/* Ajustamos el .hero para que sea un contenedor flex */
.hero {
    min-height: 100vh; /* Asegura que la sección ocupe al menos toda la altura de la vista */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 8rem; /* ¡Más espacio a los lados, arriba y abajo! */
    background: var(--charcoal); /* Asegura el fondo negro */
    overflow: hidden; /* Evita barras de desplazamiento si las imágenes son muy grandes */
    position: relative;
}

/* Contenedor principal para las dos columnas */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px; /* Un poco más de ancho máximo para pantallas grandes */
    gap: 4rem; /* Más espacio entre el contenido y las imágenes */
}

/* Ajustamos el contenido de la izquierda */
.hero-content {
    flex-basis: 40%; /* Ocupa un poco menos para dar más espacio a las imágenes */
    text-align: left; /* Alineamos el texto a la izquierda */
    z-index: 2;
    padding-right: 2rem; /* Pequeño padding extra si el texto llega muy al borde */
}

.hero-logo {
    width: 100%;
    max-width: 450px; /* El logo puede ser un poco más grande */
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.4rem; /* Hacemos el subtítulo un poco más grande */
}

.hero-cta {
    padding: 1.6rem 4.5rem; /* Botón un poco más grande */
}

/* Contenedor para la cascada de imágenes de la derecha */
.hero-image-waterfall {
    flex-basis: 60%; /* Ocupa más espacio para las imágenes */
    height: 90vh; /* ¡Ocupa más altura de la vista! */
    display: flex;
    gap: 2rem; /* Más espacio entre las columnas de imágenes */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); /* Efecto de desvanecimiento arriba y abajo */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* Cada una de las columnas de imágenes */
.waterfall-column-up {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Más espacio entre las imágenes dentro de una columna */
    /* Ajusta la duración de la animación aquí para hacerla más rápida */
    animation: scroll-up 30s linear infinite; /* ¡Más rápido! (antes 60s) */
}

.waterfall-column-down {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Más espacio entre las imágenes dentro de una columna */
    /* Ajusta la duración de la animación aquí para hacerla más rápida */
    animation: scroll-down 30s linear infinite; /* ¡Más rápido! (antes 60s) */
}

/* Estilo para las imágenes dentro de las columnas */
.waterfall-image {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animación que mueve las imágenes hacia arriba */
@keyframes scroll-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%); /* Sigue siendo el 50% para el bucle infinito */
    }
}

@keyframes scroll-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}


/* RESPONSIVE DESIGN */

@media (max-width: 992px) {
    .hero {
        padding: 4rem 2rem; /* Un poco menos de padding en móviles */
    }
    .hero-content {
        flex-basis: 100%; /* El contenido ocupa todo el ancho */
        text-align: center; /* Se centra de nuevo */
        padding-right: 0; /* No padding extra en móviles */
    }
    
    /* Ocultamos la cascada de imágenes en pantallas más pequeñas */
    .hero-image-waterfall {
        display: none;
    }
}

/* Si el logo es demasiado grande en móvil, ajusta esto */
@media (max-width: 576px) {
    .hero-logo {
        max-width: 300px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        padding: 1.2rem 3rem;
        font-size: 0.8rem;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--medium-grey);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--back-grey);
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;

}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-rose);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* --- Estilo para el nuevo logo en la sección principal --- */
.hero-logo {
    width: 90%;                  /* Ocupa el 90% del ancho en pantallas pequeñas */
    max-width: 450px;            /* Pero no más de 450px en pantallas grandes */
    height: auto;                /* Mantiene la proporción correcta de la imagen */
    margin-bottom: 2rem;         /* Espacio inferior, igual que el título anterior */
    animation: fadeInUp 1s ease; /* Usamos la misma animación de entrada que tenía el texto */
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    background: var(--back-grey);
    border-radius: 8px;
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
}

.float-item:nth-child(1) {
    width: 60px;
    height: 80px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    width: 45px;
    height: 60px;
    top: 70%;
    right: 12%;
    animation-delay: -8s;
}

.float-item:nth-child(3) {
    width: 55px;
    height: 70px;
    bottom: 20%;
    left: 15%;
    animation-delay: -15s;
}

.float-item:nth-child(4) {
    width: 70px;
    height: 55px;
    top: 45%;
    right: 20%;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(8deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(20px) rotate(3deg); }
}

/* ============================================= */
/* === AJUSTES PARA FONDO ANIMADO EN MÓVIL === */
/* ============================================= */
@media (max-width: 768px) {
    /* Ajustamos las posiciones de los elementos flotantes para que se vean mejor en pantallas verticales */

    .float-item:nth-child(1) {
        width: 40px;  /* Hacemos los elementos un poco más pequeños */
        height: 50px;
        top: 10%;
        left: 10%; /* Lo movemos un poco */
    }

    .float-item:nth-child(2) {
        width: 35px;
        height: 45px;
        top: 60%;
        left: 80%; /* Lo movemos del 'right' al 'left' para mejor control */
        right: auto;
    }

    .float-item:nth-child(3) {
        width: 45px;
        height: 55px;
        bottom: 15%;
        left: 5%; /* Lo movemos más a la izquierda */
    }

    /* Opcional: Si sientes que 4 elementos son demasiados en móvil, puedes ocultar el último */
    .float-item:nth-child(4) {
        display: none; 
    }
}

/* NUEVA SECCIÓN DE HÉROE ANIMADO*/


.animated-hero {
    background-color: var(--pure-white); 
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;   
    overflow: hidden;      
}


.animated-title {
    color: var(--charcoal);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700; 
    letter-spacing: -2px;
    text-align: center;
    margin-bottom: 2rem;
}

.animated-title span {
    display: inline-block;
    opacity: 0;
}

.models-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    gap: 1.5rem;           
    width: 100%;
}

.model {
    max-height: 60vh; 
    width: auto;      
    object-fit: contain;
    opacity: 0; 
}


@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpModel {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-get {
    animation: fadeInText 0.5s ease forwards;
    animation-delay: 0.2s;
}
.word-ready {
    animation: fadeInText 0.5s ease forwards;
    animation-delay: 0.6s; 
}
.model-1 {
    animation: slideUpModel 0.6s ease forwards;
    animation-delay: 1.0s;
}
.model-2 {
    animation: slideUpModel 0.6s ease forwards;
    animation-delay: 1.2s;
}
.model-3 {
    animation: slideUpModel 0.6s ease forwards;
    animation-delay: 1.4s;
}
.model-4 {
    animation: slideUpModel 0.6s ease forwards;
    animation-delay: 1.6s;
}
.model-5 {
    animation: slideUpModel 0.6s ease forwards;
    animation-delay: 1.8s;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-grey);
    font-weight: 300;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--charcoal);
}

/* --- ESTILOS ACTUALIZADOS PARA LAS FEATURE CARDS --- */

.features-grid {
    display: grid;
    /* Ajustamos el minmax para que sea un poco más flexible en pantallas medianas */
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--pure-white);
    /* Convertimos la tarjeta en un contenedor flex */
    display: flex;
    align-items: center; /* Centra verticalmente la imagen y el texto */
    gap: 2rem;           /* Espacio entre imagen y texto */
    padding: 2rem;       /* Ajustamos el padding */
    border-radius: 1rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

/* Contenedor de la imagen */
.feature-image {
    flex-shrink: 0; /* Evita que la imagen se encoja */
    width: 200px;   /* Ancho fijo para la imagen */
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin deformarse */
    border-radius: 0.5rem; /* Bordes redondeados para la imagen */
}

/* Contenedor del texto */
.feature-content {
    flex-grow: 1; /* Permite que el texto ocupe el espacio restante */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(212, 165, 116, 0.2);
}

/* --- ESTILOS PARA LA VISTA MÓVIL --- */
/* Media Query para pantallas de 768px o menos */

@media (max-width: 768px) {
    .feature-card {
        /* Cambiamos la dirección del flex a columna */
        flex-direction: column;
        text-align: center; /* Centramos el texto */
    }

    .feature-image {
        width: 100%; /* La imagen ocupa todo el ancho de la tarjeta */
        max-width: 250px; /* Pero no más de 250px para que no sea gigante */
        margin-bottom: 1.5rem; /* Espacio entre la imagen y el texto */
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(212, 165, 116, 0.2);
}

.feature-number {
    font-size: 1rem;
    color: var(--accent-rose);
    margin-bottom: 1rem;
    font-weight: 400;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--charcoal);
}

.feature-description {
    color: var(--medium-grey);
    line-height: 1.8;
    font-weight: 300;
}


/* Showcase Section */
.showcase {
    padding: 8rem 0;
    background: var(--pure-white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem; /* Más espacio entre texto e imagen */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.showcase-text h2 {
    font-size: 3.5rem; /* Título más grande */
    font-weight: 600;  /* Un poco más de peso */
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.showcase-text p {
    font-size: 1.1rem; /* Texto ligeramente más pequeño para que quepa todo */
    color: var(--medium-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem; /* Espacio entre párrafos */
}

.showcase-text .hero-cta {
    margin-top: 2rem; /* Espacio sobre el botón */
}


/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* Añadimos un borde simulado al teléfono */
    border: 10px solid var(--charcoal);
    border-radius: 40px;
    box-shadow: var(--shadow-elevated);
}

.phone-screen {
    aspect-ratio: 9 / 19.5;
    background: #e0e0e0; /* Un fondo mientras carga la imagen */
    border-radius: 30px; /* Radio interior */
    overflow: hidden; /* Muy importante para que la imagen se recorte */
}

#mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
    transition: opacity 0.5s ease-in-out; /* Animación de desvanecimiento */
}

/* Pre-registration Section */
.pre-register {
    padding: 10rem 0;
    background: var(--charcoal);
    color: var(--pure-white);
    text-align: center;
}

.pr-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pr-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.pr-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 4rem;
    line-height: 1.8;
}

.pr-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group select option {
    background: var(--charcoal); /* Fondo negro/carbón */
    color: var(--pure-white);     /* Texto blanco para contraste */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-rose);
    background: rgba(255, 255, 255, 0.15);
}

.pr-submit {
    padding: 1.2rem;
    background: var(--back-grey);
    color: var(--charcoal);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border-radius: 1rem;

}

.pr-submit:hover {
    background: var(--back-grey);
    transform: translateY(-2px);
}

.phone-input-container {
    display: flex;
    border-radius: 0; 
}

.country-code-select,
.phone-number-input {

    border: 1px solid rgba(255, 255, 255, 0.2); 
}

.country-code-select {
    border-radius: 0; 
    background: rgba(255, 255, 255, 0.05);
}

.phone-number-input {
    flex-grow: 1; 
    border-left: none;
    border-radius: 0;
}


.phone-input-container:focus-within {
    box-shadow: 0 0 0 1px var(--accent-rose); 
}

.phone-input-container:focus-within .country-code-select,
.phone-input-container:focus-within .phone-number-input {
    
    background: rgba(255, 255, 255, 0.15);
    border-color: transparent;
}

.phone-input-container:focus-within .phone-number-input {
    border-left: none;
}



/* Footer */
footer {
    padding: 4rem 0;
    background: var(--off-white);
    text-align: center;
    color: var(--charcoal);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--medium-grey);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--charcoal);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 150px;           /* Adjust the size of the logo */
    height: auto;
    display: block;
    margin: 20px auto;      /* Centers the logo horizontally */
}