/* system design tokens & variables (LIGHT THEME) */
:root {
    --bg-deep: #FDFBF7; /* Crema de Maíz */
    --bg-main: #F7F2E8; /* Marfil / Trigo */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FDFBF8;
    --primary: #D6552B; /* Terracota de Barro */
    --primary-hover: #E3643B;
    --primary-rgb: 214, 85, 43;
    --secondary: #EFA834; /* Amarillo Maíz */
    --secondary-hover: #F0B554;
    --secondary-rgb: 239, 168, 52;
    --green-fresh: #437E56; /* Verde Cilantro */
    --text-light: #2D1E1B; /* Cacao Profundo (Texto Primario) */
    --text-muted: #786662; /* Arcilla Muted */
    --border-light: rgba(214, 85, 43, 0.12);
    --border-hover: rgba(214, 85, 43, 0.3);
    --glass-bg: rgba(253, 251, 247, 0.9);
    --glass-border: rgba(214, 85, 43, 0.08);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    --shadow-sm: 0 4px 15px rgba(45, 30, 27, 0.04);
    --shadow-md: 0 10px 30px rgba(45, 30, 27, 0.08);
    --shadow-lg: 0 20px 50px rgba(45, 30, 27, 0.12);
    --shadow-glow: 0 0 20px rgba(214, 85, 43, 0.15);
    --shadow-glow-strong: 0 0 30px rgba(214, 85, 43, 0.35);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas de Chispas Doradas Flotantes */
#embers-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Decoración y Wrappers */
section {
    position: relative;
    padding: 100px 20px;
    z-index: 2;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.align-center {
    text-align: center;
}

.section-header.align-left {
    text-align: left;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.section-header.align-center .section-subtitle::after {
    display: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 18px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
    color: #FFF;
}

.btn-secondary {
    background-color: rgba(45, 30, 27, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(214, 85, 43, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* Header & Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214, 85, 43, 0.06);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--bg-deep);
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

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

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

.logo-svg {
    filter: drop-shadow(0 4px 10px rgba(214, 85, 43, 0.25));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

/* Animaciones del Logo SVG */
.flame-1 { animation: flame-wobble 1.5s ease-in-out infinite alternate; transform-origin: 50% 75%; }
.flame-2 { animation: flame-wobble 2s ease-in-out infinite alternate; transform-origin: 50% 75%; }
.flame-3 { animation: flame-wobble 1.2s ease-in-out infinite alternate; transform-origin: 50% 75%; }

@keyframes flame-wobble {
    0% { transform: scale(0.9) rotate(-2deg); opacity: 0.8; }
    100% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

.steam-line {
    stroke-dasharray: 20;
    stroke-dashoffset: 40;
    animation: steam-rise 3s linear infinite;
    transform-origin: bottom;
}
.steam-2 { animation-delay: 1s; }
.steam-3 { animation-delay: 1.8s; }

@keyframes steam-rise {
    0% { stroke-dashoffset: 40; opacity: 0; transform: translateY(0) scaleX(0.8); }
    30% { opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-15px) scaleX(1.3); }
}

/* Estilos de la Barra de Navegación */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-trigger {
    background-color: rgba(214, 85, 43, 0.08);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.cart-trigger:hover {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #FFF;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
    animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
}

/* Hero Slideshow Ken Burns */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slideshow .slide.active {
    opacity: 1;
    animation: kenburns 9s linear infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1.01); }
    100% { transform: scale(1.08); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 5;
    padding: 20px;
}

.badge-premium {
    background-color: rgba(214, 85, 43, 0.08);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(214, 85, 43, 0.1);
}

.badge-premium .star-icon {
    animation: star-spin 3s linear infinite;
}

@keyframes star-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-light);
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--bg-deep);
}

/* Animaciones Entrada */
.animate-fade-in-down {
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-zoom-in {
    animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Nosotros Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-images-col {
    position: relative;
    height: 480px;
}

.image-wrapper {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-img-wrap {
    top: 0;
    left: 0;
    width: 75%;
    z-index: 5;
}

.sub-img-wrap {
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 6;
    border: 4px solid var(--bg-deep);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-caption-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.caption-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-light);
    font-size: 16px;
}

.caption-desc {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

.glow-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(214, 85, 43, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Features Grid */
.about-text-col .section-header {
    margin-bottom: 30px;
}

.about-p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-p.text-muted {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 28px;
    background-color: rgba(214, 85, 43, 0.06);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(214, 85, 43, 0.1);
}

.feature-info h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.feature-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Menú Section */
.menu-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

#menu-search {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 16px 20px 16px 54px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

#menu-search:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background-color: var(--bg-card-hover);
}

#menu-search:focus + .search-icon {
    color: var(--primary);
}

.menu-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Grid de Platillos (SIN IMÁGENES) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    background-color: var(--bg-card-hover);
}

/* Icono Decorativo en la tarjeta (Sustituye la imagen) */
.menu-card-icon-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(214, 85, 43, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition-smooth);
}

.menu-card:hover .menu-card-icon-circle {
    background-color: var(--primary);
    transform: scale(1.05);
}

.card-title-row {
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.2;
}

.card-price {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-top: 5px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(214, 85, 43, 0.08);
    padding-top: 18px;
    margin-top: auto;
}

.card-rating {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 700;
}

.btn-add-cart {
    background-color: rgba(214, 85, 43, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(214, 85, 43, 0.2);
    transform: scale(1.03);
}

/* Empty search state */
.menu-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.menu-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
}

.menu-empty-state p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Platillo Especial Banner */
.special-banner-section {
    padding: 60px 20px;
}

.special-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.special-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.special-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    padding: 50px;
}

.special-tag {
    background-color: var(--primary);
    color: #FFF;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.special-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-light);
}

.special-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    font-weight: 500;
}

