/* ================================================
   La Nonna Pizza (demo de portafolio) — style.css
   Autor: Frank Curiel · frankcuriel.com
   Última actualización: 2026-10
================================================ */

/* ── Design Tokens ── */
:root {
  --red:         #C8102E;
  --red-dark:    #9B0C22;
  --red-light:   #E8314A;
  --gold:        #C8920A;
  --gold-light:  #E8B020;
  --brown-dark:  #1C0A00;
  --brown:       #3D1A00;
  --brown-mid:   #6B3510;
  --cream:       #FDF6EE;
  --cream-dark:  #F0E6D8;
  --white:       #FFFFFF;
  --gray-light:  #F5F0E8;
  --text-dark:   #1C0A00;
  --text-med:    #4A3728;
  --text-light:  #8B7355;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-script:  'Dancing Script', cursive;
  --ff-body:    'Lato', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.18);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.26);

  --r:    10px;
  --r-lg: 20px;
  --t:    0.3s;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Animación de entrada ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── Tipografía ── */
.tag {
  font-family: var(--ff-script);
  color: var(--gold);
  font-size: 1.25rem;
  display: block;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.tag.on-dark { color: rgba(255,255,255,.5); }

h2.title {
  font-family: var(--ff-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
}
h2.title.light { color: var(--white); }

.divider {
  width: 52px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider.gold   { background: var(--gold); }

.lead {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.85;
  max-width: 560px;
}
.lead.light  { color: rgba(255,255,255,.75); }
.lead.center { margin: 0 auto; text-align: center; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,.35);
}
.btn-outline-w {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border-color: rgba(255,255,255,.75);
}
.btn-outline-w:hover {
  background: var(--white); color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.btn-gold:hover {
  background: #9B6C00; border-color: #9B6C00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,10,.35);
}

/* ── Layout ── */
.section        { padding: 5.5rem 2rem; }
.section-cream  { background: var(--cream); }
.section-gray   { background: var(--gray-light); }
.section-dark   { background: var(--brown-dark); }
.container      { max-width: 1200px; margin: 0 auto; }
.sec-header     { margin-bottom: 3rem; }
.sec-header.center { text-align: center; }

/* ================================================
   NAVIGATION
================================================ */
#nav {
  position: fixed; top: 0; inset-inline: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--t) var(--ease), box-shadow var(--t);
}
#nav.solid {
  background: var(--brown-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  /* Logo tiene fondo blanco — pequeño halo para que no flote en la oscuridad */
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}
.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.nav-logo-text small {
  display: block;
  font-family: var(--ff-body);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 400;
}

/* Links */
.nav-links {
  display: flex;
  gap: 1.875rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .75rem !important;
}
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--red-dark); }

/* Menú hamburguesa (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

/* Menú abierto (mobile) */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--brown-dark);
  padding: 1.5rem 2rem;
  gap: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 999;
}
.nav-links.open a { font-size: 1rem; }

/* Hamburguesa → X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   HERO
================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  background: var(--brown-dark);
  padding-bottom: 3rem;
}

/* Foto de fondo del hero + degradado para legibilidad del texto */
.hero-bg {
  position: absolute; inset: 0;
  background: var(--brown-dark);
  z-index: 1;
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,10,0,.95) 0%, rgba(28,10,0,.86) 50%, rgba(28,10,0,.45) 100%);
}

