/* ===================================================================
   Entre Pizzas y Tartas — estilos principales
   Paleta y tono inspirados en el cartel de marca: granate cálido,
   pergamino, dorado y rojo, con decoración hand-drawn.
=================================================================== */

:root {
  --granate:        #3d100e;
  --granate-deep:   #2a0908;
  --granate-soft:   #5a1a16;
  --crema:          #f4e6c6;
  --crema-light:    #fbf3df;
  --crema-deep:     #ecdab2;
  --dorado:         #e8a23c;
  --dorado-light:   #f3c560;
  --rojo:           #c63a29;
  --verde:          #436b3a;
  --verde-dark:     #345230;
  --tinta:          #3a2416;
  --tinta-soft:     #6b513b;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Mulish", -apple-system, "Segoe UI", sans-serif;
  --font-hand:    "Caveat", cursive;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -22px rgba(20, 6, 5, 0.55);
  --shadow-soft: 0 10px 26px -16px rgba(20, 6, 5, 0.4);
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--crema-light);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 999; background: var(--granate); color: var(--crema);
  padding: 10px 18px; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease,
  box-shadow .18s ease, background-color .18s ease, color .18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--dorado); color: var(--granate-deep); box-shadow: var(--shadow-soft); }
.btn-gold:hover { background: var(--dorado-light); }
.btn-green { background: var(--verde); color: var(--crema-light); }
.btn-green:hover { background: var(--verde-dark); }
.btn-dark { background: var(--granate); color: var(--crema); }
.btn-dark:hover { background: var(--granate-soft); }
.btn-ghost { background: transparent; color: var(--crema); border-color: rgba(244,230,198,.45); }
.btn-ghost:hover { border-color: var(--dorado); color: var(--dorado-light); }
.btn-ghost-dark { background: transparent; color: var(--granate); border-color: rgba(61,16,14,.3); }
.btn-ghost-dark:hover { border-color: var(--granate); background: rgba(61,16,14,.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(42, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,162,60,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { color: var(--rojo); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-family: var(--font-hand); color: var(--dorado-light);
  font-size: 1.05rem; margin-bottom: -3px;
}
.brand-main {
  font-family: var(--font-display); font-weight: 800; color: var(--crema);
  font-size: 1.22rem; letter-spacing: .2px;
}
.brand-main em { font-style: italic; color: var(--dorado); }

/* ---------- Navegación ---------- */
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  text-decoration: none; color: var(--crema-light); font-weight: 500;
  font-size: .96rem; padding: 9px 13px; border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-menu a:hover { color: var(--dorado-light); }
.nav-cta {
  background: var(--dorado); color: var(--granate-deep) !important;
  font-weight: 700 !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--dorado-light); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 25px; height: 2.5px; background: var(--crema); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--granate);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(232,162,60,.16), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(0,0,0,.4), transparent);
  color: var(--crema); overflow: hidden;
  padding: clamp(70px, 13vh, 130px) 0 clamp(90px, 14vh, 150px);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,230,198,.04) 1px, transparent 1.5px);
  background-size: 22px 22px; pointer-events: none;
}
.hero-doodles { position: absolute; inset: 0; pointer-events: none; color: rgba(232,162,60,.16); }
.doodle { position: absolute; }
.doodle-pizza { width: 130px; top: 8%; left: 5%; transform: rotate(-16deg); }
.doodle-cake  { width: 120px; bottom: 10%; right: 6%; transform: rotate(12deg); }
.doodle-leaf  { width: 95px; bottom: 16%; left: 8%; transform: rotate(20deg); color: rgba(67,107,58,.5); }
.doodle-heart { width: 90px; top: 14%; right: 9%; transform: rotate(-10deg); color: rgba(198,58,41,.4); }