.special-price-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.special-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-body);
}

.price-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- SECCIÓN SUCURSALES Y MAPA INTERACTIVO --- */
.sucursales-section {
    background-color: var(--bg-main);
}

.sucursales-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: stretch;
}

.sucursales-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilo Scrollbar rústico */
.sucursales-list::-webkit-scrollbar {
    width: 6px;
}
.sucursales-list::-webkit-scrollbar-track {
    background: transparent;
}
.sucursales-list::-webkit-scrollbar-thumb {
    background-color: rgba(214, 85, 43, 0.2);
    border-radius: 10px;
}

.branch-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.branch-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.branch-card.active {
    border-color: var(--primary);
    background-color: var(--bg-deep);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.branch-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
}

.branch-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(67, 126, 86, 0.1);
    color: var(--green-fresh);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Insignia de Sucursal más Cercana */
.closest-badge {
    position: absolute;
    top: 20px;
    right: 90px;
    background-color: var(--green-fresh) !important;
    color: #FFF !important;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.branch-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-light);
}

.branch-address, .branch-phone, .branch-hours {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Botón de buscar sucursal */
#find-closest-branch-btn {
    margin-top: 15px;
    background-color: rgba(214, 85, 43, 0.08);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

#find-closest-branch-btn:hover {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Mapa SVG */
.map-container {
    position: relative;
    height: 480px;
}

.map-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.interactive-map-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Estilos de los pines del mapa */
.map-pin-group {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-pin-group .pin-glow-ring {
    transform-origin: 0px 0px;
    transition: var(--transition-smooth);
}

.map-pin-group .pin-glow-pulse {
    transform-origin: 0px 0px;
    animation: pin-ripple 2s infinite ease-out;
}

.map-pin-group.active .pin-glow-ring {
    fill: var(--primary);
    opacity: 0.25;
    r: 30px;
}

.map-pin-group .pin-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    fill: var(--text-light);
    pointer-events: none;
    opacity: 0.8;
}

.map-pin-group.active .pin-label {
    fill: var(--primary);
    font-size: 12px;
    font-weight: 900;
    opacity: 1;
}

@keyframes pin-ripple {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Tooltip emergente en el mapa */
.map-info-popup {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.map-info-popup.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.map-info-popup h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text-light);
}

.map-info-popup p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.popup-phone {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

/* Testimonios */
.testimonials-section {
    background-color: var(--bg-deep);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background-color: rgba(214, 85, 43, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--bg-main);
    padding: 30px 20px;
    border-top: 1px solid rgba(214, 85, 43, 0.08);
    z-index: 5;
    position: relative;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary);
}

/* --- CARRITO DRAWER (SLIDE OUT) --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(45, 30, 27, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .cart-drawer-overlay {
        display: none !important;
    }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-deep);
    border-left: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid rgba(214, 85, 43, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-close-btn:hover {
    background-color: rgba(214, 85, 43, 0.05);
    color: var(--primary);
    transform: rotate(90deg);
}

/* Cuerpo del Cart Drawer */
.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Lista de Elementos en el Carro */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 16px;
    border-radius: 14px;
    position: relative;
    animation: item-slide-in 0.3s ease-out;
    box-shadow: var(--shadow-sm);
}

