/* ============================================================
   Café Aquamarino · Dirección B «Calma de mar profundo»
   Concepto no oficial de Tuvitrina. Página noche, calma de mar.
   ============================================================ */

:root {
  --abyss: #0A1E26;
  --midnight: #0F2D38;
  --foam: #EAF4F6;
  --foam-muted: rgba(234, 244, 246, 0.72);
  --aqua: #8FD3D8;
  --sand: #E8C98F;
  --hairline: rgba(234, 244, 246, 0.12);
  --hairline-soft: rgba(234, 244, 246, 0.08);
  --radius: 14px;
  --w: 1120px;
  --nav-h: 64px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--aqua);
  text-decoration-color: rgba(143, 211, 216, 0.4);
  text-underline-offset: 3px;
}
a:hover { color: var(--foam); }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--sand); color: var(--abyss); }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

main { padding-top: var(--nav-h); }

main > section + section,
.footer { border-top: 1px solid var(--hairline); }

section { padding-block: clamp(56px, 9vw, 104px); }

.section-head { margin: 0 0 clamp(26px, 4vw, 44px); }
.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.section-lead { margin: 0; max-width: 52ch; color: var(--foam-muted); font-size: 16.5px; }

/* ---------- Nav (fija, delgada, blur) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 30, 38, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--foam);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--foam-muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--aqua); }

/* ---------- Hero: foto a la izquierda, texto a la derecha ---------- */

.hero { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 84px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 50svh;
}

.hero__media { margin: 0; }
.hero__media img {
  width: 100%;
  height: clamp(320px, 56svh, 600px);
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__credit { margin: 10px 2px 0; font-size: 12.5px; color: var(--foam-muted); }
.hero__credit a {
  color: var(--foam-muted);
  text-decoration-color: rgba(234, 244, 246, 0.3);
}
.hero__credit a:hover { color: var(--aqua); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 66px);
  line-height: 1.02;
}

.hero__promise {
  margin: 0 0 30px;
  max-width: 42ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--foam-muted);
}

/* ---------- Botón (arena) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--abyss);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.btn:hover { background: #F0D6A4; color: var(--abyss); }
.btn:active { transform: translateY(1px); }

/* ---------- La carta: lista tipográfica ---------- */

.carta__list { margin: 0; padding: 0; list-style: none; max-width: 760px; }
.carta__item { padding-block: clamp(20px, 3vw, 30px); }
.carta__item + .carta__item { border-top: 1px solid var(--hairline-soft); }
.carta__item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}
.carta__item p { margin: 0; color: var(--foam-muted); font-size: 15.5px; }
.carta__note { margin: clamp(18px, 3vw, 26px) 0 0; font-size: 13.5px; color: var(--foam-muted); }

/* ---------- El lugar: texto + dos imágenes ---------- */

.lugar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.lugar__grid figure { margin: 0; }
.lugar__grid img {
  width: 100%;
  height: clamp(220px, 32vw, 360px);
  object-fit: cover;
  border-radius: var(--radius);
}
.lugar__grid figcaption { margin-top: 10px; font-size: 13px; color: var(--foam-muted); }

/* ---------- Fichas: filas calmas sobre panel medianoche ---------- */

.fichas { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.ficha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name link"
    "score score";
  gap: 12px 18px;
  align-items: center;
  padding: 20px 24px;
  background: var(--midnight);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
}
.ficha__name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}
.ficha__score { grid-area: score; display: flex; align-items: center; gap: 14px; }
.ficha__value { font-size: 15px; font-weight: 700; }
.ficha__value small { font-size: 13px; font-weight: 400; color: var(--foam-muted); }
.ficha__link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.ficha__arrow { width: 14px; height: 14px; }

.stars { width: 108px; height: 20px; flex: none; }
.stars__base { fill: rgba(234, 244, 246, 0.16); }
.stars__fill { fill: var(--sand); }

.fichas__note { margin: 18px 0 0; font-size: 13.5px; color: var(--foam-muted); }

@media (min-width: 768px) {
  .ficha {
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    grid-template-areas: "name score link";
  }
}

/* ---------- Cierre ---------- */

.cierre { text-align: center; }
.cierre__inner p {
  margin: 0 auto clamp(24px, 3vw, 32px);
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--foam-muted);
}

/* ---------- Footer ---------- */

.footer { padding-block: 40px 48px; }
.footer p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: var(--foam-muted); max-width: 88ch; }
.footer a { color: var(--aqua); }
.footer a:hover { color: var(--foam); }
.footer__disclosure { color: var(--foam-muted); }

/* ---------- Movimiento sutil (solo si no se pide reducirlo) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .hero__media { animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__panel > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__panel > :nth-child(2) { animation-delay: 0.07s; }
  .hero__panel > :nth-child(3) { animation-delay: 0.14s; }
  .hero__panel > :nth-child(4) { animation-delay: 0.21s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Móvil: foto primero, héroe compacto (<= 45svh) ---------- */

@media (max-width: 767px) {
  .hero { padding-block: 12px 22px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero__media img { height: clamp(140px, 20svh, 220px); }
  .hero__credit { display: none; }
  .hero__panel { padding-top: 12px; }
  .eyebrow { margin-bottom: 5px; font-size: 10.5px; }
  .hero__title { margin-bottom: 8px; font-size: clamp(27px, 7.5vw, 34px); }
  .hero__promise { margin-bottom: 12px; font-size: 13.5px; line-height: 1.5; }
  .btn { padding: 11px 20px; font-size: 14px; }

  .lugar__grid { grid-template-columns: 1fr; }
  .lugar__grid img { height: clamp(200px, 52vw, 300px); }

  .ficha { padding: 16px 18px; }
}

@media (max-width: 420px) {
  :root { --nav-h: 58px; }
  .nav__brand { font-size: 17px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 12.5px; }
  html { scroll-padding-top: calc(var(--nav-h) + 20px); }
}

@media (max-width: 767px) and (max-height: 720px) {
  .hero__media img { height: clamp(120px, 17svh, 180px); }
  .hero__title { font-size: 28px; }
  .hero__promise { font-size: 13px; }
}
