/* ============================================
   LOS CHANCHOS Y EL BORREGO — Design System
   Premium, mobile-first, animated
   ============================================ */

/* ---------- Local Fonts ----------- */
@font-face {
  font-family: "Orange Juice";
  src: url('fonts/orange-juice.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KG Second Chances";
  src: url('fonts/KGSecondChancesSolid.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors - Elegant and less fluorescent tones */
  --color-yellow:    #f4b942; /* Golden yellow */
  --color-bg-soft:   #fff6cf; /* Very soft and bright cream */
  --color-bg-warm:   #f6d58e; /* Warm tone */
  --color-text:      #46250c;
  --color-text-light:#6b3f1a;
  --color-bg:        #f29a44; /* Characteristic orange */
  --color-accent:    #e57a26; 
  --color-accent-2:  #d46e10;
  --color-white:     #fffcf7; /* Almost pure warm white */
  --color-cream:     #f8f1e5; /* Rustic cream, NOT yellow */
  --color-overlay:   rgba(70, 37, 12, 0.08);
  --color-shadow:    rgba(70, 37, 12, 0.15);

  /* WhatsApp */
  --color-wa:        #25d366;
  --color-wa-hover:  #1ebe5d;

  /* Typography */
  --font-display-2: 'KG Second Chances', 'Cabin Sketch', cursive;
  --font-display: 'Orange Juice', sans-serif;
  --font-title:   'Cabin Sketch', cursive; /* Matches Sketch Block */
  --font-body:    'Baloo 2', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   1.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s var(--ease-smooth);
  --transition-med:  0.5s var(--ease-smooth);
  --transition-slow: 0.8s var(--ease-smooth);

  /* Shadows */
  --shadow-sm:   0 2px 8px var(--color-shadow);
  --shadow-md:   0 4px 20px var(--color-shadow);
  --shadow-lg:   0 8px 40px var(--color-shadow);
  --shadow-glow: 0 0 30px rgba(212, 137, 10, 0.3);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ---------- Typography ---------- */
h2, h3, h4, h5 {
  font-family: var(--font-display-2);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
    letter-spacing: 0.12rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text)
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-cream);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  border-radius: var(--radius-full);
  margin-top: var(--space-xs);
}

.text-center { text-align: center; }
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

/* ============================================
   SCROLL ANIMATION SYSTEM
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   TOP BAR (not navbar, just branding strip)
   ============================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-xs) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70, 37, 12, 0.08);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.top-bar.scrolled {
  background: rgba(255, 249, 77, 0.95);
  box-shadow: var(--shadow-sm);
}

.top-bar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.top-bar__logo img {
  width: 40px;
  height: 40px;
}

.top-bar__logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-bar__links a {
  font-family: var(--font-display-2);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.top-bar__links a:hover {
  color: var(--color-text);
  background: rgba(70, 37, 12, 0.06);
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-bar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(70, 37, 12, 0.06);
  color: var(--color-text-light);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.top-bar__social a:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(120px + var(--space-lg)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 137, 10, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196, 94, 32, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Custom Logo Assembly Block */
.hero-logo {
  background: var(--color-bg);
  padding: 0rem 0rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: flex;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  max-width: 550px;
  border: 1px solid var(--color-text); /* Gives it that sketched border feel */
  transition: transform var(--transition-fast);
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero__brand-name {
  display: none; /* Hidden, using the hero-logo instead */
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-text);
  width: 100%;
  max-width: 550px;
  margin: 2rem 0 2.5rem 0;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  padding: 0 1rem;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  letter-spacing: 0.12rem;
}

/* Info Block (Nosotros in Hero) */
.hero__info {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(70, 37, 12, 0.06);
  position: relative;
  overflow: hidden;
}

.hero__info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--color-green));
}

.hero__info-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1rem;
}

.hero__info-text {
  margin-bottom: var(--space-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display-2);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
  letter-spacing: 0.1rem;
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--color-wa);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  letter-spacing: 0.12rem;
}

.btn--whatsapp:hover {
  background: var(--color-wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   GALERIA SECTION
   ============================================ */
.galeria {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* --- Animated Marquee Gallery --- */
.galeria__marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: var(--space-md) 0;
  margin-top: var(--space-md);
  z-index: 12;
}

/* Faded edges to blend smoothly into the orange background */
.galeria__marquee::before,
.galeria__marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.galeria__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.galeria__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.galeria__marquee-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  /* 35s controls the speed. Lower = faster */
  animation: scrollMarquee 35s linear infinite;
}

/* Optional: Pause the scrolling when a user hovers over an image */
.galeria__marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Shifts exactly one set of images to loop seamlessly */
    transform: translateX(calc(-50% - (var(--space-md) / 2)));
  }
}

