/* --- Reseteo y Estilos Base --- */
:root {
    --brand-color: #42b7c9;
    --white-color: #ffffff;
    --dark-color: #000000;
    --font-family: 'Montserrat', sans-serif;
    --gradient-start: #3a9ea9;
    /* Un tono ligeramente más oscuro de tu color principal */
    --gradient-end: #42b7c9;
    /* Tu color principal */
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    /* Degradado de fondo */
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* --- Contenedor de Partículas (NUEVO ESTILO) --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    /* Asegura que esté detrás del contenido principal */
    background: transparent;
    /* Permite ver el degradado del body */
}


/* --- Contenedor Principal y Animaciones de Contenido --- */
.main-container {
    position: relative;
    z-index: 1;
    /* Asegura que el contenido esté por encima de las partículas */
    width: 100%;
    max-width: 800px;
    padding: 30px;
    animation: fadeIn 1.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Contenido: Logo, Títulos y Textos --- */
.logo {
    max-width: 300px;
    margin-bottom: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.headline {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
    line-height: 1.2;
}

.subheadline {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Formulario de Suscripción --- */
.cta-headline {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
    border: 2px solid var(--white-color);
    border-radius: 50px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.subscribe-form input {
    flex-grow: 1;
    border: none;
    padding: 18px 28px;
    font-size: 1.05rem;
    background-color: transparent;
    color: var(--white-color);
    font-family: var(--font-family);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.15);
}

.subscribe-form button {
    border: none;
    padding: 18px 35px;
    background-color: var(--white-color);
    color: var(--brand-color);
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.subscribe-form button:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
        margin-bottom: 40px;
    }

    .headline {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .subheadline {
        font-size: 1.1rem;
        margin-bottom: 45px;
    }

    .cta-headline {
        font-size: 1.1rem;
    }

    .subscribe-form {
        max-width: 90%;
    }
}

@media (max-width: 500px) {
    .headline {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .logo {
        max-width: 200px;
        margin-bottom: 30px;
    }

    .subscribe-form {
        flex-direction: column;
        border: none;
        background-color: transparent;
        box-shadow: none;
    }

    .subscribe-form input {
        border: 2px solid var(--white-color);
        border-radius: 50px;
        margin-bottom: 15px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
    }

    .subscribe-form button {
        border-radius: 50px;
        padding: 15px 20px;
    }
}