/* -------------------------------------------------------------
   STAZIONE PIZZA - CONFIGURACIÓN DEL SISTEMA DE DISEÑO (CSS)
   ------------------------------------------------------------- */

:root {
    /* Paleta de Colores */
    --color-bg-dark: #121212;
    --color-bg-card: #1e1e1e;
    --color-bg-card-hover: #262626;
    
    --color-red: #D62828;
    --color-red-hover: #b11f1f;
    --color-red-glow: rgba(214, 40, 40, 0.4);
    
    --color-olive: #4F772D;
    --color-olive-hover: #3E5C22;
    --color-olive-glow: rgba(79, 119, 45, 0.4);
    
    --color-gold: #D4AF37;
    --color-text-white: #F8F9FA;
    --color-text-gray: #B0B0B0;
    --color-text-muted: #6C757D;
    
    --glass-bg: rgba(30, 30, 30, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);

    /* Fuentes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    
    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-round: 50%;
}

/* -------------------------------------------------------------
   RESETS Y ESTILOS GLOBALES
   ------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-red);
}

/* Utilidades Comunes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-red { color: var(--color-red) !important; }
.text-olive { color: var(--color-olive) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--color-text-gray);
    font-size: 1.05rem;
}

/* -------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-text-white);
}
.btn-primary:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-glow {
    box-shadow: 0 4px 15px var(--color-red-glow);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px var(--color-red-glow);
}

.btn-secondary {
    background-color: var(--color-olive);
    color: var(--color-text-white);
}
.btn-secondary:hover {
    background-color: var(--color-olive-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
}
.btn-outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-bg-dark);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-whatsapp-card {
    border-color: #25D366;
    color: #25D366;
}
.btn-whatsapp-card:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

/* -------------------------------------------------------------
   STICKY HEADER & NAV MENU
   ------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-medium);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 2px solid var(--color-red);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium);
}
.logo-area:hover .logo-img {
    transform: rotate(360deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-text .accent-text {
    color: var(--color-red);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    color: var(--color-text-gray);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width var(--transition-fast);
}
.nav-link:hover {
    color: var(--color-text-white);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--color-text-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-toggle-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-round);
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.cart-toggle-btn:hover {
    background-color: var(--color-red);
    color: white;
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-dark);
}
.cart-toggle-btn:hover .cart-badge {
    background-color: var(--color-olive);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-round);
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition-slow) ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(18,18,18,0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    text-align: center;
    padding: 0 24px;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text-white);
    margin-bottom: 40px;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* -------------------------------------------------------------
   ITALIAN BAR
   ------------------------------------------------------------- */
.italian-bar {
    display: flex;
    height: 8px;
    width: 100%;
}
.bar-green { flex: 1; background-color: var(--color-olive); }
.bar-white { flex: 1; background-color: var(--color-text-white); }
.bar-red { flex: 1; background-color: var(--color-red); }

/* -------------------------------------------------------------
   SOBRE NOSOTROS (ABOUT SECTION)
   ------------------------------------------------------------- */
.grid-about {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text-content h2 {
    margin-top: 8px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.about-vision-box {
    background-color: var(--color-bg-card);
    border-left: 4px solid var(--color-red);
    padding: 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.vision-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vision-text {
    color: var(--color-text-gray);
    font-size: 0.98rem;
}

.about-logo-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-wrapper {
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    width: 100%;
}

.about-logo-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.since-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background-color: var(--color-olive);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

/* Valores Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--color-bg-card);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.2rem;
    color: var(--color-red);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
   SERVICIOS
   ------------------------------------------------------------- */
.services-section {
    background-color: #161616;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-bg-dark);
    padding: 35px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: scale(1.03);
    border-color: var(--color-olive);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-olive);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.check-mark {
    font-size: 1rem;
}

.service-card p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
   MENÚ SECCIÓN & TABS
   ------------------------------------------------------------- */
.menu-note {
    background: rgba(79, 119, 45, 0.15);
    border: 1px solid var(--color-olive);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}
.menu-note p {
    font-size: 0.9rem;
    margin: 0;
}

.menu-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 40px;
    /* Custom scrollbar for cross-browser support */
    scrollbar-width: thin;
    scrollbar-color: var(--color-red) rgba(255, 255, 255, 0.05);
}
.menu-tabs-wrapper::-webkit-scrollbar {
    display: block;
    height: 5px;
}
.menu-tabs-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.menu-tabs-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 10px;
}
.menu-tabs-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-red-hover);
}