/* Update item size for the scrolling track */
.galeria__item {
  width: 280px; /* Fixed width for sliding items */
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream);
  border: 4px solid var(--color-yellow);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

/* Make them a bit larger on tablets/desktops */
@media (min-width: 768px) {
  .galeria__item {
    width: 440px; 
  }
}

.galeria__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.galeria__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
  display: block; 
}

.galeria__item:hover .galeria__image {
  transform: scale(1.08); /* Premium zoom effect on hover */
}

.galeria__overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient at the bottom so the text pops */
  background: linear-gradient(to top, rgba(70, 37, 12, 0.85) 0%, rgba(70, 37, 12, 0) 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.galeria__item:hover .galeria__overlay {
  opacity: 1;
}

.galeria__text {
  font-family: var(--font-display-2);
  font-size: 1.2rem;
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.05rem;
  transform: translateY(0);
  transition: transform var(--transition-fast);
}

.galeria__item:hover .galeria__text {
  transform: translateY(-4px); /* Text floats up slightly */
}

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
  position: relative;
}

.menu-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-cream));
}

.menu__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}


/* ---------- Branch Menu Cards ---------- */
.branch-menu-card {
  background: var(--color-white); /* Color crema de fondo */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--color-yellow); /* Thick yellow border */
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.branch-menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.branch-menu-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Tall image */
  background: var(--color-cream);
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-menu-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.branch-menu-card:hover .branch-menu-card__image img {
  transform: scale(1.06);
}

/* Floating button over image */
.branch-menu-card__btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 10;
  box-shadow: var(--shadow-md);
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  white-space: nowrap;
}

.branch-menu-card__btn:hover {
  transform: translate(-50%, 45%);
}

/* Bottom text area (cream) */
.branch-menu-card__content {
  padding: 40px var(--space-sm) var(--space-md);
  text-align: center;
  background: var(--color-white); /* matching cream */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 2px solid var(--color-yellow); /* Small separation */
  position: relative;
  z-index: 2;
}

.branch-menu-card__title {
  font-family: var(--font-display); /* Orange Juice font */
  font-size: 2.4rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.branch-menu-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   REVIEWS / EXPERIENCE
   ============================================ */
.reviews {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-cream);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.review__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(70, 37, 12, 0.04);
  transition: all var(--transition-fast);
}

.review__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review__stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  letter-spacing: 2px;
}

.review__text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.review__author {
  font-family: var(--font-display-2);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  color: var(--color-text);
}

/* ============================================
   PEDIDOS Y EVENTOS
   ============================================ */
.pedidos {
  padding: var(--space-2xl) 0;
  position: relative;
}

.pedidos::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-cream), var(--color-bg));
}

.pedidos__wa-cta {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pedidos__wa-cta p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.pedidos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.pedidos__card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(70, 37, 12, 0.05);
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.pedidos__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pedidos__card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.pedidos__card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.pedidos__card-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Image container for Pedidos cards */
.pedidos__card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Make the image fill the box perfectly */
.pedidos__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-med);
}

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

/* ============================================
   BACKGROUND LOGO (Galería y Pedidos)
   ============================================ */

/* Ensure both sections can contain the background image */
.galeria,
.pedidos {
  position: relative; 
}

/* Insert image using ::after pseudo-element */
.galeria::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-image: url('images/LogoWall.svg?v=1.2');
  
  background-size: 700px;
  background-position: center;
  background-repeat: no-repeat;
  
  opacity: 0.08;
  
  /* Prevent image from blocking clicks */
  pointer-events: none;

  z-index: 0;
}

.pedidos::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-image: url('images/LogoWall.svg?v=1.2');

  background-size: 1000px;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.08;
  
  /* Prevent image from blocking clicks */
  pointer-events: none;

  z-index: 0;
}

/* Ensure section content stays above logo */
.galeria > .container,
.pedidos > .container {
  position: relative;
  z-index: 2;
}

/* ============================================
   SUCURSALES SECTION
   ============================================ */
.sucursales {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
  position: relative;
}

.sucursales::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-cream));
}

.sucursales__branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.branch__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(70, 37, 12, 0.05);
  transition: all var(--transition-fast);
}

.branch__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.branch__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.branch__info h4 {
  margin-bottom: 0.3rem;
}

.branch__info p {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.branch__info a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.branch__info a:hover {
  color: var(--color-accent-2);
}

.sucursales__map {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(70, 37, 12, 0.06);
}

.sucursales__map::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 59px;
  background: var(--color-bg);
  z-index: 2;
  border-radius: 0 0 0 0;
  pointer-events: none;
}

