/* --- 1. ESTILOS NAVEGACIÓN (HEADER) --- */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: bold; 
    font-size: 2rem; 
    letter-spacing: 4px;
    color: #d4af37; 
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
}

nav { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

nav a {
    color: #d4af37; 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: bold; 
    position: relative; 
    padding-bottom: 5px;
    transition: 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after { width: 100%; }

nav a:hover {
    color: #f5f5f5; 
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* --- 2. MODALES CON SCROLL DE RUEDITA --- */
.modal-overlay {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(10, 0, 15, 0.7); 
    backdrop-filter: blur(10px);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 3000; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.4s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: rgba(20, 0, 30, 0.95); 
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 40px;
    border-radius: 30px; 
    width: 90%; 
    max-width: 450px; 
    position: relative; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); 
    text-align: center;
    
    /* LÓGICA DE SCROLL PARA LA RUEDITA */
    display: block;      /* Importante para el flujo vertical */
    max-height: 80vh;    /* Altura máxima para que no se salga de la pantalla */
    overflow-y: auto;    /* ACTIVA EL SCROLL CON EL RATÓN */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* DISEÑO DE LA BARRITA DORADA */
.modal-content::-webkit-scrollbar {
    width: 8px; 
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 10px;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d4af37; 
    border-radius: 10px;
    border: 2px solid rgba(20, 0, 30, 1);
}

/* Firefox */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: transparent;
    border: none; 
    color: #d4af37; 
    font-size: 2rem; 
    cursor: pointer;
    z-index: 10;
}

/* --- 3. FORMULARIOS E INPUTS --- */
.modal-content h2 {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    color: #d4af37;
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: 5px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

textarea { height: 80px; resize: none; font-family: inherit; }

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

select option { background: #1a0029; color: white; }

.btn-login-submit {
    background: transparent; 
    border: 2px solid #d4af37; 
    color: #d4af37;
    padding: 0.9rem 2rem; 
    border-radius: 50px; 
    font-weight: bold;
    cursor: pointer; 
    width: 100%; 
    text-transform: uppercase; 
    transition: 0.3s;
    margin-top: 20px;
    margin-bottom: 10px; /* Margen para que respire en el fondo */
}

.btn-login-submit:hover { background: #d4af37; color: #1a0029; }

.modal-footer { margin-top: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.modal-footer a { color: #d4af37; text-decoration: none; font-weight: bold; }

/* --- 4. AVATAR Y MENÚ DESPLEGABLE --- */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 42px; height: 42px; 
    background-color: #d4af37;
    color: #1a0029; 
    border-radius: 50%; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    font-weight: bold;
    cursor: pointer; 
    border: 2px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.dropdown-menu {
    display: none; 
    position: absolute; 
    top: 55px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: rgba(26, 0, 41, 0.98); 
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.5); 
    border-radius: 15px;
    min-width: 190px; 
    z-index: 9999; 
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.dropdown-header {
    padding: 10px 20px;
    color: #f5f5f5;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 10px;
}

.dropdown-menu a {
    color: #d4af37;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    display: block;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f5f5f5;
    padding-left: 25px;
}

.logout-link { color: #ff4d4d !important; border-top: 1px solid rgba(212,175,55,0.2); margin-top: 10px; }

/* --- 5. BOTÓN GLOBAL SUBIR --- */
.btn {
    background: #000; 
    border: 1px solid #d4af37; 
    color: #d4af37;
    padding: 10px 25px; 
    border-radius: 50px;
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: 0.3s;
}
.btn:hover { background: #d4af37; color: #1a0029; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }

/* --- ESTILOS NAVEGACIÓN (Se mantiene tu base) --- */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: bold; 
    font-size: 2rem; 
    letter-spacing: 4px;
    color: #d4af37; 
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 25px; }

nav a {
    color: #d4af37; 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: bold; 
    transition: 0.3s;
}

/* --- BOTÓN DINÁMICO DE ACCIÓN --- */
.btn {
    background: #000; 
    border: 1px solid #d4af37; 
    color: #d4af37;
    padding: 10px 25px; 
    border-radius: 50px;
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover { 
    background: #d4af37; 
    color: #1a0029; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); 
}

/* Estilo para botón de OFERTAS (Consumidor) */
.btn-ofertas {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-ofertas:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- MODALES Y OTROS ESTILOS (Se mantiene tu original) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 0, 15, 0.7); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; opacity: 0; visibility: hidden; transition: 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
/* RESET DE BOTÓN */
.btn-nav-creador, .btn-nav-consumidor {
    padding: 10px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

/* ORO PURO PARA CREADORES */
.btn-nav-creador {
    border: 1px solid #d4af37 !important;
    color: #d4af37 !important;
}
.btn-nav-creador:hover {
    background: #d4af37 !important;
    color: #000 !important;
}

/* BLANCO PARA CONSUMIDORES */
.btn-nav-consumidor {
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}
.btn-nav-consumidor:hover {
    background: #ffffff !important;
    color: #000 !important;
}