.menu-tabs {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    min-width: max-content;
    padding: 0 4px;
}

.menu-tab-btn {
    padding: 12px 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    color: var(--color-text-gray);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.menu-tab-btn:hover {
    color: var(--color-text-white);
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-red);
}
.menu-tab-btn.active {
    background-color: var(--color-red);
    color: white;
    border-color: var(--color-red);
    box-shadow: 0 4px 12px var(--color-red-glow);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

/* Item de menú */
.menu-item-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.menu-item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-md);
}

/* Decoración italiana de borde izquierdo */
.menu-item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-red);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.menu-item-card:hover::after {
    opacity: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.menu-item-title-desc h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.menu-item-title-desc p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.menu-item-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-red);
    white-space: nowrap;
}

/* Controles de Configuración de Pizza */
.pizza-config {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.size-pill {
    padding: 6px 12px;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-gray);
}
.size-pill:hover {
    border-color: var(--color-text-gray);
}
.size-pill.active {
    background-color: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
}

.extra-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.extra-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-gray);
    cursor: pointer;
    user-select: none;
}

.extra-checkbox-label input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color-red);
}

/* Botón Añadir en Card */
.menu-item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
}

/* -------------------------------------------------------------
   GALERÍA SECCIÓN
   ------------------------------------------------------------- */
.gallery-section {
    background-color: #161616;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: none; /* Controlled by JS load more */
}
.gallery-item.visible {
    display: block;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(214, 40, 40, 0.85); /* Red overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    color: white;
    padding: 16px;
    text-align: center;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-hover-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(10px);
    transition: transform var(--transition-medium);
}
.gallery-item:hover .gallery-hover-overlay i {
    transform: translateY(0);
}

.gallery-hover-overlay span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-area {
    margin-top: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------
   OPINIONES Y FORMULARIO (REVIEWS)
   ------------------------------------------------------------- */
.grid-reviews {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.review-form-card {
    background-color: var(--color-bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.review-form-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 10px;
}

.form-instructions {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-gray);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--color-red);
}

/* Selector de Estrellas */
.star-rating-selector {
    display: flex;
    gap: 8px;
}

.star-btn {
    font-size: 1.6rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.star-btn:hover {
    transform: scale(1.15);
}
.star-btn.active, 
.star-btn.hover {
    color: var(--color-gold);
}

/* Feed Header & List */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.feed-header h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 4px;
}

.rating-summary-box {
    text-align: right;
}

.average-rating {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-text-white);
}

.average-stars {
    color: var(--color-gold);
    font-size: 1rem;
    margin: 6px 0;
}

.total-reviews-count {
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.reviews-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    animation: fadeIn var(--transition-medium) ease-in-out;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
}

.review-stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.review-comment {
    color: var(--color-text-gray);
    font-size: 0.92rem;
    line-height: 1.5;
}

.review-date {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
   CONTACTO Y UBICACIÓN
   ------------------------------------------------------------- */
.contact-section {
    background-color: #161616;
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.branch-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.branch-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-active {
    background-color: rgba(79, 119, 45, 0.2);
    color: #8ce149;
    border: 1px solid rgba(79, 119, 45, 0.4);
}

.branch-address,
.branch-phone,
.branch-hours {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.branch-address i,
.branch-phone i,
.branch-hours i {
    color: var(--color-red);
    margin-top: 4px;
    font-size: 1.05rem;
}

.branch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.map-container-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    height: 100%;
}
.map-container-card iframe {
    display: block;
    height: 100%;
    min-height: 400px;
    filter: grayscale(0.2) invert(0.9) contrast(1.2); /* Stylized dark map */
}

/* -------------------------------------------------------------
   FOOTER (PIE DE PÁGINA)
   ------------------------------------------------------------- */
.footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: 70px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-round);
}

.footer-tagline {
    font-style: italic;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.footer-seo-text {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer-grid h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}
.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-red);
}

.footer-links-col ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.footer-links-col ul li a {
    color: var(--color-text-gray);
}
.footer-links-col ul li a:hover {
    color: var(--color-red);
    padding-left: 4px;
}

