/* ==========================================================================
   Matteo's Pizza — sitio oficial
   Paleta extraída del logotipo: rojo #c00020 · oro #f0b000 · crema · tinta
   ========================================================================== */
:root {
  --rojo: #c00020;
  --rojo-oscuro: #8c0018;
  --oro: #f0b000;
  --oro-suave: #f8d060;
  --crema: #faf4e8;
  --crema-oscura: #f2e7d2;
  --tinta: #2b1418;
  --blanco: #ffffff;
  --sombra: 0 10px 30px rgba(43, 20, 24, .12);
  --radio: 14px;
  --fuente-display: "Lilita One", "Arial Black", sans-serif;
  --fuente-texto: "Nunito Sans", Georgia, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-texto);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  /* textura sutil de papel */
  background-image: radial-gradient(rgba(43,20,24,.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo); }

.container { width: min(1100px, 92%); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--tinta);
  color: var(--blanco); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--fuente-display); font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--rojo); }

/* ==========================================================================
   Franja de tablero (identidad heredada del sitio original)
   ========================================================================== */
.checker-strip {
  height: 14px;
  background:
    repeating-conic-gradient(var(--rojo) 0% 25%, var(--blanco) 0% 50%)
    0 / 28px 28px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanco);
  box-shadow: 0 2px 14px rgba(43,20,24,.10);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0;
}
.brand img { width: 72px; height: 72px; object-fit: contain; }

.nav-list {
  display: flex; align-items: center; gap: 1.4rem; list-style: none;
}
.nav-list a {
  font-weight: 800; text-decoration: none; color: var(--tinta);
  font-size: 1.02rem; padding: .35rem .15rem;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--rojo); border-color: var(--oro); }
.nav-cta a {
  background: var(--rojo); color: var(--blanco) !important;
  padding: .55rem 1.1rem; border-radius: 999px; border-bottom: none !important;
  box-shadow: 0 4px 0 var(--rojo-oscuro);
  transition: transform .12s, box-shadow .12s;
}
.nav-cta a:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--rojo-oscuro); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle__bar {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--tinta); border-radius: 2px; transition: transform .2s, opacity .2s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.hero-kicker {
  display: inline-block; background: var(--oro); color: var(--tinta);
  font-weight: 800; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .08em; padding: .3rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); color: var(--tinta); margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--rojo); }
.hero-sub { font-size: 1.15rem; max-width: 42ch; margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.2rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: .9rem 1.5rem; border-radius: 999px; font-size: 1.05rem;
  transition: transform .12s, box-shadow .12s;
}
.btn--wa {
  background: #1fae52; color: var(--blanco);
  box-shadow: 0 5px 0 #157a39;
}
.btn--wa:hover { transform: translateY(2px); box-shadow: 0 3px 0 #157a39; }
.btn--ghost {
  background: var(--blanco); color: var(--rojo);
  border: 3px solid var(--rojo); box-shadow: 0 5px 0 var(--rojo-oscuro);
}
.btn--ghost:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--rojo-oscuro); }
.hero-badge { font-weight: 800; color: var(--rojo-oscuro); }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radio); box-shadow: var(--sombra);
  transform: rotate(2.2deg);
  border: 6px solid var(--blanco);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 12% -6% -6% 10%;
  background: var(--oro-suave); border-radius: var(--radio);
  transform: rotate(-2.5deg); z-index: -1;
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head p { margin-top: .5rem; font-size: 1.05rem; }

/* --- Menú (tablero) --- */
.section--menu { background: var(--tinta); color: var(--crema); }
.section--menu h2 { color: var(--oro); }
.section--menu .section-head a { color: var(--oro-suave); }

