/* ==========================================================================
   1. Variables y Configuración Base
   ========================================================================== */
:root {
    --primary-color: #033C5A;
    --primary-hover: #05557f;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --text-main: #ffffff;
    --text-muted: #d1d1d1;
    --text-dark: #2f3542;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    /* CAMBIO CLAVE: min-height en vez de height 100%, y quitamos el overflow: hidden */
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111;
    overflow-x: hidden; /* Solo evitamos el scroll horizontal */
}

/* ==========================================================================
   2. Estructura de la Página (Layout Flexbox)
   ========================================================================== */
.hero-container {
    min-height: 100vh;
    display: flex; /* Flexbox para centrar sin cortar contenido */
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../img/bg-travel.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 40px 20px; /* Espaciado arriba y abajo para celulares pequeños */
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
}

/* ==========================================================================
   3. Componentes
   ========================================================================== */
.logo-container {
    margin-bottom: 25px;
}

.main-logo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background-color: white;
}

h1 {
    color: var(--text-main);
    /* Usamos clamp para que el texto se adapte dinámicamente al ancho de la pantalla */
    font-size: clamp(2rem, 8vw, 3.5rem); 
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 35px;
}

.card-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-form h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.form-group {
    display: block;
    width: 100%;
}

#emailInput {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
    outline: none;
    color: var(--text-dark);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.contact-email {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    word-break: break-word; /* Para que el correo no se desborde si es muy largo */
}

.contact-email a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.hidden-message {
    display: none;
    color: #2ecc71;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1rem;
}

.error-text {
    color: #e74c3c;
}

/* ==========================================================================
   4. Redes Sociales y Footer
   ========================================================================== */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-main);
    background-color: var(--card-bg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.legal-notice {
    margin-top: 40px;
}

.legal-notice p {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. Animaciones
   ========================================================================== */
.fade-in {
    animation: slideUpFade 1s ease-out forwards;
}

/* Ajuste de animación para Flexbox */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. Media Queries (Responsivo Celulares)
   ========================================================================== */
@media (max-width: 480px) {
    h1 { 
        /* En celulares el texto se hará más pequeño para que quepa bien */
        letter-spacing: 1px; 
    }
    .subtitle { 
        font-size: 0.95rem; 
        margin-bottom: 25px;
    }
    .main-logo { 
        width: 140px; 
        height: 140px; 
    }
    .card-form { 
        padding: 25px 15px; 
    }
    .contact-email {
        font-size: 0.85rem;
    }
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}