/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos del body */
body {
    font-family: 'DM Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* Contenedor del background */
.background-container {
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/background-ia.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Overlay sutil para crear variaciones de opacidad */
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.12) 75%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Segundo overlay para crear más profundidad */
.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.06) 30%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Contenedor de la frase */
.phrase-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    margin-top: 270px;
    width: 90%;
    max-width: 500px;
}

.waitlist-phrase {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Contenedor del logo */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    margin-top: -270px;
}

.logo {
    width: 150px;
    height: auto;
    display: block;
}

/* Contenedor principal central */
.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    min-height: 400px;
    background-color: rgba(3, 11, 6, 0.75);
    border-radius: 10px;
    z-index: 10;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Título */
.waitlist-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

/* Contador regresivo */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    color: white;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.countdown-separator {
    color: white;
    font-size: 24px;
    font-weight: 300;
}

/* Texto de invitación */
.invitation-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

/* Formulario */
.email-form {
    width: 100%;
    max-width: 400px;
}

.input-container {
    position: relative;
    display: flex;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 15px 20px 15px 20px;
    padding-right: 140px;
    background-color: #0F1C0F;
    border: 2px solid #407A39;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    border-color: #72D662;
}

.subscribe-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background-color: #72D662;
    color: black;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 120px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.subscribe-btn:hover {
    background-color: #5bb84f;
}

/* Iconos de redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 8px;
    border-radius: 50%;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon:active {
    transform: scale(0.95);
}

.social-svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(20%) saturate(1000%) hue-rotate(90deg) brightness(1.0) contrast(0.9);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .background-container {
        background-attachment: scroll;
    }
    
    .main-card {
        width: 95%;
        padding: 25px 20px;
        min-height: 350px;
        max-width: 450px;
    }
    
    .waitlist-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .countdown-container {
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .countdown-number {
        font-size: 28px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .countdown-separator {
        font-size: 18px;
    }
    
    .invitation-text {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .email-form {
        max-width: 350px;
    }
    
    .email-input {
        padding: 12px 15px 12px 15px;
        padding-right: 110px;
        font-size: 15px;
    }
    
    .subscribe-btn {
        padding: 0 15px;
        font-size: 15px;
        min-width: 90px;
    }
    
    .social-icons {
        gap: 18px;
        margin-top: 20px;
    }
    
    .social-svg {
        width: 22px;
        height: 22px;
    }
    
    .logo {
        width: 125px;
    }
    
    .logo-container {
        margin-top: -250px;
    }
    
    .phrase-container {
        margin-top: 250px;
        max-width: 400px;
        padding: 0 20px;
    }
    
    .waitlist-phrase {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .background-container {
        background-size: cover;
        background-position: center;
    }
    
    .main-card {
        width: 98%;
        padding: 20px 15px;
        min-height: 300px;
        max-width: 350px;
    }
    
    .waitlist-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .countdown-container {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 11px;
    }
    
    .countdown-separator {
        font-size: 16px;
    }
    
    .invitation-text {
        font-size: 12px;
        margin-bottom: 18px;
        padding: 0 5px;
    }
    
    .email-form {
        max-width: 300px;
    }
    
    .email-input {
        padding: 10px 12px 10px 12px;
        padding-right: 100px;
        font-size: 14px;
    }
    
    .subscribe-btn {
        padding: 0 12px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .social-icons {
        gap: 15px;
        margin-top: 18px;
    }
    
    .social-svg {
        width: 20px;
        height: 20px;
    }
    
    .logo {
        width: 110px;
    }
    
    .logo-container {
        margin-top: -220px;
    }
    
    .phrase-container {
        margin-top: 220px;
        max-width: 280px;
        padding: 0 15px;
    }
    
    .waitlist-phrase {
        font-size: 12px;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 360px) {
    .main-card {
        width: 99%;
        padding: 15px 10px;
        min-height: 280px;
    }
    
    .waitlist-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .countdown-container {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .countdown-number {
        font-size: 22px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    .countdown-separator {
        font-size: 14px;
    }
    
    .invitation-text {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .email-input {
        padding: 8px 10px 8px 10px;
        padding-right: 90px;
        font-size: 13px;
    }
    
    .subscribe-btn {
        padding: 0 10px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .social-icons {
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-svg {
        width: 18px;
        height: 18px;
    }
    
    .logo {
        width: 100px;
    }
    
    .logo-container {
        margin-top: -200px;
    }
    
    .phrase-container {
        margin-top: 200px;
        max-width: 250px;
        padding: 0 10px;
    }
    
    .waitlist-phrase {
        font-size: 11px;
    }
}