@keyframes item-slide-in {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.cart-item-emoji-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(214, 85, 43, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 800;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(214, 85, 43, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFF;
}

.item-quantity {
    font-size: 14px;
    font-weight: 800;
    min-width: 15px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 4px;
}

.cart-item-remove:hover {
    color: #D6552B;
    transform: scale(1.1);
}

/* Empty View */
.cart-empty-state {
    text-align: center;
    padding: 60px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: auto 0;
}

.cart-empty-icon {
    font-size: 50px;
    opacity: 0.6;
}

.cart-empty-state h4 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.cart-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
}

/* Formulario de Checkout */
.checkout-form {
    border-top: 1px solid rgba(214, 85, 43, 0.08);
    padding-top: 24px;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 950;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* Fila especial para label e icono GPS */
.address-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.address-label-row label {
    margin-bottom: 0;
}

.btn-detect-gps {
    background-color: rgba(214, 85, 43, 0.08);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-detect-gps:hover {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.btn-detect-gps.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    outline: none;
    transition: var(--transition-fast);
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(214, 85, 43, 0.1);
    background-color: var(--bg-card-hover);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.radio-label input[type="radio"]:checked + .custom-radio {
    border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer del Drawer */
.cart-drawer-footer {
    padding: 24px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.free-shipping {
    color: var(--green-fresh);
    font-weight: 700;
}

.total-row {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--text-light);
    border-top: 1px solid rgba(214, 85, 43, 0.08);
    padding-top: 12px;
    margin-top: 4px;
}

.total-row #cart-total {
    color: var(--primary);
}

.btn-whatsapp-checkout {
    width: 100%;
    background-color: #25D366;
    color: #FFF;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: var(--transition-smooth);
}

.btn-whatsapp-checkout:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    flex-shrink: 0;
}

/* Toast Notificaciones */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    color: var(--text-light);
    padding: 16px 24px;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    pointer-events: auto;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), toast-out 0.4s ease forwards 3.5s;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

@keyframes toast-in {
    0% { transform: translateY(40px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
    0% { transform: translateY(0) opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* Partícula voladora para efecto agregar al carrito */
.flying-particle {
    position: fixed;
    width: 25px;
    height: 25px;
    background-color: var(--secondary);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: var(--shadow-glow-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Responsividad */
@media (max-width: 1024px) {
    .section-title { font-size: 40px; }
    .about-grid { gap: 40px; }
    .about-images-col { height: 400px; }
    .sucursales-grid { gap: 30px; }
}

@media (max-width: 768px) {
    section { padding: 60px 20px; }
    
    .menu-toggle { display: flex; }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-deep);
        z-index: 99;
        transition: var(--transition-smooth);
        padding: 40px;
        border-top: 1px solid var(--border-light);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-link { font-size: 20px; }
    
    .hero-title { font-size: 42px; }
    .hero-desc { font-size: 16px; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group .btn { width: 100%; }
    
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-images-col { height: 350px; max-width: 500px; margin: 0 auto; width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    
    .sucursales-grid { grid-template-columns: 1fr; }
    .map-container { height: 320px; }
    
    .footer-flex { flex-direction: column; text-align: center; }
    
    .special-card { min-height: auto; }
    .special-content { padding: 30px; }
    .special-title { font-size: 28px; }
    .special-price-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .special-price-row .btn { width: 100%; }
    
    .cart-drawer { max-width: 100%; right: -100%; }
}
