/* Convite — hoja de estilos del sitio */

:root {
  --ink: #2A2712;
  --ink-soft: #5B573A;
  --ink-mute: #7C7658;
  --olive: #48451F;
  --olive-deep: #302E14;
  --gold: #B8891F;
  --gold-deep: #8F6A15;
  --gold-light: #F1DFA9;
  --sand: #E3D2A9;
  --sand-pale: #F4EBD3;
  --surface: #FBF6EA;
  --line: rgba(72, 69, 31, 0.16);
  --line-soft: rgba(72, 69, 31, 0.09);
  --shadow: rgba(48, 46, 20, 0.16);
  --shadow-strong: rgba(48, 46, 20, 0.26);

  --measure: 62ch;
  --wrap: 1120px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3ECD8;
    --ink-soft: #C9C0A0;
    --ink-mute: #A79E80;
    --olive: #D9CE9C;
    --olive-deep: #EDE4BE;
    --gold: #E0B24A;
    --gold-deep: #F1C766;
    --gold-light: #4A431F;
    --sand: #221F10;
    --sand-pale: #1A1809;
    --surface: #2E2A15;
    --line: rgba(224, 178, 74, 0.20);
    --line-soft: rgba(224, 178, 74, 0.11);
    --shadow: rgba(0, 0, 0, 0.42);
    --shadow-strong: rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --ink: #F3ECD8;
  --ink-soft: #C9C0A0;
  --ink-mute: #A79E80;
  --olive: #D9CE9C;
  --olive-deep: #EDE4BE;
  --gold: #E0B24A;
  --gold-deep: #F1C766;
  --gold-light: #4A431F;
  --sand: #221F10;
  --sand-pale: #1A1809;
  --surface: #2E2A15;
  --line: rgba(224, 178, 74, 0.20);
  --line-soft: rgba(224, 178, 74, 0.11);
  --shadow: rgba(0, 0, 0, 0.42);
  --shadow-strong: rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- Cabecera ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 8px var(--shadow); }
.brand span {
  font-family: 'Jost', 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.4px;
  color: var(--olive-deep);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}

/* El botón principal invierte los papeles en modo oscuro: en claro es
   oliva sobre arena, en oscuro es dorado sobre fondo profundo. */
:root {
  --btn-bg: #48451F;
  --btn-fg: #F1DFA9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-bg: #E0B24A; --btn-fg: #241F12; }
}
:root[data-theme="dark"] { --btn-bg: #E0B24A; --btn-fg: #241F12; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 12px 26px var(--shadow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost.is-muted { opacity: 0.75; cursor: default; }
.btn-ghost.is-muted:hover { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
  background: radial-gradient(120% 80% at 22% -10%, var(--sand-pale) 0%, var(--sand) 58%, var(--sand) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 2px solid var(--line-soft);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .btn-row { justify-content: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-light);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

h1 {
  font-family: 'Jost', 'Nunito', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--olive-deep);
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold-deep); }

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
@media (max-width: 880px) { .lede { margin-inline: auto; } }

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* Marco de teléfono */

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, #56532A 0%, #302E14 100%);
  box-shadow: 0 34px 70px var(--shadow-strong), 0 2px 0 rgba(255,255,255,0.14) inset;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 7px;
  border-radius: 99px;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 560 / 640;
}
.phone-screen img {
  width: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

/* ---------- Secciones ---------- */

section { padding: clamp(56px, 8vw, 92px) 0; }

.section-head { max-width: 40ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }

h2 {
  font-family: 'Jost', 'Nunito', sans-serif;
  font-weight: 500;
  font-size: clamp(29px, 4.2vw, 42px);
  line-height: 1.14;
  color: var(--olive-deep);
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.band { background: var(--sand-pale); border-block: 1px solid var(--line-soft); }

/* Rejilla de funciones */

.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 22px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-light);
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.card-icon svg { width: 21px; height: 21px; }

.card.wide { grid-column: span 3; }
.card.third { grid-column: span 2; }

.card.showcase {
  grid-column: span 3;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.card.showcase .showcase-text { padding: 26px 26px 6px; display: flex; flex-direction: column; gap: 10px; }
.card.showcase img {
  width: calc(100% - 44px);
  margin: 14px auto 0;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  /* Las capturas nuevas son pantallas enteras de móvil, mucho más altas que
     las de antes: se recorta por arriba, que es donde está lo que se cuenta. */
  height: 400px;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .card.wide, .card.showcase { grid-column: span 2; }
  .card.third { grid-column: span 1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .card.wide, .card.showcase, .card.third { grid-column: span 1; }
}

/* Pasos */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 12px; }
.step-num {
  font-family: 'Jost', 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

/* Galería */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 30px var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 16px 18px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}
.shot figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }

/* FAQ */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }

