/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-color: #0a0a0a;
}

/* Contenedor principal con imagen de fondo oscurecida */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    
    /* Imagen de fondo: CAMBIÁ ESTA RUTA SEGÚN TU ARCHIVO */
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Capa oscura superpuesta (más contraste para texto blanco) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Todo el contenido debe estar por encima de la capa oscura */
.hero > * {
    position: relative;
    z-index: 2;
}

/* LOGO (arriba izquierda) */
.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* CONTENEDOR CENTRAL: ocupa el espacio flexible para centrar vertical */
.contenido-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    /* El contenido se posiciona al 25% de la altura del viewport */
    margin-top: 25vh;
}

.contenido {
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
    width: 100%;
}

/* CAJA DEL TÍTULO (separada visualmente) */
.caja-titulo {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    display: inline-block;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    padding: 0.2rem 1.5rem;
    border-radius: 60px;
}

/* CAJA DEL TEXTO DESCRIPTIVO */
.caja-texto {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(3px);
    padding: 1.5rem 2rem;
    border-radius: 32px;
    max-width: 85%;
    margin: 0 auto;
}

.descripcion {
    font-size: 1.25rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    margin: 0;
}

/* FOOTER (formulario + instagram) */
.footer {
    width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Formulario */
.formulario {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.formulario input {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
    width: 280px;
    max-width: 70vw;
    border: none;
    border-radius: 50px;
    background-color: rgba(255,255,255,0.95);
    outline: none;
    transition: 0.2s;
}

.formulario input:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.formulario button {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 50px;
    background-color: white;
    color: #111;
    cursor: pointer;
    transition: 0.2s;
}

.formulario button:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

/* Link a Instagram */
.instagram-link {
    color: white;
    font-size: 2.2rem;
    transition: 0.2s;
    display: inline-block;
    line-height: 1;
    opacity: 0.9;
}

.instagram-link:hover {
    transform: scale(1.08);
    opacity: 1;
    color: #e4405f;
}

/* Toast / mensaje flotante de confirmación */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1f1f2e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* RESPONSIVE (móviles) */
@media (max-width: 768px) {
    .logo {
        top: 1.2rem;
        left: 1.2rem;
    }
    .logo img {
        max-height: 45px;
    }
    .contenido-wrapper {
        margin-top: 20vh;
    }
    h1 {
        font-size: 2rem;
        padding: 0.2rem 1rem;
    }
    .caja-texto {
        max-width: 95%;
        padding: 1rem 1.2rem;
    }
    .descripcion {
        font-size: 0.95rem;
    }
    .footer {
        padding: 1.5rem 1rem 2rem;
    }
    .formulario input {
        width: 100%;
    }
    .toast {
        white-space: nowrap;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contenido-wrapper {
        margin-top: 18vh;
    }
    .caja-texto {
        backdrop-filter: blur(5px);
        background: rgba(0,0,0,0.3);
    }
}