/* =========================================================
   Super Cloty
   Paleta tomada del logo del cliente (rojo, amarillo, negro) sobre el crema del volante.
   Tipografías provisorias. Todo sale de las variables de :root.
   ========================================================= */

:root {
  --brick: #c00000;
  --brick-dark: #8f0000;
  --amber: #fde004;
  --cream: #f4ebdc;
  --cream-deep: #ecdfc9;
  --espresso: #1c1412;
  --ink: #2b1d1d;
  --muted: #66575a;
  --line: rgba(43, 33, 28, 0.10);
  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36, 26, 22, 0.06), 0 2px 8px rgba(36, 26, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(36, 26, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(36, 26, 22, 0.16);

  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--brick); color: var(--cream); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--radius-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brick-dark); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botón ---------- */
.button { display: inline-flex; align-items: center; padding: 16px 28px; background: var(--brick); color: var(--cream); font-weight: 600; font-size: 1.02rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.button:hover { background: var(--brick-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.button:active { transform: translateY(0); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(244, 235, 220, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--brick); }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 14px; font-weight: 500; font-size: .98rem; border-radius: var(--radius-pill); transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover { color: var(--brick); background: rgba(192, 0, 0, .08); }
.menu-toggle { display: none; padding: 10px 18px; font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--cream); background: var(--brick); border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: background .2s var(--ease); }
.menu-toggle:hover { background: var(--brick-dark); }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--gallery { padding-bottom: 0; }
.section h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.split { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(120% 120% at 100% 0%, rgba(253, 224, 4, .16), transparent 55%), var(--cream); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero__content { max-width: 560px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin-bottom: 20px; }
.hero__text { font-size: clamp(1.05rem, 3.4vw, 1.25rem); color: var(--muted); margin-bottom: 30px; max-width: 42ch; }

.hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 6px solid var(--white); background: var(--cream-deep); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__toggle { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .88); cursor: pointer; transition: background .2s var(--ease); }
.hero__toggle:hover { background: var(--white); }
.hero__toggle svg { fill: currentColor; }
.hero__toggle .icon-play, .hero__toggle[data-state="paused"] .icon-pause { display: none; }
.hero__toggle[data-state="paused"] .icon-play { display: block; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--cream-deep); }

/* ---------- Horarios ---------- */
.section--dark { background: var(--espresso); color: var(--cream); }
.section--dark h2 { color: var(--cream); }
.info__address { margin-top: 18px; }
.info__address a { display: inline-block; padding-bottom: 2px; font-weight: 600; border-bottom: 2px solid var(--amber); transition: color .2s var(--ease); }
.info__address a:hover { color: var(--amber); }
.hours { display: grid; gap: 28px; }
.hours__group h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); }
.hours__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 4px; border-bottom: 1px solid rgba(244, 235, 220, .14); }
.hours__row:last-child { border-bottom: 0; }
.hours__row strong { font-size: 1.05rem; }
.hours__row span { color: rgba(244, 235, 220, .72); }

/* ---------- Contacto ---------- */
.contact { background: var(--cream-deep); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact address { font-style: normal; display: grid; gap: 12px; margin-bottom: 30px; }
.contact address > a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 500; transition: color .2s var(--ease); }
.contact address > a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.contact address > a:hover { color: var(--brick); }
.contact__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.contact__phones span { width: 100%; font-weight: 500; }
.contact__phones a { padding: 8px 16px; font-weight: 600; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-pill); transition: border-color .2s var(--ease), color .2s var(--ease); }
.contact__phones a:hover { border-color: var(--brick); color: var(--brick); }
.contact iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: rgba(244, 235, 220, .8); padding: 30px 0; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer span:first-child { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 1.1rem; }

/* ---------- WhatsApp flotante (móvil) ---------- */
.mobile-whatsapp { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: none; align-items: center; justify-content: center; width: 58px; height: 58px; background: #25D366; border-radius: 50%; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.mobile-whatsapp:hover { transform: scale(1.06); }

/* ---------- Secciones con fondo, encabezados ---------- */
.section--tint { background: var(--cream-deep); }
.section-heading { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; max-width: 720px; }
.section-heading p { color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 46ch; }

/* ---------- Promociones ---------- */
.promos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.promo { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; grid-template-areas: "num price" "desc desc" "link link"; align-items: center; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.promo__num { grid-area: num; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brick); color: var(--cream); font-family: var(--font-display); font-weight: 700; }
.promo__price { grid-area: price; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--brick); }
.promo__desc { grid-area: desc; align-self: start; margin-top: 14px; font-weight: 600; line-height: 1.35; }
.promo__link { grid-area: link; justify-self: start; margin-top: 18px; padding: 10px 20px; font-weight: 600; color: var(--brick); border: 1.5px solid var(--brick); border-radius: var(--radius-pill); transition: background .2s var(--ease), color .2s var(--ease); }
.promo__link:hover { background: var(--brick); color: var(--cream); }

/* ---------- Menú ---------- */
.menu { display: grid; grid-template-columns: 1fr; gap: 24px; }
.menu__side { display: grid; gap: 24px; }
.menu__block { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.menu__block h3 { font-size: 1.5rem; margin-bottom: 8px; }
.menu__note { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.menu__price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--brick); margin-bottom: 6px; }
.menu__price span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.menu__cta { margin-top: 36px; text-align: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; font-size: .92rem; font-weight: 500; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 11px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-table thead th:first-child, .price-table tbody th { text-align: left; }
.price-table tbody th { font-weight: 500; }
.price-table tbody td { font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.menu__list { margin: 0; }
.menu__list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.menu__list div:last-child { border-bottom: 0; }
.menu__list dt { font-weight: 500; }
.menu__list dd { margin: 0; font-weight: 600; color: var(--brick); }

/* ---------- Responsive (mobile first) ---------- */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .promos { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .promos { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .menu { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact iframe { min-height: 420px; height: 100%; }
}

/* Menú móvil desplegable, controlado por aria-expanded */
@media (max-width: 799px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: calc(100% + 8px); right: 20px; left: 20px; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
  .nav a { padding: 13px 16px; border-radius: var(--radius-sm); }
  .menu-toggle[aria-expanded="true"] + .nav { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
  .mobile-whatsapp { display: flex; }
  .footer { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
