/* =====================================================================
   MID Marketing · Landing Gastronomía — estilos
   Paleta: fondo oscuro cálido + rojos de restaurante (tomate, vino).
   Para cambiar colores, tocá solo las variables de :root.
   ===================================================================== */

:root {
  --bg: #110a0b;          /* fondo general, negro cálido */
  --bg-2: #180e10;        /* fondo de secciones alternas */
  --surface: #211416;     /* tarjetas */
  --surface-2: #2b191c;
  --red: #e0353f;         /* acento principal (tomate) */
  --red-hot: #f04a50;     /* hover */
  --red-deep: #a51d2b;    /* rojo profundo para degradados */
  --wine: #4a0e17;        /* vino */
  --cream: #f6ede3;       /* texto principal */
  --muted: #c7b5ab;       /* texto secundario */
  --line: rgba(246, 237, 227, .12);
  --wa: #25d366;

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

  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;           /* nunca scroll horizontal de página */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 8px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(1.9rem, 6.4vw, 3.3rem); line-height: 1.05; font-variation-settings: "opsz" 120; max-width: 18ch; text-wrap: balance; }
h2 em { color: var(--red); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(224, 53, 63, .7);
}
.btn-primary:hover { background: var(--red-hot); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: rgba(17, 10, 11, .35); border-color: rgba(246, 237, 227, .35); color: var(--cream); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(17, 10, 11, .55); }
.btn-lg { min-height: 60px; padding: 16px 30px; font-size: 1.06rem; }

.ic-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(246, 237, 227, .04);
  cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s;
}
.ic-btn svg { width: 20px; height: 20px; }
.ic-btn:hover { background: rgba(246, 237, 227, .1); border-color: rgba(246, 237, 227, .3); }
.ic-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Barra superior ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(17, 10, 11, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.nav-brand img { width: 40px; height: auto; }
.nav-brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.nav-links { display: none; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(246, 237, 227, .35); text-decoration: none; font-weight: 700; font-size: .9rem;
  transition: background-color .2s, border-color .2s;
}
.nav-cta:hover { background: var(--red); border-color: var(--red); }

/* ---------- 1 · HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--wine); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform-origin: 60% 70%; animation: heroZoom 2.8s var(--ease) both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,10,11,.72) 0%, rgba(17,10,11,0) 22%),
    linear-gradient(0deg, rgba(17,10,11,1) 0%, rgba(17,10,11,.92) 30%, rgba(40,10,14,.55) 58%, rgba(17,10,11,.05) 85%);
}
.hero-inner { width: 100%; max-width: 760px; }
.hero-eyebrow { color: var(--cream); }
.hero-title {
  font-size: clamp(2.45rem, 11.2vw, 5.4rem); line-height: .98; font-weight: 500;
  font-variation-settings: "opsz" 144; letter-spacing: -.025em; margin-bottom: 18px;
}
.hero-title .ln { display: block; }
.hero-title .accent { color: var(--red); margin-top: .12em; font-size: .78em; line-height: 1.04; }
.hero-title .accent em { font-weight: 400; }
.hero-sub { margin: 0 0 26px; font-size: clamp(1.02rem, 3.9vw, 1.2rem); color: #eadcd2; max-width: 36ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { width: 100%; }

@media (max-width: 699px) { .hero-media img { object-position: var(--pos-m, var(--pos, center)); } }

/* entrada suave */
.hero-eyebrow, .hero-title .ln, .hero-sub, .hero-actions { animation: rise .9s var(--ease) both; }
.hero-title .ln:nth-child(1) { animation-delay: .08s; }
.hero-title .ln:nth-child(2) { animation-delay: .16s; }
.hero-title .ln:nth-child(3) { animation-delay: .28s; }
.hero-sub { animation-delay: .4s; }
.hero-actions { animation-delay: .5s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Secciones ---------- */
.section { padding: 76px 0 64px; position: relative; }
.section:nth-of-type(odd) { background: var(--bg-2); }
.section-head { padding: 0 var(--gutter); margin-bottom: 28px; }
.section[hidden] { display: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Carrusel base ---------- */
.carousel { position: relative; }
.track {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 8px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -2px; }
.track > * { scroll-snap-align: start; flex: none; }
/* espaciador final para que la última tarjeta pueda alinearse */
.track::after { content: ""; flex: 0 0 1px; }

.ctrl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter) 0;
  padding-right: calc(var(--gutter) + 70px); /* deja libre el botón flotante de WhatsApp */
}
.ctrl.is-static { display: none; }
.arrows { display: flex; gap: 8px; }
.dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(246, 237, 227, .25);
  cursor: pointer; transition: width .35s var(--ease), background-color .35s;
  position: relative;
}
.dot::after { content: ""; position: absolute; inset: -10px -4px; } /* área táctil */
.dot.is-active { width: 24px; background: var(--red); }
.dots.is-count { flex-wrap: nowrap; gap: 12px; }
.dots .count { font-size: .86rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.2em; }
.dots .cbar { width: 72px; height: 3px; border-radius: 3px; background: rgba(246, 237, 227, .2); overflow: hidden; }
.dots .cbar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .4s var(--ease); }

