/* =========================================================
   Cenaduría Los Álamos — galería blanca (Apple) + lienzo
   creativo (Figma): titulares ultraligeros, un solo índigo
   para la acción, pasteles solo como etiqueta.
   ========================================================= */

:root {
  /* Superficies */
  --white: #ffffff;
  --mist: #f5f5f7;
  --soft: #ececee;
  --hairline: #d6d6d6;

  /* Tinta */
  --ink: #000000;
  --text: #1d1d1f;
  --graphite: #595959;

  /* Acción: el único color saturado de la interfaz */
  --indigo: #4d49fc;
  --indigo-hover: #3d39e8;

  /* Pasteles: solo etiquetas y puntos del índice */
  --lime: #e4ff97;
  --lilac: #c4baff;
  --blush: #ffc9c1;
  --aqua: #c7f8fb;
  --teal: #33dfdf;
  --mustard: #b98e01;

  --font: Inter, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Curvatura: 2 / 8 / 16 / 28 / pastilla */
  --r-xs: 2px;
  --r-sm: 8px;
  --r-card: 16px;
  --r-media: 28px;
  --r-pill: 9999px;

  --float: 0 24px 70px rgba(0, 0, 0, 0.1);

  --page: 1200px;
  --gutter: 22px;
  --section: 112px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 64px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

/* ============ Tipografía ============ */
.display {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.mono-price, .price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.text-link {
  color: var(--indigo);
  font-size: 17px;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--indigo); color: var(--white); }
.btn--ghost {
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}
.btn--lg { padding: 13px 24px; font-size: 16px; }
.btn--ghost.btn--lg { border-radius: var(--r-sm); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--indigo-hover); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
}

/* ============ Navegación ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  max-width: var(--page);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), var(--mustard), var(--blush), var(--lilac), var(--teal));
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px);
          mask: radial-gradient(circle, transparent 6px, #000 6.5px);
}
.brand__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a {
  font-size: 14px;
  color: var(--graphite);
  transition: color 160ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; gap: 10px; }
/* En la barra la acción va en negro: el índigo queda para la acción principal de cada pantalla */
.nav .btn--primary { background: var(--ink); }
@media (hover: hover) { .nav .btn--primary:hover { background: #2a2a2a; } }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px var(--gutter) 64px;
}
.collage {
  position: absolute;
  inset: 0;
  max-width: 1440px;
  margin: 0 auto;
  pointer-events: none;
}
.collage__item {
  position: absolute;
  object-fit: cover;
  border-radius: var(--r-card);
  animation: drop-in 900ms var(--ease-out) both;
}
/* Posiciones dispersas, ligeramente rotadas */
.c1 { width: 220px; height: 220px; left: 3%;  top: 40px;  rotate: -7deg; animation-delay: 60ms; }
.c2 { width: 250px; height: 250px; left: 9%;  top: 330px; rotate: 5deg;  animation-delay: 120ms; }
.c3 { width: 160px; height: 210px; left: 25%; top: 12px;  rotate: 4deg;  animation-delay: 180ms; }
.c4 { width: 230px; height: 230px; right: 4%; top: 30px;  rotate: 6deg;  animation-delay: 90ms; }
.c5 { width: 260px; height: 220px; right: 10%; top: 330px; rotate: -5deg; animation-delay: 150ms; }
.c6 { width: 180px; height: 180px; right: 26%; top: 8px;  rotate: -4deg; animation-delay: 210ms; }
.c7 { width: 150px; height: 200px; left: 30%; top: 470px; rotate: -3deg; animation-delay: 240ms; }

@keyframes drop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 120px auto 0;
  padding: 44px 48px 40px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--float);
  text-align: center;
  animation: drop-in 900ms var(--ease-out) both;
}
.hero-card .display { margin-top: 16px; }
.hero-card__copy {
  margin: 20px auto 0;
  max-width: 30em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--graphite);
}
.hero-card__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.facts {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 180px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.facts li {
  padding: 18px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.facts strong { font-size: 17px; font-weight: 500; color: var(--ink); }

/* ============ Índice (chips) ============ */
.chips {
  position: sticky;
  top: var(--nav-h);
  z-index: 15;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--soft);
}
.chips__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips__inner::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--lime { background: #b9e04a; }
.dot--blush { background: #ff9a8a; }
.dot--lilac { background: #9d8cff; }
.dot--aqua { background: #3fd3dc; }
.dot--ink { background: var(--ink); }
.chip.is-active .dot--ink { background: var(--white); }

/* ============ Encabezado de sección ============ */
.section-head {
  max-width: var(--page);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============ Lo más pedido ============ */
.highlights {
  background: var(--mist);
  padding: var(--section) 0;
}
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
  padding: 0 max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.feature-card {
  position: relative;
  flex: 0 0 min(420px, 82vw);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--white);
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) {
  .feature-card:hover img { transform: scale(1.03); }
}
.feature-card__text {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--r-card);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.carousel-control {
  margin: 32px auto 0;
  width: fit-content;
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  background: rgba(210, 210, 215, 0.64);
}
.cdot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: width 300ms var(--ease-out), background-color 200ms ease;
}
.cdot.is-active { width: 28px; background: var(--ink); }

/* ============ Secciones de la carta ============ */
.menu-section {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.menu-section--mist {
  max-width: none;
  background: var(--mist);
  padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
}
.menu-section .headline { margin-top: 20px; }
.menu-section__media {
  position: sticky;
  top: calc(var(--nav-h) + 80px);
}
.menu-section__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-media);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.tag--lime { background: var(--lime); }
.tag--blush { background: var(--blush); }
.tag--lilac { background: var(--lilac); }
.tag--aqua { background: var(--aqua); }

.dish-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.dish-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.dish-list h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.dish-list p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--graphite);
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 3px;
}

/* ============ Bebidas ============ */
.drinks { padding: var(--section) 0; }
.drinks__grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.drink-card {
  background: var(--mist);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.drink-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.drink-card__body { padding: 20px 24px 24px; }
.drink-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.drink-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.drink-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.drink-card--extras { background: var(--lime); justify-content: flex-end; }
.drink-card--aqua { background: var(--aqua); justify-content: flex-end; }
.drink-card__big {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.extras { margin-top: 16px; border-top: 1px solid var(--ink); }
.extras li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 16px;
  color: var(--ink);
}

/* ============ Galería ============ */
.gallery { padding: 0 0 var(--section); }
.gallery__grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.gallery__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-card);
}

/* ============ Opiniones ============ */
.reviews { background: var(--mist); }
.reviews__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 72px;
  align-items: center;
}
.reviews__number {
  font-size: clamp(88px, 13vw, 160px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.reviews .mono-label { margin-top: 12px; }
.reviews__quotes { border-top: 1px solid var(--ink); }
.reviews__quotes li {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ============ Visítanos ============ */
.visit {
  position: relative;
  padding: 160px var(--gutter);
}
.visit__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visit-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 48px 40px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--float);
  overflow: hidden;
}
.visit-card .headline { margin-top: 12px; }
.visit-card .hero-card__actions { justify-content: flex-start; }
.visit-card__info { margin-top: 28px; border-top: 1px solid var(--ink); }
.visit-card__info div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.visit-card__info dt { padding-top: 3px; }
.visit-card__info dd { font-size: 16px; line-height: 1.45; color: var(--ink); }
.ring {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0deg, var(--teal) 90deg, var(--mustard) 200deg, transparent 300deg);
  -webkit-mask: radial-gradient(circle, transparent 85px, #000 86px);
          mask: radial-gradient(circle, transparent 85px, #000 86px);
}

/* ============ Footer ============ */
.footer { background: var(--white); border-top: 1px solid var(--soft); }
.footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
}
.footer__row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .c3, .c6, .c7 { display: none; }
  .c1 { left: -2%; }
  .c4 { right: -2%; }
}

