/* Estilos Premium del Menú Digital "La Quebrada" */

/* Importación de Fuentes Oficiales */
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #181919;
    --primary-color: #F8D48D;   /* Dorado Arena Tribal */
    --accent-color: #F4C261;    /* Dorado Calidez Sol */
    --text-color: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --dark-card: #202121;
    --dark-card-hover: #262828;
    --border-color: rgba(248, 212, 141, 0.12);
    --gold-glow: 0 0 15px rgba(244, 194, 97, 0.4);
    --font-titles: 'Bad Script', cursive;
    --font-content: 'Roboto', sans-serif;
}

/* Reset de Estilos Básicos */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-content);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Efectos de Iluminación Marina en el Fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -10%, rgba(244, 194, 97, 0.04) 0%, rgba(24, 25, 25, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(248, 212, 141, 0.02) 0%, rgba(24, 25, 25, 0) 40%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


/* ==========================================
   PANTALLA DE BIENVENIDA (SPLASH SCREEN)
   ========================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.splash-content {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.splash-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 50%;
    border: 1px solid rgba(248, 212, 141, 0.3);
    padding: 5px;
    background: radial-gradient(circle, rgba(24, 25, 25, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    filter: drop-shadow(0 0 15px rgba(244, 194, 97, 0.2));
    animation: splashLogoAnim 4s ease-in-out forwards;
}

@keyframes splashLogoAnim {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
        filter: drop-shadow(0 0 5px rgba(244, 194, 97, 0));
    }
    30% {
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
        filter: drop-shadow(0 0 25px rgba(244, 194, 97, 0.4));
    }
    50% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(244, 194, 97, 0.25));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(244, 194, 97, 0.5));
    }
}

.splash-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(248, 212, 141, 0.2);
}

.splash-slogan {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-color);
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInGlow 1.5s ease 1.2s forwards;
    text-shadow: 0 0 10px rgba(244, 194, 97, 0.3);
}

.splash-ornament {
    width: 220px;
    height: auto;
    opacity: 0;
    margin-top: 10px;
    filter: drop-shadow(0 0 5px rgba(248, 212, 141, 0.1));
    animation: fadeInUp 1.2s ease 1.6s forwards;
}

.splash-skip-btn {
    position: absolute;
    bottom: 30px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-content);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    z-index: 10001;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.splash-skip-btn:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
    background-color: rgba(248, 212, 141, 0.05);
}

/* Clases JS para ocultación del splash */
.splash-hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}


/* ==========================================
   BARRA SUPERIOR PERMANENTE (HEADER)
   ========================================== */
