/* --- RESET Y BASE RESPONSIVE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- DECLARACIÓN DE FUENTES (CON COMPATIBILIDAD MEJORADA) --- */
@font-face {
    font-family: 'Gobold';
    /* Se añade el formato .ttf para máxima compatibilidad, especialmente con Safari */
    src: url('fonts/GoboldRegularItalic.woff2') format('woff2'),
         url('fonts/GoboldRegularItalic.woff') format('woff'),
         url('fonts/GoboldRegularItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


/* --- ESTILOS GENERALES --- */
body {
    margin: 0;
    font-family: 'Helvetica Now Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow-x: hidden;
}

/* --- VIDEO DE FONDO --- */
.video-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden;
}

.video-background video {
    width: 100%; height: 100%; object-fit: cover; 
}

.main-content {
    display: flex; flex-direction: column; align-items: center; z-index: 1;
    width: 90%;
}

/* --- ESTILOS DEL LOGO --- */
.logo-main {
    max-width: 250px; width: 60%; margin-bottom: 20px;
}

.logo-popup {
    max-width: 100px;
    margin-bottom: 10px;
}

h1 {
    font-family: 'Gobold', 'Arial Narrow', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem); 
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    max-width: 900px;
    margin: 0 0 25px;
}

/* --- ESTILO DEL BOTÓN LIQUID GLASS --- */
.cta-button {
    cursor: pointer; padding: 15px 35px; font-size: 1.1rem; font-weight: normal;
    color: white; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50px;
    background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease-in-out; text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    z-index: 1;
}
.cta-button:hover {
    background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.7); transform: scale(1.05);
}

/* --- ESTILO DEL POP-UP (MODAL) --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
    padding: 15px;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-content {
    background: #1c1c1e; padding: 30px; border-radius: 20px;
    width: 100%; max-width: 380px;
    position: relative; transform: scale(0.9); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; align-items: center;
}
.popup-overlay.active .popup-content { transform: scale(1); }

.close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    line-height: 1; cursor: pointer; color: #888; transition: color 0.2s;
}
.close-btn:hover { color: white; }

.popup-content h2 {
    font-family: 'Gobold', sans-serif; font-weight: normal; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 1.8rem;
    margin-top: 0; margin-bottom: 10px; text-align: center;
}
.popup-content p {
    color: #8d8d92; font-size: 0.9rem;
    margin-top: 0; margin-bottom: 20px; text-align: center;
}
.popup-content form {
    width: 100%; display: flex; flex-direction: column; align-items: center;
}
.popup-content input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border-radius: 10px; border: 1px solid #3a3a3c; background: #3a3a3c;
    color: white; font-size: 1rem;
}
.popup-content input:focus {
    border-color: #E10600; outline: none; 
}

/* --- PRIVACIDAD Y RECAPTCHA --- */
.privacy-policy-container {
    display: flex; align-items: center; text-align: left; margin-bottom: 15px; cursor: pointer;
    width: 100%; max-width: 304px;
}
.privacy-policy-container input[type="checkbox"] { display: none; }
.privacy-policy-container label {
    position: relative; padding-left: 28px; font-size: 0.8rem; color: #aaa; line-height: 1.4;
}
.privacy-policy-container label::before {
    content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px;
    border: 2px solid #555; background-color: #333; border-radius: 4px; transition: all 0.2s ease;
}
.privacy-policy-container label::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
    opacity: 0; transition: opacity 0.2s ease;
}
.privacy-policy-container input[type="checkbox"]:checked + label::before {
    background-color: #E10600; border-color: #E10600;
}
.privacy-policy-container input[type="checkbox"]:checked + label::after {
    opacity: 1;
}
.privacy-policy-container a {
    color: #E10600; text-decoration: none;
}

.g-recaptcha {
    margin-bottom: 15px;
}

.popup-content button {
    width: 100%; padding: 12px;
    border-radius: 10px; background-color: #E10600;
    color: white; border: none; font-size: 1.1rem; font-weight: normal; cursor: pointer;
    transition: background-color 0.2s;
}
.popup-content button:hover {
    background-color: #C80500;
}

/* --- DISEÑO RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .logo-main {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
    .popup-content {
        padding: 20px 15px;
    }
    .logo-popup {
        max-width: 70px;
        margin-bottom: 10px;
    }
    .popup-content h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .popup-content p {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    .popup-content input, .popup-content button {
        padding: 10px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .privacy-policy-container {
        margin-bottom: 10px;
    }
    .privacy-policy-container label {
        font-size: 0.75rem;
    }
    .g-recaptcha {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
        transform-origin: center;
        -webkit-transform-origin: center;
        margin-bottom: 10px;
    }
}