.hero-inner { position: relative; }
.hero-eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .28em; font-size: .76rem; font-weight: 700;
  color: var(--dorado-light); margin-bottom: 18px;
}
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ht-small {
  font-family: var(--font-hand); font-weight: 700; color: var(--dorado-light);
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1;
}
.ht-big {
  font-weight: 800; color: var(--crema-light);
  font-size: clamp(2.6rem, 8.5vw, 5.4rem); letter-spacing: -.5px;
  text-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.ht-big em { font-style: italic; color: var(--dorado); }
.hero-tag {
  display: inline-block; margin: 22px auto 0;
  background: var(--verde); color: var(--crema-light);
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  padding: 9px 26px; border-radius: 999px;
  border: 1.5px solid rgba(244,230,198,.25);
}
.hero-script {
  font-family: var(--font-hand); font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--dorado-light);
  margin-top: 14px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 34px;
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(transparent, rgba(0,0,0,.25));
}

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; position: relative; }
.section-cream { background: var(--crema-light); color: var(--tinta); }
.section-granate { background: var(--granate); color: var(--crema); }
.section-granate::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,230,198,.035) 1px, transparent 1.5px);
  background-size: 24px 24px; pointer-events: none;
}
.section-granate > .wrap { position: relative; }

.kicker {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .22em; font-size: .78rem; font-weight: 700;
  color: var(--rojo); display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--dorado); }
.kicker-gold { color: var(--dorado-light); }

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 600;
  margin: 14px 0 0; max-width: 18ch; letter-spacing: -.4px;
}
.section-title-light { color: var(--crema-light); }

/* ---------- La casa ---------- */
.casa-text {
  margin-top: 20px; max-width: 60ch; font-size: 1.1rem;
  color: var(--tinta-soft);
}
.casa-text strong { color: var(--tinta); }
.casa-feats {
  display: grid; gap: 22px; margin-top: 46px;
  grid-template-columns: repeat(3, 1fr);
}
.casa-feats li {
  background: #fff; border: 1.5px solid var(--crema-deep);
  border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.feat-ico {
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: var(--crema); color: var(--rojo);
  margin-bottom: 16px;
}
.feat-ico svg { width: 32px; height: 32px; }
.casa-feats h3 { font-size: 1.32rem; color: var(--granate); }
.casa-feats p { margin-top: 6px; color: var(--tinta-soft); font-size: .98rem; }

/* ---------- Carta ---------- */
.carta-note {
  font-family: var(--font-hand); font-size: 1.4rem;
  color: var(--dorado-light); margin-top: 8px;
}
.carta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  margin-top: 44px;
}
.carta-cat {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--dorado);
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 2px dashed rgba(232,162,60,.4);
}
.carta-list li { padding: 16px 0; border-bottom: 1px dashed rgba(244,230,198,.16); }
.carta-list li:last-child { border-bottom: 0; }
.carta-list h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 1.08rem;
  color: var(--crema-light); display: flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .04em;
}
.carta-list h4::before {
  content: "♥"; color: var(--rojo); font-size: .9rem;
}
.carta-list p { margin-top: 3px; color: rgba(244,230,198,.72); font-size: .97rem; }
.carta-cta {
  margin-top: 40px; text-align: center; font-family: var(--font-display);
  font-style: italic; font-size: 1.25rem; color: var(--crema);
}
.carta-cta a { color: var(--dorado-light); font-weight: 600; }

/* ---------- Reseñas ---------- */
.rating-summary {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 22px;
}
.rating-stars { color: var(--dorado); font-size: 1.5rem; letter-spacing: 2px; }
.rating-score { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--granate); }
.rating-count { color: var(--tinta-soft); font-weight: 500; }
.resenas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin: 36px 0;
}
.resena {
  background: #fff; border: 1.5px solid var(--crema-deep);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-soft); position: relative;
}
.resena-stars { color: var(--dorado); font-size: 1.05rem; letter-spacing: 2px; }
.resena p {
  font-family: var(--font-display); font-size: 1.12rem; font-style: italic;
  color: var(--tinta); margin: 12px 0 18px; line-height: 1.5;
}
.resena-mini p { font-style: normal; font-family: var(--font-body); color: var(--tinta-soft); font-size: 1rem; }
.resena footer { display: flex; flex-direction: column; }
.resena-name { font-weight: 700; color: var(--granate); }
.resena-meta { font-size: .85rem; color: var(--tinta-soft); }