.sucursales__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: wa-pulse 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.65); }
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  border-top: 1px solid rgba(70, 37, 12, 0.1);
}

.main-footer p {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.developer-credit {
  font-size: 0.8rem;
  opacity: 0.8;
}

.developer-credit strong {
  font-weight: 700;
  letter-spacing: 0.05rem;
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero__content {
    text-align: left;
  }

  .hero__mascots {
    justify-content: flex-start;
  }

  .hero__tagline {
    margin-left: 0;
  }

  .hero__cta-group {
    justify-content: flex-start;
  }

  .menu__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pedidos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sucursales__branches {
    grid-template-columns: repeat(3, 1fr);
  }

  .sucursales__map {
    height: 450px;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero-logo__chancho1 { width: 150px; }
  .hero-logo__chancho2 { width: 120px; }
  .hero-logo__chancho3 { width: 150px; }
  .hero-logo__borrego-wrap  { width: 110px; height: 110px; bottom: -30px; right: -30px; }
  .hero-logo__borrego { width: 85px; }

  .sucursales__map {
    height: 500px;
  }
}

/* ============================================
   MOBILE ONLY ADJUSTMENTS (max 767px)
   ============================================ */
@media (max-width: 767px) {
  .top-bar__links {
    display: none;
  }

  .hero {
    padding-top: calc(56px + var(--space-lg));
  }

  .hero__info {
    padding: var(--space-md);
  }

  .menu__card {
    padding: var(--space-md);
  }

  .pedidos__card {
    padding: var(--space-md);
  }
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 0.3rem;
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-cream);
  z-index: 1001;
  padding: var(--space-xl) var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.mobile-drawer__overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  font-size: 1.5rem;
  color: var(--color-text);
}

.mobile-drawer a {
  display: block;
  font-family: var(--font-display-2);
  font-weight: 600;
  font-size: 1.2rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(70, 37, 12, 0.08);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.mobile-drawer a:hover {
  color: var(--color-accent);
}

.mobile-drawer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.mobile-drawer__social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(70, 37, 12, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  padding: 0;
}

/* ============================================
   MASCOT FLOAT ANIMATION (Subtle)
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

.mascot-float {
  animation: float 4s ease-in-out infinite;
}

.mascot-float-delay {
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.mascot-float-delay-2 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

.mascot-float-delay-3 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ============================================
    FLOATING CHARACTERS ANIMATION 2
   ============================================ */
#floating-mascots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.floating-mascot {
  position: fixed;
  width:  clamp(90px, 10vw, 160px);
  pointer-events: none;
  opacity: 0.85;
  will-change: transform, top;
  animation:
    mascotDrift linear forwards,
    mascotBob 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

@keyframes mascotDrift {
  from {
    top: -220px;
  }

  to {
    top: calc(100vh + 220px);
  }
}

@keyframes mascotBob {
  0%, 100% {
    margin-left: 0px;
  }

  50% {
    margin-left: 12px;
  }
}

/* For fewer distractions on mobile */
@media (max-width: 767px) {
  .floating-mascot {
    width: 80px;
    opacity: 0.7;
  }
}

/* ---------- Menu Card Link ---------- */
.menu_card-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.menu_card-link {
  display: block;
  margin-top: var(--space-sm);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: var(--color-yellow);
  font-family: var(--font-display-2);
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.menu_card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-brown-dark);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-2);
}

@media (max-width: 767px) {
  ::-webkit-scrollbar {
    display: none;
    width: 0;
}
}

@media (min-width: 760px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--color-bg);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-full);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-2);
  }
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---------- Textura global para quitar lo plano ---------- */
body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/Chancho1.svg?v=1.2');
  background-size: 120px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1; /* Detrás de todo */
}

/* Elevamos solo el contenido para que los cerditos pasen por debajo del texto/tarjetas */
.container {
  position: relative;
  z-index: 2;
}

/* Los cerditos van en la capa de en medio */
#floating-mascots {
  z-index: 1 !important; 
}

/* ---------- Barra Superior del Mapa ---------- */
.map-cover-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 59px;
  padding: 0.5rem 1rem;
  text-align: center;
  background: var(--color-text); /* Café oscuro premium */
  color: var(--color-yellow);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-2);
  font-size: 1rem;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sucursales__map:hover .map-cover-bar {
  opacity: 0;
}

/* Quita el ::after viejo que tapaba el mapa */
.sucursales__map::after {
  display: none;
}

/* ---------- Hero Video Box ---------- */

.hero__video {
  width: 100%;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-text));
  border: 4px solid var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(0.5deg);
  transition: transform var(--transition-med);
  color: var(--color-yellow);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-med);
}

.video-frame:hover .video-thumbnail-img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background var(--transition-fast);
}