header {
    background-color: rgba(24, 25, 25, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    height: 60px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 38px;
    width: 38px;
    object-fit: contain;
}

.header-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

/* Botón del menú hamburguesa */
.menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.menu-trigger:active {
    transform: scale(0.9);
}

.menu-trigger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ==========================================
   NAVEGACIÓN LATERAL (OFF-CANVAS MENU)
   ========================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100%;
    background-color: #1a1b1b;
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.sidebar-overlay.active .sidebar-menu {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.sidebar-header h2 {
    font-family: var(--font-titles);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: var(--text-color);
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 300;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link.active {
    background-color: rgba(248, 212, 141, 0.08);
    border-color: rgba(248, 212, 141, 0.25);
    color: var(--primary-color);
    font-weight: bold;
}

.sidebar-link i {
    width: 24px;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-right: 10px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    margin-top: 15px;
    text-align: center;
}


/* ==========================================
   CONTENEDOR DE LA APLICACIÓN
   ========================================== */
.app-container {
    flex: 1;
    max-width: 768px; /* Optimizado para móviles pero responsivo */
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 20px 15px 80px 15px;
    z-index: 10;
}

/* Encabezado de Sección */
.section-header-block {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(244, 194, 97, 0.15);
    margin-bottom: 8px;
    display: inline-block;
}

.tribal-separator {
    display: block;
    max-width: 240px;
    width: 80%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 3px rgba(248, 212, 141, 0.15));
}


/* ==========================================
   VISTA: CATEGORÍAS DEL MENÚ
   ========================================== */
.dishes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card del Platillo */
.dish-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.dish-card:hover {
    border-color: rgba(248, 212, 141, 0.25);
    background-color: var(--dark-card-hover);
    box-shadow: 0 4px 18px rgba(244, 194, 97, 0.06);
}

.dish-img-container {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0,0,0,0.2);
}

.dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dish-card:hover .dish-img {
    transform: scale(1.05);
}

.dish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dish-title-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.dish-name {
    font-size: 1.02rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.25;
}

.dish-price {
    font-size: 1.08rem;
    font-weight: bold;
    color: var(--accent-color);
}

.dish-desc {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.35;
}


/* ==========================================
   VISTA: NOSOTROS (INFORMACIÓN)
   ========================================== */
.nosotros-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nosotros-message {
    font-style: italic;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0 10px 15px 10px;
    border-bottom: 1px dashed rgba(248, 212, 141, 0.15);
}

.nosotros-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.nosotros-icon {
    font-size: 1.1rem;
    color: var(--accent-color);
    background-color: rgba(244, 194, 97, 0.08);
    border: 1px solid rgba(244, 194, 97, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nosotros-detail {
    flex: 1;
}

.nosotros-detail h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.nosotros-detail p {
    font-size: 0.92rem;
    color: #FFFFFF;
    font-weight: 300;
}

.nosotros-schedule-row {
    font-size: 0.88rem;
    color: #FFFFFF;
    font-weight: 300;
    margin-bottom: 4px;
}

.btn-web-link {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #F8D48D 0%, #F4C261 100%);
    color: #181919;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 15px;
    box-shadow: var(--gold-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-web-link:active {
    transform: scale(0.98);
}


/* ==========================================
   VISTA: RESEÑAS
   ========================================== */
/* Estadísticas de Calificación */
.rating-stats-block {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.average-number {
    font-size: 2.8rem;
    font-family: var(--font-titles);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.average-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

/* Card de Reseña de Cliente */
.review-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.review-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent-color);
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.review-comment {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

/* Formulario de Reseñas */
.review-form-block {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.review-form-title {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.review-form-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-control {
    background-color: #121313;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-color);
    font-family: var(--font-content);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: none;
    min-height: 90px;
}

/* Selector de Estrellas Interactivo */
.stars-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.15);
    margin: 5px 0 15px 0;
}

.stars-selector i {
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s;
}

.stars-selector i:active {
    transform: scale(0.8);
}

.stars-selector i.active,
.stars-selector i.hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(244, 194, 97, 0.4);
}

.btn-submit-review {
    width: 100%;
    background: linear-gradient(135deg, #F8D48D 0%, #F4C261 100%);
    color: #181919;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--gold-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-review:active {
    transform: scale(0.98);
}


/* ==========================================
   MODAL DE CONFIRMACIÓN DE RESEÑA
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: scalePulse 2s infinite ease-in-out;
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.modal-msg-title {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.modal-msg-text {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 25px;
}


/* ==========================================
   BOTÓN FLOTANTE DEL MENÚ (FAB)
   ========================================== */
.fab-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #F8D48D 0%, #F4C261 100%);
    color: #181919;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 194, 97, 0.3);
    z-index: 800;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-menu:active {
    transform: scale(0.9);
}


/* ==========================================
   MINI FOOTER
   ========================================== */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background-color: #121313;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    z-index: 10;
}


/* ==========================================
   ANIMACIONES DE TRANSICIÓN Y GLOW
   ========================================== */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: switchSectionAnim 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes switchSectionAnim {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto glow sutil para los títulos al aparecer */
.glow-title {
    animation: textGlow 2s ease-in-out forwards;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 0 rgba(248, 212, 141, 0);
    }
    50% {
        text-shadow: 0 0 15px rgba(248, 212, 141, 0.4);
    }
    100% {
        text-shadow: 0 0 5px rgba(248, 212, 141, 0.15);
    }
}

/* Animaciones generales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInGlow {
    from {
        opacity: 0;
        text-shadow: 0 0 0 rgba(244, 194, 97, 0);
    }
    to {
        opacity: 1;
        text-shadow: 0 0 12px rgba(244, 194, 97, 0.35);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ==========================================
   ADAPTACIÓN RESPONSIVA (TABLETAS / DESKTOP)
   ========================================== */
@media (min-width: 600px) {
    .splash-logo {
        width: 190px;
        height: 190px;
    }
    .splash-title {
        font-size: 3.2rem;
    }
    .splash-slogan {
        font-size: 1rem;
        letter-spacing: 6px;
    }
    .dish-card {
        padding: 16px;
    }
    .dish-img-container {
        width: 100px;
        height: 100px;
    }
    .dish-name {
        font-size: 1.15rem;
    }
    .dish-price {
        font-size: 1.2rem;
    }
    .dish-desc {
        font-size: 0.88rem;
    }
}

@media (min-width: 768px) {
    .app-container {
        padding-top: 40px;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .tribal-separator {
        max-width: 320px;
    }
    .dishes-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .dish-card {
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        padding: 20px;
        justify-content: space-between;
    }
    .dish-img-container {
        width: 100%;
        height: 160px;
    }
    .dish-info {
        width: 100%;
        margin-top: 10px;
    }
    .rating-stats-block {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        text-align: left;
    }
    .average-number {
        margin-bottom: 0;
    }
    .reviews-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}