.menu-board {
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(240,176,0,.55);
  border-radius: var(--radio);
  padding: clamp(1.2rem, 4vw, 2.4rem);
}
.menu-board__title {
  font-size: 1.5rem; color: var(--oro-suave); margin: 1.6rem 0 .9rem;
}
.menu-board__title:first-child { margin-top: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table {
  width: 100%; border-collapse: collapse; font-size: 1.02rem; min-width: 560px;
}
.price-table th, .price-table td { padding: .65rem .8rem; text-align: center; }
.price-table thead th {
  font-family: var(--fuente-display); font-weight: 400; letter-spacing: .03em;
  color: var(--oro); border-bottom: 2px solid rgba(240,176,0,.5);
}
.price-table tbody th {
  text-align: left; font-weight: 800; color: var(--crema);
}
.price-table tbody tr { border-bottom: 1px solid rgba(250,244,232,.12); }
.price-table tbody tr:hover { background: rgba(240,176,0,.08); }
.price-table .is-special { background: rgba(192,0,32,.25); }
.price-table .is-special th { color: var(--oro-suave); }

.menu-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.4rem;
}
.menu-list { list-style: none; }
.menu-list li {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .5rem 0; font-size: 1.05rem;
}
.menu-list .dots {
  flex: 1; border-bottom: 2px dotted rgba(250,244,232,.35);
  transform: translateY(-4px);
}
.menu-list strong { color: var(--oro-suave); font-size: 1.1rem; }
.menu-note { margin-top: .8rem; font-style: italic; opacity: .85; }

/* --- Combos --- */
.combo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.combo-card {
  position: relative; background: var(--blanco); border-radius: var(--radio);
  padding: 2.2rem 1.3rem 1.5rem; text-align: center; box-shadow: var(--sombra);
  border-top: 6px solid var(--oro);
  transition: transform .15s;
}
.combo-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.combo-card--star { border-top-color: var(--rojo); }
.combo-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rojo); color: var(--blanco);
  font-family: var(--fuente-display); font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: 0 3px 0 var(--rojo-oscuro);
}
.combo-card h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.combo-price {
  font-family: var(--fuente-display); font-size: 2rem; color: var(--rojo);
  margin-top: .6rem;
}

/* --- Galería --- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.gallery figure { overflow: hidden; border-radius: var(--radio); box-shadow: var(--sombra); }
.gallery img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform .35s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

/* --- Nosotros --- */
.section--nosotros { background: var(--crema-oscura); }
.nosotros-grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.nosotros-photo img {
  border-radius: var(--radio); box-shadow: var(--sombra);
  border: 6px solid var(--blanco); transform: rotate(-2deg);
}
.nosotros-copy h2 { margin-bottom: 1rem; }
.nosotros-copy p { font-size: 1.12rem; margin-bottom: .9rem; max-width: 52ch; }

/* --- Ubicación --- */
.ubicacion-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start;
}
.ubicacion-info h3 {
  color: var(--rojo); font-size: 1.25rem; margin: 1.1rem 0 .25rem;
}
.ubicacion-info h3:first-child { margin-top: 0; }
.ubicacion-info a { font-weight: 800; }
.ubicacion-photo { margin-top: 1.4rem; }
.ubicacion-photo img { border-radius: var(--radio); box-shadow: var(--sombra); }
.ubicacion-map iframe {
  width: 100%; height: 100%; min-height: 460px; border: 0;
  border-radius: var(--radio); box-shadow: var(--sombra);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--tinta); color: var(--crema); margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem;
  align-items: center; padding: 2.2rem 0;
}
.footer-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.site-footer a { color: var(--oro-suave); }
.footer-legal { text-align: right; font-size: .92rem; opacity: .9; }
.credit { margin-top: .2rem; }
.footer-admin { color: rgba(250,244,232,.45) !important; font-size: .85em; }

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1fae52; color: var(--blanco);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Animación de aparición
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .combo-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .ubicacion-grid { grid-template-columns: 1fr; }
  .ubicacion-map iframe { min-height: 340px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanco); flex-direction: column; gap: 0;
    padding: .6rem 0 1rem; box-shadow: 0 12px 18px rgba(43,20,24,.12);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a { display: block; padding: .8rem 0; border-bottom: none; }
  .nav-cta { margin-top: .5rem; }
  .nav-cta a { display: inline-block; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-grid, .nosotros-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin-inline: auto; }
  .nosotros-photo { max-width: 420px; margin-inline: auto; }
  .menu-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-legal { text-align: center; }
  .gallery img { height: 240px; }
}

@media (max-width: 480px) {
  .combo-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