/* ---------- 2 · Videos ---------- */
.carousel--videos { --vh: min(56svh, 540px); }
.vcard { width: min(calc(var(--vh) * var(--r)), 84vw); }
.vmedia {
  position: relative; aspect-ratio: var(--r); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}
.vthumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.vplayer, .vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer iframe { pointer-events: none; } /* el swipe nunca queda atrapado en el reproductor */
.vcard.yt-direct .vplayer iframe { pointer-events: auto; }
.vcard.yt-direct .vtap { display: none; }
.vcard.is-playing .vthumb { opacity: 0; }
.vmedia::after { /* degradado para que se lean los controles */
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 6, 7, .78), rgba(10, 6, 7, 0));
}
.vtap {
  position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.vtap .bigplay {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(224, 53, 63, .92); color: #fff; box-shadow: 0 12px 34px -8px rgba(224, 53, 63, .8);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.vtap .bigplay svg { width: 30px; height: 30px; margin-left: 4px; }
.vcard.show-play .vtap .bigplay { opacity: 1; transform: none; }
.vbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
}
.vbar .ic-btn { background: rgba(17, 10, 11, .55); border-color: rgba(246, 237, 227, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vprog { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 237, 227, .25); overflow: hidden; }
.vprog i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s linear; }
.vcap { padding: 14px 4px 0; }
.vcap h3 { font-size: 1.22rem; font-weight: 500; }
.vcap h3 + p { margin-top: 4px; }
.vcap p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.vcard:not(.is-active) .vmedia { filter: saturate(.75) brightness(.7); }
.vmedia { transition: filter .4s; }

/* ---------- 3 · Fotos ---------- */
/* todas las fotos con la misma altura; las apaisadas se recortan al ancho máximo */
.carousel--fotos { --ph: min(60svh, 105vw, 600px); }
.carousel--fotos .track { align-items: flex-start; }
.pcard { width: min(calc(var(--ph) * var(--r)), 88vw); margin: 0; }
.pbtn {
  display: block; width: 100%; height: var(--ph); padding: 0; border: 0; cursor: zoom-in; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.pbtn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pbtn:hover img { transform: scale(1.035); }
.pcard figcaption { padding: 12px 4px 0; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.pcard figcaption strong { display: block; color: var(--cream); font-weight: 700; font-size: .98rem; }

/* ---------- 4 · Clientes ---------- */
.ccard {
  width: min(310px, 78vw); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ccover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.ccover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ccover:hover img { transform: scale(1.035); }
.ccover::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(0deg, rgba(17,10,11,.85), rgba(17,10,11,0)); }
.ccover .ig-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem;
}
.ccover .ig-chip svg { width: 20px; height: 20px; }
.cembed { padding: 10px 10px 0; min-height: 420px; }
.cembed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.cbody { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cbody h3 { font-size: 1.35rem; font-weight: 500; }
.cbody .handle { margin: -8px 0 0; color: var(--muted); font-size: .92rem; }
.btn-ig {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid rgba(246, 237, 227, .3); text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: background-color .2s, border-color .2s; align-self: flex-start;
}
.btn-ig svg { width: 18px; height: 18px; }
.btn-ig:hover { background: var(--red); border-color: var(--red); }
.quote { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.04rem; line-height: 1.45; }
.quote p::before { content: "“"; color: var(--red); }
.quote p::after { content: "”"; color: var(--red); }
.quote footer { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Pendientes (solo modo desarrollo) ---------- */
.is-pending { position: relative; }
.pending-tag {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  background: #ffd23f; color: #1a1200; font: 800 .7rem/1 var(--font-body); letter-spacing: .08em;
  padding: 6px 8px; border-radius: 6px; text-transform: uppercase; max-width: calc(100% - 20px);
}
.ph-fill {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
  color: var(--muted); font-size: .9rem; font-weight: 600;
}
.dev-banner {
  position: fixed; left: 12px; top: calc(var(--nav-h) + 8px); z-index: 60; max-width: calc(100vw - 24px);
  background: #ffd23f; color: #1a1200; font: 700 .78rem/1.3 var(--font-body);
  padding: 8px 12px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

/* ---------- 5 · Cierre ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px var(--gutter) 104px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(224, 53, 63, .30), rgba(224, 53, 63, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--wine) 100%);
}
.cta-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: 120px; height: auto; margin-bottom: 30px; }
.cta h2 { margin: 0 auto 16px; max-width: 16ch; font-size: clamp(2.1rem, 8vw, 3.6rem); }
.cta h2 em { color: #ff7a7f; }
.cta p { margin: 0 0 30px; color: #ead8cf; font-size: 1.08rem; max-width: 34ch; }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); background: #0b0607; color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--cream); text-decoration: none; font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .65);
  transition: transform .35s var(--ease), opacity .35s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }

/* ---------- Vista ampliada ---------- */
.lb {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 6, 7, .96); color: var(--cream);
}
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb::backdrop { background: rgba(0, 0, 0, .7); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 14px 8px 20px; }
.lb-count { font-size: .9rem; color: var(--muted); font-weight: 600; }
.lb-close { width: 48px; height: 48px; background: rgba(246, 237, 227, .1); }
.lb-fig { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14px calc(18px + env(safe-area-inset-bottom)); gap: 12px; touch-action: pan-y; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; }
.lb-fig figcaption { text-align: center; font-size: .95rem; color: var(--muted); max-width: 46ch; }
.lb-fig figcaption strong { color: var(--cream); display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(17, 10, 11, .6); width: 48px; height: 48px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 700px) {
  :root { --gutter: 40px; --nav-h: 72px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .ctrl { padding-right: var(--gutter); }
  .section { padding: 104px 0 88px; }
  .section-head { margin-bottom: 40px; }
  .track { gap: 20px; }
  .ccard { width: 320px; }
}
@media (min-width: 960px) {
  :root { --gutter: max(56px, calc((100vw - 1240px) / 2)); }
  .nav-links { display: flex; }
  .hero { align-items: center; padding-bottom: 72px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(17,10,11,.6) 0%, rgba(17,10,11,0) 20%),
      linear-gradient(90deg, rgba(17,10,11,.96) 0%, rgba(17,10,11,.82) 38%, rgba(40,10,14,.25) 70%, rgba(17,10,11,0) 100%),
      linear-gradient(0deg, rgba(17,10,11,1) 0%, rgba(17,10,11,0) 30%);
  }
  .hero-title { font-size: clamp(3.4rem, 6vw, 5.6rem); }
  .carousel--videos { --vh: min(70vh, 600px); }
  .carousel--fotos { --ph: min(68vh, 560px); }
  .pcard { width: min(calc(var(--ph) * var(--r)), 860px); }
  .ccard { width: 340px; }
  .section-head { display: flex; flex-direction: column; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
