/* --- ESTILOS GENERALES Y BASE (PALETA VINTAGE "BARBERIA JUNIOR") --- */
:root {
    --color-bg: #0b1116; 
    --color-card: #151e26; 
    --color-gold: #c5a059;
    --color-gold-hover: #e6c67e; 
    --color-text: #e8e6e3;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden; 
}

body { background-color: var(--color-bg); color: var(--color-text); font-family: var(--font-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER & NAV --- */
header { background: rgba(11, 17, 22, 0.95); border-bottom: 1px solid #2a3b4c; position: sticky; top: 0; z-index: 1000; padding: 1rem 0; transition: all 0.3s ease; }
header.sticky { background: rgba(5, 8, 11, 0.98); padding: 0.5rem 0; box-shadow: 0 4px 20px rgba(197, 160, 89, 0.1); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.navbar { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; color: #fff; text-transform: uppercase; z-index: 1002; }
.logo span { color: var(--color-gold); text-shadow: 0 0 10px rgba(197, 160, 89, 0.3); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: #ccc; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--color-gold); text-shadow: 0 0 8px var(--color-gold); }

/* Botón Menú Móvil (Hamburguesa) */
.menu-toggle { display: none; font-size: 1.5rem; color: var(--color-gold); cursor: pointer; border: 1px solid var(--color-gold); padding: 5px 10px; border-radius: 4px; z-index: 1002; background: transparent; }

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; display: inline-block; cursor: pointer; padding-bottom: 0; }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: var(--color-card); min-width: 220px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 9999; border: 1px solid #2a3b4c; border-radius: 8px; border-top: 3px solid var(--color-gold); margin-top: 10px; }
.dropdown:hover .dropdown-content, .dropdown.active .dropdown-content { display: block; animation: fadeIn 0.2s; }

.dropdown-content a { color: #e5e5e5 !important; padding: 12px 20px; display: block; border-bottom: 1px solid #2a3b4c; font-size: 0.9rem; background: transparent; text-transform: uppercase; font-weight: bold; text-align: left; }
.dropdown-content a:hover { background-color: #2a3b4c; color: var(--color-gold) !important; padding-left: 25px; }
.dropdown-content i { width: 20px; text-align: center; margin-right: 10px; color: var(--color-gold); }

/* Perfil Usuario */
.user-nav-profile { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid transparent; transition: 0.3s; }
.user-nav-profile:hover { background: #333; border-color: #555; }
.avatar-frame { width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: #000; display: flex; align-items: center; justify-content: center; }
.avatar-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-icon-center { font-size: 1.1rem; }

/* --- HERO SECTION --- */
.hero { padding: 6rem 0; text-align: center; background: radial-gradient(circle at center, #1c2a38 0%, #0b1116 80%); }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; text-transform: uppercase; text-shadow: 2px 2px 0px #000; }
.text-gold { color: var(--color-gold); }
.hero-logo { width: 200px; height: auto; margin: 0 auto 2rem auto; animation: popIn 0.8s ease-out; }

/* --- TARJETAS --- */
.gamer-card { background: var(--color-card); border: 2px solid #2a3b4c; border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s; height: 100%; animation: popIn 0.6s ease-out backwards; }
.gamer-card:hover { transform: translateY(-5px); border-color: var(--color-gold); z-index: 10; background: #1c2a38; }
.gamer-card i { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--color-gold); transition: 0.3s; }
.gamer-card:hover i { transform: scale(1.1) rotate(5deg); }
.gamer-card h3 { text-transform: uppercase; margin-bottom: 0.5rem; font-size: 1.5rem; color: var(--color-gold); }
.xp-badge { background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; display: inline-block; margin-top: 10px; border: 1px solid #2a3b4c; }

/* --- GRID SERVICIOS --- */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; padding: 2rem 0; }
.card { background: var(--color-card); border: 1px solid #2a3b4c; padding: 2rem; border-radius: 12px; transition: 0.2s; }
.card:hover { border-color: var(--color-gold); transform: translateY(-3px); }
.price { font-size: 1.25rem; font-weight: bold; color: var(--color-gold); display: block; margin-bottom: 0.5rem; }

/* --- TESTIMONIOS (CENTRADOS) --- */
.testimonios-section { padding: 4rem 0; background: #0e141b; border-top: 1px solid #2a3b4c; border-bottom: 1px solid #2a3b4c; }
.testimonios-header { 
    text-align: center; 
    margin-bottom: 3rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    width: 100%;
}
.testimonios-header h2 { font-size: 2.5rem; margin-bottom: 1rem; text-transform: uppercase; color: #fff; }
.score-badge { display: inline-flex; align-items: center; gap: 15px; background: #0b1116; padding: 10px 25px; border-radius: 50px; border: 1px solid #2a3b4c; margin-bottom: 1rem; }
.score-number { font-size: 2rem; font-weight: 900; color: white; line-height: 1; }
.score-stars { color: var(--color-gold); font-size: 1.2rem; }
.carrusel-wrapper { width: 100%; overflow-x: auto; padding-bottom: 2rem; }
.carrusel-track { display: flex; gap: 1.5rem; width: max-content; padding: 10px 20px; }
.testimonio-card { background: var(--color-card); border: 1px solid #2a3b4c; width: 320px; border-radius: 16px; padding: 1.5rem; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; }
.testimonio-card:hover { border-color: var(--color-gold); }
.card-top { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.level-avatar-circle { width: 50px; height: 50px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: #000; flex-shrink: 0; }
.badge-nivel { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.stars-row { color: var(--color-gold); font-size: 0.9rem; }
.stars-row .empty { color: #333; }
.card-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #2a3b4c; display: flex; justify-content: space-between; color: #666; font-size: 0.8rem; }

/* --- BOTONES & FOOTER --- */
.btn-login { background: var(--color-gold); color: #0b1116; padding: 0.6rem 1.5rem; border-radius: 4px; font-weight: 800; text-transform: uppercase; border: none; cursor: pointer; display: inline-block; box-shadow: 0 4px 0 #8c7340; transition: 0.1s; text-align: center; }
.btn-login:hover { background: var(--color-gold-hover); }
.btn-outline { border: 1px solid var(--color-gold); color: var(--color-gold) !important; padding: 0.6rem 1.5rem; border-radius: 4px; font-weight: 800; background: transparent; cursor: pointer; text-transform: uppercase; }
.btn-outline:hover { background: rgba(197, 160, 89, 0.1); }
.btn-3d { border: none; border-radius: 6px; padding: 8px 16px; font-weight: 900; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; display: inline-block; margin: 5px 2px; }
.btn-green { background-color: #22c55e; color: #000; box-shadow: 0 4px 0 #15803d; }
.btn-red { background-color: #8b2e2e; color: #fff; box-shadow: 0 4px 0 #571a1a; }
.btn-blue { background-color: #3b82f6; color: #fff; box-shadow: 0 4px 0 #1d4ed8; }

footer { background: #0b1116; padding: 4rem 0; margin-top: 5rem; border-top: 1px solid #2a3b4c; text-align: center; color: #666; font-size: 0.9rem; }

/* --- MODALES --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; backdrop-filter: blur(8px); }
.modal-content { background: var(--color-card); border: 1px solid #2a3b4c; padding: 3rem; width: 100%; max-width: 450px; border-radius: 16px; position: relative; max-height: 90vh; overflow-y: auto; animation: popIn 0.3s ease-out; }
.modal-close { position: absolute; top: 15px; right: 20px; color: #666; cursor: pointer; font-size: 2rem; }
.modal-tabs { display: flex; margin-bottom: 2rem; border-bottom: 2px solid #2a3b4c; }
.modal-tab { flex: 1; text-align: center; padding: 15px; cursor: pointer; color: #666; font-weight: 800; text-transform: uppercase; }
.modal-tab.active { color: var(--color-gold); border-bottom: 2px solid var(--color-gold); }
.form-box { background: var(--color-card); padding: 2rem; border-radius: 10px; max-width: 600px; margin: 0 auto; border: 1px solid #2a3b4c; }

input, select, textarea { width: 100%; background: #0b1116; border: 1px solid #2a3b4c; padding: 15px; margin-bottom: 1.2rem; color: white; border-radius: 6px; font-size: 1rem; }
input:focus { border-color: var(--color-gold); outline: none; box-shadow: 0 0 15px rgba(197, 160, 89, 0.2); }

/* --- TIME SLOTS --- */
.time-slot { display: inline-block; padding: 12px 20px; border: 1px solid #2a3b4c; margin: 5px; cursor: pointer; border-radius: 6px; background: #151e26; color: #ccc; text-align: center; min-width: 80px; transition: 0.2s; }
.time-slot:hover { border-color: var(--color-gold); color: #fff; background: #1c2a38; }
.time-slot.selected { background: var(--color-gold); color: #0b1116; font-weight: 800; border-color: var(--color-gold); box-shadow: 0 0 15px rgba(197, 160, 89, 0.3); }
.time-slot.disabled { background: #0b1116; color: #333; opacity: 0.5; pointer-events: none; }
.time-slot.night-slot { border: 1px solid #9333ea; position: relative; }
.night-badge { position: absolute; top: -8px; right: -8px; background: #9333ea; color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #000; z-index: 10; }

/* --- REVIEW FORM --- */
.review-form-box { background: #12181f; border: 1px solid #2a3b4c; border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; animation: fadeIn 0.4s ease-out; text-align: center; }
.review-form-box textarea { background: #0b1116; border: 1px solid #2a3b4c; resize: none; height: 100px; color: #e8e6e3; font-family: inherit; }
.rating-group { display: inline-flex; flex-direction: row-reverse; justify-content: center; gap: 5px; margin-bottom: 1.5rem; }
.rating-group input { display: none; }
.rating-group label { font-size: 2.5rem; color: #2a3b4c; cursor: pointer; }
.rating-group label:before { content: '\f005'; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.rating-group label:hover, .rating-group label:hover ~ label, .rating-group input:checked ~ label { color: var(--color-gold); text-shadow: 0 0 15px rgba(197, 160, 89, 0.6); }

input[type="date"] { color-scheme: dark; background-color: #151e26; color: #fff; border: 1px solid #2a3b4c; padding: 10px; border-radius: 6px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

/* --- ANIMACIONES BÁSICAS --- */
@keyframes popIn { 0% { opacity: 0; transform: scale(0.5) translateY(20px); } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   DISEÑO RESPONSIVO (MÓVILES) - LÓGICA CORREGIDA
   ========================================================================= */
@media screen and (max-width: 900px) {
    /* Ajustes generales */
    .container { padding: 0 15px; }
    
    /* Mostrar botón menú */
    .menu-toggle { display: block; }

    /* Menú lateral deslizable */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0b1116;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1001;
        border-left: 2px solid var(--color-gold);
    }

    /* Clase activa para mostrar menú */
    .nav-links.active { right: 0; }

    .nav-links li { width: 100%; margin: 0; }
    .nav-links a { 
        display: block; 
        padding: 20px; 
        border-bottom: 1px solid #1c2a38; 
        font-size: 1.1rem; 
        text-align: center;
        width: 100%;
    }

    /* Botones dentro del menú móvil */
    .nav-links button { width: 90%; margin: 10px auto; display: block; }
    
    /* Perfil en móvil */
    .user-nav-profile { margin: 20px auto; justify-content: center; width: fit-content; }
    
    /* Dropdown en móvil */
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.active .dropdown-content { display: block; position: relative; width: 100%; box-shadow: none; border: none; top: 0; background: #111; }

    /* Grillas a 1 columna */
    div[style*="grid-template-columns"], 
    .servicios-grid,
    .container > div { 
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        display: grid !important;
        width: 100% !important;
    }

    /* Mapas */
    iframe { width: 100% !important; height: 300px !important; }

    /* Textos Hero */
    .hero h1 { font-size: 2.2rem; padding: 0 10px; }
    .hero-logo { width: 150px; }

    /* Panel Admin en móvil */
    .container > div[style*="display: flex"] { flex-direction: column; align-items: stretch; text-align: center; }
    .card { padding: 1rem; }
}