/* --- ESTILOS DEL POP-UP NUBAY --- */

#popup-overlay {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px);
    z-index: 100000; 
    justify-content: center;
    align-items: center;
    animation: fadeInPopup 0.5s ease-out forwards;
}

@keyframes fadeInPopup {
    from { opacity: 0; }
    to { opacity: 1; }
}

#popup-content {
    background: linear-gradient(145deg, #130a21, #2d0949);
    border: 3px solid #f6a613;
    padding: 24px 20px;
    border-radius: 2rem;
    width: 92%;
    max-width: 420px; 
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 25px rgba(246,166,19,0.3);
    position: relative;
    text-align: center;
    color: white;
    font-family: 'Inter', sans-serif;
    transform: scale(0.9);
    animation: scaleUpPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Custom Scrollbar for popup (if needed on small phones) */
#popup-content::-webkit-scrollbar { width: 6px; }
#popup-content::-webkit-scrollbar-track { background: transparent; }
#popup-content::-webkit-scrollbar-thumb { background: #f6a613; border-radius: 6px; }

@keyframes scaleUpPopup {
    to { transform: scale(1); }
}

.popup-header h2 {
    font-family: "Fido W01 Regular", 'Bangers', cursive;
    color: #fff;
    font-size: 2.2rem;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.1;
}

.popup-header h2 span {
    color: #f6a613;
    text-shadow: 0 0 15px rgba(246,166,19,0.5);
}

.nubay-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    z-index: 10;
}
.close-btn:hover {
    color: #f6a613;
    transform: rotate(90deg) scale(1.1);
}

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #f6a613;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s;
    font-size: 0.9em;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: #f6a613;
    box-shadow: 0 0 15px rgba(246, 166, 19, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.checkbox-group {
    text-align: left;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    min-width: 14px; 
    accent-color: #f6a613;
}

.checkbox-group label a {
    color: #66d9e8;
    text-decoration: underline;
    font-weight: 600;
}
.checkbox-group label a:hover {
    color: #fff;
}

#subscription-form button[type="submit"] {
    background: linear-gradient(135deg, #f6a613, #ff6b00);
    color: #2d0949;
    font-family: "Fido W01 Regular", 'Bangers', cursive;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.5em;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(246, 166, 19, 0.4);
}

#subscription-form button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(246, 166, 19, 0.6);
}

.required-note {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

/* ============================================================
   POPUP RESPONSIVE — Móvil sin dañar desktop
   ============================================================ */
@media (max-width: 600px) {
    #popup-content {
        width: 96%;
        max-width: 360px;
        padding: 20px 16px;
        border-radius: 1.5rem;
        max-height: 90vh;
    }

    .popup-header h2 {
        font-size: 1.6rem;
        gap: 6px;
    }

    .popup-header h2 img {
        width: 45px !important;
    }

    .nubay-info {
        font-size: 0.78em;
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 0.7em;
        margin-bottom: 4px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"] {
        padding: 10px 14px;
        font-size: 0.85em;
    }

    .checkbox-group {
        font-size: 0.7em;
        margin-bottom: 10px;
    }

    #subscription-form button[type="submit"] {
        padding: 14px 16px;
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .close-btn {
        font-size: 26px;
        top: 8px;
        right: 12px;
    }

    .required-note {
        font-size: 0.65em;
        margin-top: 10px;
    }
}

@media (max-width: 380px) {
    #popup-content {
        padding: 16px 12px;
        max-height: 92vh;
    }

    .popup-header h2 {
        font-size: 1.4rem;
    }

    #subscription-form button[type="submit"] {
        font-size: 1.1em;
        padding: 12px 14px;
    }
}