/* ---------- Horario ---------- */
.open-status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: rgba(244,230,198,.08); border: 1.5px solid rgba(244,230,198,.18);
}
.open-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--tinta-soft); }
.open-status.is-open { color: #b6e3a8; border-color: rgba(120,200,100,.4); }
.open-status.is-open .open-dot { background: #79c850; box-shadow: 0 0 0 4px rgba(121,200,80,.22); }
.open-status.is-closed { color: #f0b7af; border-color: rgba(198,58,41,.4); }
.open-status.is-closed .open-dot { background: var(--rojo); }

.horario-table {
  width: 100%; max-width: 560px; margin-top: 28px;
  border-collapse: collapse; font-size: 1rem;
}
.horario-table th, .horario-table td {
  text-align: left; padding: 14px 10px;
  border-bottom: 1px dashed rgba(244,230,198,.18);
}
.horario-table th { font-family: var(--font-body); font-weight: 700; color: var(--crema-light); }
.horario-table td { color: rgba(244,230,198,.78); font-variant-numeric: tabular-nums; }
.horario-table td + td { text-align: right; }
.horario-table tr.is-today th { color: var(--dorado-light); }
.horario-table tr.is-today {
  background: rgba(232,162,60,.08);
}
.horario-table tr.is-today th::after {
  content: "Hoy"; font-family: var(--font-hand); font-weight: 700;
  font-size: 1rem; color: var(--dorado); margin-left: 8px;
}

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px;
  margin-top: 40px; align-items: start;
}
.contacto-list li { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.ci-ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--granate); color: var(--dorado-light);
  display: grid; place-items: center;
}
.ci-ico svg { width: 22px; height: 22px; }
.contacto-list a { color: var(--rojo); font-weight: 700; text-decoration: none; }
.contacto-list a:hover { text-decoration: underline; }
.contacto-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.contacto-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-shell { position: relative; aspect-ratio: 4 / 3; background: var(--granate); }
.map-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 30px; color: var(--crema);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,162,60,.14), transparent 70%),
    var(--granate);
}
.map-placeholder svg { color: var(--dorado-light); }
.map-placeholder p { color: rgba(244,230,198,.8); font-size: .95rem; max-width: 30ch; }
.map-alt { color: var(--dorado-light); font-weight: 600; text-decoration: none; font-size: .9rem; }
.map-alt:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--granate-deep); color: rgba(244,230,198,.8); padding-top: 60px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 44px;
}
.brand-text-footer .brand-main { font-size: 1.5rem; }
.brand-text-footer .brand-top { font-size: 1.3rem; }
.footer-script { font-family: var(--font-hand); color: var(--dorado-light); font-size: 1.4rem; margin-top: 6px; }
.footer-col h3 {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .14em; font-size: .82rem; color: var(--dorado);
  margin-bottom: 12px;
}
.footer-col p { font-size: .95rem; line-height: 1.7; }
.footer-col a { color: rgba(244,230,198,.8); }
.footer-col a:hover { color: var(--dorado-light); }
.footer-links li { padding: 4px 0; }
.footer-links a { text-decoration: none; }
.footer-bottom {
  text-align: center; padding: 20px; font-size: .85rem;
  color: rgba(244,230,198,.5);
  border-top: 1px solid rgba(244,230,198,.1);
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--crema-light); color: var(--tinta);
  border: 2px solid var(--granate); border-radius: var(--radius);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.6);
  animation: cookie-in .35s ease both;
}
@keyframes cookie-in { from { transform: translateY(20px); opacity: 0; } }
.cookie-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 22px; max-width: var(--wrap); margin-inline: auto;
}
.cookie-inner p { font-size: .92rem; flex: 1 1 320px; }
.cookie-inner a { color: var(--rojo); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-actions .btn { padding: 10px 22px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s ease;
}
.hero .reveal:nth-child(1) { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .4s; }
.hero .reveal:nth-child(5) { transition-delay: .52s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--granate-deep); padding: 14px 20px 24px;
    border-bottom: 2px solid var(--dorado);
    transform: translateY(-130%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { padding: 14px 10px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }

  .casa-feats { grid-template-columns: 1fr; }
  .carta-grid { grid-template-columns: 1fr; gap: 14px; }
  .resenas-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cookie-actions { margin-left: 0; width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Accesibilidad: 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;
  }
  .reveal { opacity: 1; transform: none; }
}