@media (max-width: 900px) {
  :root { --section: 88px; }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .menu-section { grid-template-columns: 1fr; gap: 40px; }
  .menu-section__media { position: static; order: -1; }
  .menu-section__media img { aspect-ratio: 16 / 10; }
  .drinks__grid { grid-template-columns: 1fr 1fr; }
  .drink-card--extras { grid-column: 1 / -1; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reviews__inner { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 64px; row-gap: 20px; }
}

@media (max-width: 640px) {
  :root { --section: 72px; --gutter: 16px; }
  .nav .btn--ghost { display: none; }
  .hero { padding-top: 0; }
  /* Collage como tira horizontal arriba de la tarjeta */
  .collage {
    position: relative;
    height: 200px;
    margin: 0 calc(var(--gutter) * -1);
  }
  .c1 { width: 150px; height: 150px; left: -20px; top: 28px; }
  .c2 { width: 140px; height: 140px; left: 36%; top: 12px; rotate: 4deg; }
  .c4 { width: 150px; height: 150px; right: -24px; top: 36px; }
  .c5 { display: none; }
  .hero-card { margin-top: -36px; padding: 32px 24px 28px; }
  .hero-card__actions .btn { flex: 1 1 auto; }
  .facts { margin-top: 48px; }
  .facts li { padding-right: 8px; }
  .facts strong { font-size: 15px; }
  .feature-card h3 { font-size: 18px; }
  .drinks__grid { grid-template-columns: 1fr; }
  .dish-list li { gap: 16px; }
  .visit { padding: 96px var(--gutter); }
  .visit-card { padding: 32px 24px 28px; }
  .visit-card__info div { grid-template-columns: 1fr; gap: 4px; }
  .visit-card .hero-card__actions .btn { flex: 1 1 auto; }
}

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