.footer-contact-col p {
    font-size: 0.92rem;
    color: var(--color-text-gray);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-col p {
    font-size: 0.92rem;
    color: var(--color-text-gray);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}
.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}
.social-icon.fb:hover { background-color: #3b5998; border-color: #3b5998; }
.social-icon.ig:hover { background-color: #e1306c; border-color: #e1306c; }
.social-icon.tk:hover { background-color: #000000; border-color: #444; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
   SHOPPING CART SIDEBAR
   ------------------------------------------------------------- */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(4px);
}
.cart-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--color-bg-card);
    border-left: 1px solid var(--glass-border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}
.cart-close-btn:hover {
    background-color: var(--color-red);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-text-gray);
    gap: 16px;
}
.cart-empty i {
    font-size: 3rem;
    color: var(--color-text-muted);
}
.animate-spin-slow {
    animation: spin 8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Renglon del Item de Carrito */
.cart-item-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-adjuster {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color var(--transition-fast);
}
.qty-btn:hover {
    background-color: var(--color-bg-card-hover);
}

.qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-subtotal {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-red);
}

.cart-item-remove-btn {
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    padding: 4px;
}
.cart-item-remove-btn:hover {
    color: var(--color-red);
}

/* Footer de Carrito */
.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: var(--color-bg-dark);
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cart-total-price {
    font-size: 1.5rem;
    color: var(--color-red);
    font-weight: 800;
}

.cart-delivery-note {
    font-size: 0.78rem;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    text-align: center;
}
.cart-delivery-note i {
    color: var(--color-olive);
}

/* -------------------------------------------------------------
   CHECKOUT MODAL
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(8px);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}
.modal-close-btn:hover {
    background-color: var(--color-red);
}

.modal-body {
    padding: 30px;
}

/* Toggles de Recoger / A Domicilio */
.delivery-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.delivery-radio-label {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.delivery-radio-label input {
    display: none; /* Hide radio */
}
.delivery-radio-label span {
    font-size: 0.88rem;
    font-weight: 700;
}
.delivery-radio-label span i {
    margin-right: 6px;
}
.delivery-radio-label.active {
    border-color: var(--color-red);
    background-color: rgba(214, 40, 40, 0.05);
    color: var(--color-red);
    box-shadow: 0 4px 12px var(--color-red-glow);
}

/* Grupo de Direccion y Advertencias */
.delivery-address-group {
    margin-top: 24px;
    animation: fadeIn var(--transition-medium) ease-in-out;
}

.alert-info-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
}

.alert-line {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-line:last-child {
    margin-bottom: 0;
}
.alert-line i {
    font-size: 0.95rem;
    margin-top: 2px;
}

.order-summary-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 1.1rem;
}
.order-summary-mini strong {
    font-size: 1.4rem;
}

/* -------------------------------------------------------------
   LIGHTBOX GALERÍA DE PANTALLA COMPLETA
   ------------------------------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    z-index: 410;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    opacity: 0.7;
    cursor: pointer;
    background: none;
    padding: 20px;
    transition: opacity var(--transition-fast);
    z-index: 410;
}
.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-content-wrapper {
    max-width: 85%;
    max-height: 75vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--color-text-gray);
    font-weight: 500;
    max-width: 80%;
    text-align: center;
}

/* -------------------------------------------------------------
   BOTÓN FLOTANTE DE WHATSAPP
   ------------------------------------------------------------- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 100;
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Tooltip */
.whatsapp-floating-btn .tooltip-text {
    position: absolute;
    right: 75px;
    bottom: 12px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    transform: translateX(10px);
    transition: all var(--transition-medium);
}
.whatsapp-floating-btn:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Efecto de pulso concéntrico */
.whatsapp-floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    border: 2px solid #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* -------------------------------------------------------------
   RESPONSIVIDAD Y ESTILOS MÓVILES
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .values-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }
    
    /* Toggle Mobile Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-bg-card);
        border-right: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        z-index: 180;
        transition: left var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
        padding: 50px 30px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active {
        left: 0;
    }
    
    .grid-about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-logo-card {
        order: -1;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-reviews {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .map-container-card iframe {
        min-height: 300px;
    }
    
    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .whatsapp-floating-btn .tooltip-text {
        display: none; /* Hide tooltips on mobile */
    }
}

@media (max-width: 576px) {
    .values-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    .branch-actions {
        flex-direction: column;
    }
    .branch-actions .btn {
        width: 100%;
    }
    
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .rating-summary-box {
        text-align: left;
    }
    
    .delivery-toggle-container {
        grid-template-columns: 1fr;
    }
}