/* Contenido del hero */
.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
  margin-top: 76px;
}
.hero-tag {
  font-family: var(--ff-script);
  color: var(--gold-light);
  font-size: 1.625rem;
  display: block;
  margin-bottom: .875rem;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 580px;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-desc {
  color: rgba(255,255,255,.78);
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats del hero */
.hero-stats {
  position: relative;
  z-index: 3;
  align-self: center;
  margin-top: 2.5rem;
  display: flex;
  gap: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: .875rem 2.5rem;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
}
.stat { text-align: center; padding: 0 2rem; }
.stat + .stat {
  border-left: 1px solid rgba(255,255,255,.2);
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.stat-label {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.38);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ================================================
   ANNOUNCE BAR
================================================ */
.announce {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 11px 2rem;
  font-size: .875rem;
  letter-spacing: .02em;
}
.announce strong { font-weight: 700; }

/* ================================================
   BIENVENIDA / NOSOTROS
================================================ */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
/* Stack de imágenes */
.img-stack { position: relative; }
.img-main {
  width: 100%; height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #A0522D 0%, #5C2A00 60%, #2D1200 100%);
  position: relative;
}
.img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .6s var(--ease);
}
.img-main:hover img { transform: scale(1.03); }
.img-main-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .9375rem;
  color: rgba(255,255,255,.3);
  text-align: center; padding: 2rem; line-height: 1.6;
}
.img-main-placeholder svg {
  opacity: .2;
  margin-bottom: .5rem;
}
.img-badge {
  position: absolute;
  bottom: -1.75rem; right: -1.75rem;
  width: 175px; height: 175px;
  border-radius: var(--r-lg);
  background: var(--brown-dark);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
}
.badge-num {
  font-family: var(--ff-display);
  font-size: 3.5rem; font-weight: 900;
  color: var(--gold-light); line-height: 1;
}
.badge-label {
  font-size: .675rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: .375rem;
  line-height: 1.45;
}
/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature {
  display: flex; gap: 12px; align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%;
  background: rgba(200,16,46,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}
.feature-body h3 {
  font-family: var(--ff-display);
  font-size: .9375rem; font-weight: 700;
  margin-bottom: 2px;
}
.feature-body p { font-size: .775rem; color: var(--text-light); line-height: 1.5; }
.welcome-cta {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 2.5rem; flex-wrap: wrap;
}

/* ================================================
   MENÚ DE PIZZAS (fondo oscuro)
================================================ */
#menu {
  background: var(--brown-dark);
  padding: 5.5rem 2rem;
  position: relative;
  overflow: hidden;
}
#menu::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px,
    transparent 1px, transparent 40px
  );
  pointer-events: none;
}
/* Tabs */
.tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.tab {
  padding: 10px 26px; border-radius: 50px;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  border: 2px solid rgba(255,255,255,.15);
  transition: all var(--t);
}
.tab:hover, .tab.active {
  background: var(--red); border-color: var(--red); color: var(--white);
}
/* Grid de tarjetas */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  border-color: rgba(200,16,46,.4);
}
.card-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 4px 12px; border-radius: 50px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: var(--white);
  z-index: 1;
}
.card-badge.gold { background: var(--gold); }
/* Imagen de pizza */
.card-img {
  height: 210px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%; /* evita recortar el top de la pizza */
  transition: transform .45s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }
/* Placeholder CSS cuando no hay foto */
.pizza-mini {
  width: 148px; height: 148px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  position: relative; z-index: 1;
  flex-shrink: 0;
}
/* Tamaños */
.card-sizes {
  display: flex; gap: .375rem;
  padding: .625rem 1.5rem 0;
  flex-wrap: wrap;
}
.size-chip {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.55);
}
/* Cuerpo de tarjeta */
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-name {
  font-family: var(--ff-display);
  font-size: 1.1875rem; font-weight: 700;
  color: var(--white); margin-bottom: .4rem;
}
.card-desc {
  font-size: .785rem;
  color: rgba(255,255,255,.48);
  line-height: 1.65;
  margin-bottom: 1.125rem;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
}
.price {
  font-family: var(--ff-display);
  font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.add {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red); color: var(--white);
  font-size: 1.375rem; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
  text-decoration: none;
  flex-shrink: 0;
}
.add:hover {
  background: var(--red-dark);
  transform: rotate(90deg) scale(1.12);
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
}
.menu-cta { text-align: center; margin-top: 3rem; }

/* ================================================
   RESEÑAS (fondo claro — contraste con el menú oscuro)
================================================ */
#reviews {
  background: var(--cream);
  padding: 6rem 2rem;
}
#reviews .sec-header { text-align: center; }
#reviews .divider   { margin-left: auto; margin-right: auto; }

.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.rating-badge {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--r-lg);
  padding: 1rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.rating-num {
  font-family: var(--ff-display);
  font-size: 3rem; font-weight: 900;
  color: var(--text-dark); line-height: 1;
}
.rating-stars { color: var(--gold); font-size: 1.125rem; letter-spacing: 2px; margin: .25rem 0; }
.rating-count { font-size: .775rem; color: var(--text-light); }
.rating-divider {
  width: 1px; height: 60px;
  background: var(--cream-dark);
}
.rating-text {
  font-family: var(--ff-display);
  font-size: 1.0625rem; font-style: italic;
  color: var(--text-med); max-width: 220px;
  line-height: 1.5;
}

/* Tarjetas de reseñas */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.rcard {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
  position: relative;
}
.rcard::before {
  content: '"';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: var(--ff-display);
  font-size: 5rem; font-weight: 900;
  color: rgba(200,16,46,.08);
  line-height: 1;
}
.rcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,16,46,.2);
}
.rcard-stars { color: var(--gold); letter-spacing: 3px; font-size: .9375rem; margin-bottom: .875rem; }
.rcard-text {
  color: var(--text-med);
  font-style: italic; line-height: 1.85;
  font-size: .9375rem; margin-bottom: 1.5rem;
}
.rcard-author { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.125rem; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.author-name { font-family: var(--ff-display); color: var(--text-dark); font-size: .9375rem; font-weight: 700; }
.author-sub  { font-size: .725rem; color: var(--text-light); }

.reviews-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── Carousel de reseñas ── */
.carousel-slide {
  display: none;
  animation: fadeSlide .55s var(--ease);
}
.carousel-slide.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  color: var(--text-med);
  font-size: 1.375rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
  cursor: pointer;
}
.carousel-btn:hover {
  background: var(--red); border-color: var(--red); color: var(--white);
}
.carousel-dots { display: flex; gap: .625rem; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,.15);
  border: none; cursor: pointer;
  transition: all var(--t);
  padding: 0;
}
.dot.active {
  background: var(--red);
  transform: scale(1.25);
  width: 24px; border-radius: 5px;
}