.video-frame:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.video-play-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: transform var(--transition-fast);
}

.video-frame p {
  font-family: var(--font-display-2);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ============================================
   VIDEO MODAL (POPUP PLAYER)
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-med);
}
.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.video-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform var(--transition-med);
}
.video-modal.active .video-modal__content {
  transform: scale(1);
}
.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-modal__close:hover {
  background: var(--color-accent);
}
.video-modal__player {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
}

/* ---------- Video de Fondo en Hero ---------- */
.hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace que el video llene todo el espacio sin deformarse */
  z-index: 0;
  opacity: 0.3; /* Ajusta esto (0.1 a 1.0) para que el texto siga siendo muy legible */
}

/* Asegurar que el contenido del hero flote sobre el video */
.hero__bg-pattern {
  z-index: 1; 
}

/* ============================================
   AJUSTES FINALES PARA CELULAR
   ============================================ */
@media (max-width: 767px) {
  /* Hacer que los botones de WhatsApp (y otros) no sean gigantes */
  .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Hacer las tarjetas más chicas sin deformarlas */
  .branch-menu-card {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================
   BOTÓN DE AUDIO DEL VIDEO
   ============================================ */
.btn-mute {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  background: rgba(255, 252, 247, 0.85); /* Frosty cream background */
  backdrop-filter: blur(5px);
  border: 2px solid var(--color-yellow);
  color: var(--color-text);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-mute:hover {
  transform: scale(1.1);
  background: var(--color-white);
}

@media (min-width: 768px) {
  .btn-mute {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
}

/* =========================================
   BOTÓN DE WHATSAPP EN EL MENÚ SUPERIOR
   ========================================= */
.top-bar__social a[aria-label="WhatsApp"] {
  background-color: var(--color-wa); /* Verde oficial #25d366 */
  color: #ffffff; /* Ícono color blanco */
}

.top-bar__social a[aria-label="WhatsApp"]:hover {
  background-color: var(--color-wa-hover); /* Verde más oscuro al pasar el mouse */
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================
   AJUSTES DEL TÍTULO EN LA BARRA SUPERIOR (Solo Escritorio)
   ========================================= */
@media (min-width: 1024px) {
  .top-bar__logo {
    /* Empuja el logo/título hacia la derecha para acercarlo al menú. 
       Puedes aumentar este valor (ej. 6rem, 8rem) si lo quieres aún más cerca */
    margin-left: 4rem; 
  }

  .top-bar__logo span {
    /* Lo hace ligeramente más grande (el tamaño original era 1.1rem) */
    font-size: 1.8rem;
  }
}

/* =========================================
   OCULTAR WHATSAPP DEL MENÚ EN INICIO
   ========================================= */
/* Oculta el botón en la barra de escritorio y en el menú de celular, 
   solo en la página principal (index.html) */
body:not(.menu-page) .top-bar__social a[aria-label="WhatsApp"],
body:not(.menu-page) .mobile-drawer__social a[aria-label="WhatsApp"] {
  display: none;
}

/* =========================================
   MENÚ DESPLEGABLE WHATSAPP
   ========================================= */
.pedidos-dropdown {
  width: 100%;
}

/* Quita la flechita nativa del navegador para que parezca un botón normal */
.pedidos-dropdown summary {
  list-style: none; 
  cursor: pointer;
}
.pedidos-dropdown summary::-webkit-details-marker {
  display: none; 
}

/* El recuadro blanco que aparece debajo con las opciones */
.pedidos-dropdown__content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  background: var(--color-cream);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(70,37,12, 0.1);
}

/* Variación de botón más pequeño para las opciones interiores */
.btn--small {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  justify-content: center;
}

/* =========================================
   MENÚ FLOTANTE WHATSAPP (BOTÓN REDONDO)
   ========================================= */
.wa-menu-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
}

/* Ajuste para celulares */
@media (max-width: 767px) {
  .wa-menu-container {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* El botón redondo verde */
.wa-menu-container summary {
  width: 60px;
  height: 60px;
  background-color: var(--color-wa);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  cursor: pointer;
  animation: float 4s ease-in-out infinite;
  transition: transform var(--transition-fast);
}

.wa-menu-container summary:hover {
  transform: scale(1.1);
}

.wa-menu-container summary::-webkit-details-marker {
  display: none;
}

.wa-menu-container svg {
  width: 32px;
  height: 32px;
}

/* La lista que emerge hacia ARRIBA */
.wa-float-content {
  position: absolute;
  bottom: calc(100% + 15px); /* Aparece 15px por encima del botón redondo */
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--color-cream);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(70,37,12, 0.1);
  min-width: 220px;
}