/* CTA */

.cta {
  background: linear-gradient(150deg, #56532A 0%, #302E14 100%);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 62px);
  text-align: center;
  color: #F4EBD3;
  box-shadow: 0 24px 54px var(--shadow-strong);
}
.cta h2 { color: #F4EBD3; margin-bottom: 12px; }
.cta p { color: rgba(244, 235, 211, 0.78); margin: 0 auto 28px; max-width: 44ch; }
.cta .btn-primary { background: #F1DFA9; color: #302E14; }
.cta .btn-ghost { color: rgba(244,235,211,0.9); border-color: rgba(244,235,211,0.32); }
.cta .btn-row { justify-content: center; }

/* ---------- Pie ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--sand-pale);
  padding: 44px 0 52px;
  font-size: 15px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: flex-start;
  justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { width: 34px; height: 34px; border-radius: 10px; }
.foot-brand span { font-family: 'Jost', 'Nunito', sans-serif; font-weight: 500; font-size: 22px; color: var(--olive-deep); }

.foot-links { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

.foot-legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Páginas de texto ---------- */

.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 90px); }
.doc-inner { max-width: 720px; margin-inline: auto; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.doc .doc-meta { color: var(--ink-mute); font-size: 14.5px; margin: 0 0 38px; }
.doc h2 { font-size: clamp(22px, 3vw, 27px); margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.68; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

/* Tablas dentro de páginas de texto */
.table-scroll { overflow-x: auto; margin: 18px 0 10px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--ink); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Tarjeta de contacto (soporte) */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 8px;
}
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row .card-icon { margin: 0; }
.contact-row div { display: flex; flex-direction: column; }
.contact-row .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.contact-row a, .contact-row .value { font-size: 16.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-sep { height: 1px; background: var(--line-soft); }

/* Pasos numerados dentro de páginas de texto */
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.numbered li {
  counter-increment: n;
  position: relative;
  padding-left: 46px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
}
.numbered li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.callout {
  background: var(--gold-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 26px 0;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Fotos: el héroe con una comida de verdad detrás, y una franja entre
   secciones. La foto va detrás del texto, así que lleva un velo por encima
   para que el titular siga leyéndose sin forzar.
   --------------------------------------------------------------------------- */

.hero.has-photo { position: relative; overflow: hidden; }

.hero .hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('/assets/p-mesa.jpg');
  background-size: cover;
  background-position: center 38%;
  /* Se ve que hay una cena, no una mancha. El velo de abajo se encarga de que
     el titular siga leyéndose. */
  opacity: .5;
}

/* Se funde con el fondo por abajo, para que la sección siguiente no arranque
   con un corte seco. */
.hero .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* más velo a la izquierda, que es donde va el texto */
    linear-gradient(90deg,
      rgba(227, 210, 169, .92) 0%,
      rgba(227, 210, 169, .72) 42%,
      rgba(227, 210, 169, .35) 100%),
    linear-gradient(180deg,
      rgba(227, 210, 169, .25) 0%,
      rgba(227, 210, 169, .55) 60%,
      rgba(227, 210, 169, 1) 100%);
}

.hero.has-photo .wrap { position: relative; z-index: 1; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
}

.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gallery figure:hover img { transform: scale(1.04); }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { aspect-ratio: 16 / 10; }
  .hero .hero-photo { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery figure:hover img { transform: none; }
}