/* ================================================
   CONTACTO
================================================ */
#contacto { padding: 5.5rem 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-lead { color: var(--text-light); line-height: 1.85; margin: 1rem 0 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.citem  { display: flex; gap: 1rem; align-items: flex-start; }
.cicon  {
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  background: rgba(200,16,46,.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.citem-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-med); margin-bottom: 3px;
}
.citem-val { font-size: .9375rem; color: var(--text-dark); line-height: 1.55; }
/* Horario resaltado */
.hours-table {
  border-collapse: collapse;
  font-size: .9rem;
  color: var(--text-dark);
  margin-top: .25rem;
  width: 100%;
}
.hours-table th,
.hours-table td { padding: 3px 12px 3px 0; text-align: left; }
.hours-table th { font-weight: 700; white-space: nowrap; }
.hours-table td { color: var(--text-light); }

/* Mapa placeholder */
.map {
  height: 420px; border-radius: var(--r-lg);
  background: linear-gradient(145deg, #DDD5C8, #C8BFB0);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.map::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0, rgba(0,0,0,.035) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0, rgba(0,0,0,.035) 1px, transparent 1px, transparent 60px);
}
.map::after {
  content: '';
  position: absolute;
  top: 48%; left: 0; right: 0;
  height: 26px; background: rgba(255,255,255,.55);
  transform: rotate(-10deg) scaleX(1.3);
}
.map-pin {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.map-pin-head {
  width: 48px; height: 48px;
  background: var(--red); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 20px rgba(200,16,46,.45);
  display: flex; align-items: center; justify-content: center;
}
.map-pin-head::after { content: '📍'; transform: rotate(45deg); font-size: 1.25rem; }
.map-label {
  background: var(--white);
  padding: 8px 18px; border-radius: 50px;
  font-size: .875rem; font-weight: 700;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
/* Socials */
.socials { display: flex; gap: 10px; margin-top: 2rem; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  transition: all var(--t);
}
.social:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

/* Íconos de marca con color oficial */
.social-icon {
  width: 20px; height: 20px;
  display: block;
  transition: filter var(--t);
}
.social:hover .social-icon { filter: brightness(0) invert(1); }
/* Hover por red */
.social.wa:hover { background: #25D366; border-color: #25D366; }
.social.ig:hover { background: #C13584; border-color: #C13584; }

/* ================================================
   FOOTER
================================================ */
footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.6);
  padding: 4.5rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p {
  margin-top: 1.125rem;
  font-size: .875rem; line-height: 1.8;
  color: rgba(255,255,255,.42);
  max-width: 280px;
}
.footer-logo-img {
  height: 60px; width: auto;
  border-radius: 6px;
  margin-bottom: .75rem;
}
.footer-col .footer-title {
  font-family: var(--ff-display);
  color: var(--white);
  font-size: 1rem; margin-bottom: 1.25rem;
}
.footer-col ul  { display: flex; flex-direction: column; gap: .625rem; }
.footer-col li a { font-size: .875rem; color: rgba(255,255,255,.42); transition: color var(--t); }
.footer-col li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: var(--gold-light); }
.developer-credit {
  font-size: .75rem;
  color: rgba(255,255,255,.3) !important;
  text-decoration: none;
  transition: color var(--t);
}
.developer-credit:hover { color: rgba(255,255,255,.7) !important; }
.developer-credit span {
  color: var(--gold-light);
  font-weight: 600;
}

/* ================================================
   RESPONSIVE — Tablet (≤ 900px)
================================================ */
@media (max-width: 900px) {
  .welcome-grid,
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .img-badge     { bottom: -1rem; right: -1rem; width: 150px; height: 150px; }
  .badge-num     { font-size: 2.75rem; }
  .menu-grid     { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: 1fr; }
  .hero-stats    { border-radius: 20px; padding: .875rem 1.5rem; white-space: normal; justify-content: center; flex-wrap: wrap; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 600px)
================================================ */
@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  #menu    { padding: 4rem 1.25rem; }
  #reviews { padding: 4rem 1.25rem; }
  #hero    { min-height: auto; padding: 6rem 1.25rem 3rem; }

  .hero-title   { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-bg::after { background: linear-gradient(180deg, rgba(28,10,0,.75) 0%, rgba(28,10,0,.9) 100%); }
  .hero-content { margin-top: 0; }
  .hero-stats   { border-radius: 16px; padding: .75rem 1.25rem; white-space: normal; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 1.5rem; }
  .stat         { padding: .375rem 1rem; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.2); }
  .hero-scroll  { display: none; }

  .nav-links    { display: none; }
  .nav-toggle   { display: flex; }

  .menu-grid    { grid-template-columns: 1fr; }
  .features     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }

  .reviews-rating { flex-direction: column; align-items: center; }
  .rating-divider { width: 60px; height: 1px; }

  .btn { padding: 12px 24px; font-size: .75rem; }
}


/* ================================================
   AJUSTES DEMO + ACCESIBILIDAD (2026-10)
================================================ */

/* Utilidades */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.accent { font-style: italic; color: var(--red); }
.link-red { color: var(--red); font-weight: 700; }
.citem-sub { color: var(--text-light); font-size: .825rem; }
.menu-cta-text { color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: 1.25rem; }
.btn-outline-red { color: var(--red); border-color: rgba(200,16,46,.3); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn-ghost { background: transparent; color: var(--text-med); border-color: var(--cream-dark); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.card-badge.green { background: #2D8B13; }

/* Avatares de reseñas */
.avatar-red    { background: linear-gradient(135deg,#C8102E,#6B0000); }
.avatar-blue   { background: linear-gradient(135deg,#1A3A6B,#0A1D3D); }
.avatar-green  { background: linear-gradient(135deg,#1A6B20,#0A3D10); }
.avatar-gold   { background: linear-gradient(135deg,#C8920A,#6B4A00); }
.avatar-purple { background: linear-gradient(135deg,#7B2D8B,#3D0A4A); }
.avatar-teal   { background: linear-gradient(135deg,#1A6B5A,#0A3D30); }

/* Foco visible para teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Saltar al contenido */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  background: var(--white); color: var(--red);
  padding: 10px 16px; border-radius: 8px; font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t);
}
.skip-link:focus { transform: translateY(0); }

/* Mapa de demostración */
.map-demo {
  min-height: 420px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(0deg, rgba(200,16,46,.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(200,16,46,.05) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border: 1px solid var(--cream-dark);
}
.map-demo-pin { font-size: 3rem; line-height: 1; margin-bottom: 1rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.map-demo-title { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.map-demo-text { font-size: .875rem; color: var(--text-light); max-width: 300px; }

/* Aviso fijo de demo */
.demo-ribbon {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  background: rgba(28,10,0,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(232,176,32,.35);
  border-radius: 50px;
  font-size: .78rem;
  box-shadow: var(--shadow-lg);
}
.demo-ribbon strong { color: var(--gold-light); }
.demo-ribbon a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-ribbon a:hover { color: var(--gold-light); }

/* Diálogo de vista previa (WhatsApp / llamada) */
.demo-dialog {
  max-width: 440px; width: calc(100% - 32px);
  margin: auto;
  border: none; border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-xl);
  color: var(--text-dark);
}
.demo-dialog::backdrop { background: rgba(28,10,0,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.demo-dialog-title { font-family: var(--ff-display); font-size: 1.35rem; margin-bottom: .75rem; }
.demo-dialog-text { font-size: .9rem; color: var(--text-med); margin-bottom: 1rem; }
.demo-dialog-msg {
  background: #DCF8C6; color: #1C2B1C;
  border-radius: 12px 12px 12px 2px;
  padding: .85rem 1rem; margin-bottom: 1.25rem;
  font-size: .9rem; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.demo-dialog-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.demo-dialog-actions .btn { padding: 11px 20px; font-size: .72rem; }

@media (max-width: 600px) {
  .demo-ribbon { left: 8px; right: 8px; bottom: 8px; max-width: none; border-radius: 12px; justify-content: center; text-align: center; gap: 4px 10px; padding: 7px 12px; font-size: .7rem; }
  footer { padding-bottom: 6rem; }
  .map-demo { min-height: 300px; }
}

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  display: inline-flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 20px 0 16px;
  border-radius: 50px;
  background: #25D366; color: #fff;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(.92);
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow var(--t);
}
.wa-fab.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.wa-fab:hover { box-shadow: 0 12px 32px rgba(37,211,102,.55); transform: translateY(-2px); }
.wa-fab:focus-visible { outline-color: #25D366; }
.wa-fab-icon { flex-shrink: 0; }
@media (max-width: 600px) {
  /* Encima del aviso de demo; solo ícono para no tapar contenido */
  .wa-fab { right: 14px; bottom: 54px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}
