/* Café Sol · estilos propios. Sistema: Manrope, escala tipográfica Tailwind, espaciado en tokens fijos. */
:root {
  --s25: 2px; --s50: 4px; --s75: 8px; --s100: 12px; --s200: 16px; --s300: 24px;
  --s400: 32px; --s500: 40px; --s600: 48px; --s700: 64px; --s800: 80px; --s900: 96px;

  --cream: #FBF6EC;
  --paper: #F4EBDA;
  --card: #FFFDF8;
  --line: #E4D2B3;
  --ink: #1E140D;
  --ink-soft: #5A4636;
  --sun: #E9A23B;
  --sun-deep: #8F5208;
  --night: #131209;
  --night-text: #F6EEDF;
  --night-soft: #CDBFA9;
  --night-sun: #F0B04A;
  --focus: #1E140D;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px; line-height: 24px;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p, dd, li { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
section[id] { scroll-margin-top: var(--s900); }

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

.skip {
  position: absolute; left: var(--s200); top: var(--s200); z-index: 100;
  padding: var(--s100) var(--s200); background: var(--ink); color: var(--cream);
  font-weight: 600; border-radius: 12px; transform: translateY(-200%);
  transition: transform 700ms var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s200); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s400); } }

/* Iconos de trazo (estilo Phosphor regular) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 32px; height: 32px; color: var(--sun-deep); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s75);
  min-height: 48px; padding: var(--s75) var(--s100);
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease), color 700ms var(--ease), border-color 700ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: var(--s75) var(--s100); }
@media (min-width: 480px) { .btn-lg { padding: var(--s75) var(--s300); } }
.btn-sm { font-size: 14px; line-height: 20px; min-height: 44px; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #F2B355; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #3A281B; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* Navegación: isla flotante */
.site-header {
  position: fixed; top: var(--s300); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 var(--s100);
  pointer-events: none;
}
.pill {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: var(--s75);
  width: max-content; max-width: 100%;
  padding: var(--s50) var(--s50) var(--s50) var(--s200);
  border-radius: 9999px;
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(251, 246, 236, 0.85); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(30, 20, 13, 0.08);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s75);
  min-height: 44px; font-weight: 700; font-size: 18px; line-height: 28px; text-decoration: none;
  position: relative; z-index: 2;
}
.links { display: flex; align-items: center; gap: var(--s50); }
.links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s100);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  border-radius: 9999px; transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.links a:not(.btn):hover, .links a.is-current { color: var(--ink); background: rgba(233, 162, 59, 0.22); }
.menu-cta { display: none; }
.header-cta { position: relative; z-index: 2; border-radius: 9999px; padding: var(--s75) var(--s200); }
.label-short { display: none; }

.burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 9999px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.burger-line {
  position: absolute; left: 12px; top: calc(50% - 1px); width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 700ms var(--ease);
}
.burger-line:first-child { transform: translateY(-4px); }
.burger-line:last-child { transform: translateY(4px); }
.menu-open .burger-line:first-child { transform: rotate(45deg); }
.menu-open .burger-line:last-child { transform: rotate(-45deg); }

@media (max-width: 899px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .header-cta { padding: var(--s75) var(--s100); }
  /* Sin JS: los enlaces se ven en una segunda fila dentro de la isla */
  .pill { flex-wrap: wrap; justify-content: space-between; border-radius: 24px; width: 100%; max-width: 560px; padding: var(--s50) var(--s50) var(--s50) var(--s100); }
  .links { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; }
  /* Con JS: menú hamburguesa a pantalla completa */
  .js .pill { flex-wrap: nowrap; border-radius: 9999px; }
  .js .burger { display: inline-flex; }
  .js .brand { margin-right: auto; }
  .js .links {
    position: fixed; inset: 0; z-index: 1; order: 0; width: auto;
    flex-direction: column; justify-content: center; align-items: stretch; gap: var(--s75);
    padding: var(--s900) var(--s300) var(--s600);
    background: rgba(251, 246, 236, 0.94);
    -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px);
    visibility: hidden; opacity: 0;
    transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
  }
  .js.menu-open .links { visibility: visible; opacity: 1; transition: opacity 700ms var(--ease), visibility 0s; }
  .js .links a:not(.btn) {
    font-size: 30px; line-height: 36px; min-height: 56px; padding: var(--s75) var(--s100);
    color: var(--ink); border-radius: 16px;
  }
  .js .links .menu-cta { display: inline-flex; margin-top: var(--s300); }
  .js .links > a { transform: translateY(48px); opacity: 0; transition: transform 700ms var(--ease), opacity 700ms var(--ease); }
  .js.menu-open .links > a { transform: none; opacity: 1; }
  .js.menu-open .links > a:nth-child(1) { transition-delay: 100ms; }
  .js.menu-open .links > a:nth-child(2) { transition-delay: 150ms; }
  .js.menu-open .links > a:nth-child(3) { transition-delay: 200ms; }
  .js.menu-open .links > a:nth-child(4) { transition-delay: 250ms; }
  .js.menu-open .links > a:nth-child(5) { transition-delay: 300ms; }
  .menu-open body { overflow: hidden; }
}

/* Etiquetas y encabezados de sección */
.eyebrow {
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sun-deep);
}
.eyebrow-dark { color: var(--night-sun); }
.section-head { max-width: 680px; margin-bottom: var(--s500); }
.section-head h2 { margin-top: var(--s75); font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.lead { margin-top: var(--s200); font-size: 18px; line-height: 28px; }
@media (min-width: 768px) {
  .section-head h2 { font-size: 36px; line-height: 40px; }
}

/* Hero */
.hero { padding: calc(var(--s900) + var(--s400)) 0 var(--s800); }
.hero-grid { display: grid; gap: var(--s600); align-items: center; }
.hero-title {
  margin-top: var(--s200); max-width: 680px;
  font-size: 36px; line-height: 40px; letter-spacing: -0.02em;
  color: #000000;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: var(--s300); max-width: 680px; font-size: 18px; line-height: 28px; color: var(--ink-soft); }
.hero-actions { margin-top: var(--s400); }
.hero-actions .btn { width: 100%; }
.hero-facts { margin-top: var(--s400); display: grid; gap: var(--s100); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.hero-facts li { display: flex; align-items: flex-start; gap: var(--s75); }
.hero-facts .ico { color: var(--sun-deep); }
.hero-art { justify-self: center; width: 100%; max-width: 320px; }
.hero-art svg { width: 100%; height: auto; }
.rays { transform-origin: 200px 200px; animation: sway 8s var(--ease) infinite alternate; }
@keyframes sway { from { transform: rotate(0deg); } to { transform: rotate(22.5deg); } }

@media (min-width: 480px) { .hero-actions .btn { width: auto; } }
@media (min-width: 640px) { .hero-title { font-size: 48px; line-height: 1; } .hero-sub { font-size: 20px; line-height: 28px; } }
@media (min-width: 900px) {
  .hero { padding: calc(var(--s900) + var(--s700)) 0 var(--s900); }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s600); }
  .hero-art { max-width: 440px; }
}

/* Carta: pizarra oscura */
.carta { background: var(--night); color: var(--night-text); padding: var(--s800) 0; --focus: var(--night-sun); }
.carta .lead { color: var(--night-soft); }
.menu-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s300); max-width: 880px; }
.menu-item {
  padding: var(--s300); border-radius: 24px;
  background: #1F1F1F; border: 1px solid #313131;
}
.menu-line { display: flex; align-items: baseline; gap: var(--s100); }
.menu-line h3 { min-width: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.leader { flex: 1; min-width: var(--s200); border-bottom: 2px dotted #5C5446; transform: translateY(-6px); }
.price { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--night-sun); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-desc { margin-top: var(--s75); color: var(--night-soft); max-width: 560px; }
.menu-link {
  display: inline-flex; align-items: center; gap: var(--s75); min-height: 44px; margin-top: var(--s100);
  font-weight: 600; color: var(--night-sun); text-decoration: none;
  transition: gap 700ms var(--ease), color 700ms var(--ease);
}
.menu-link:hover { gap: var(--s100); color: #F6C36F; }
.menu-link:active { transform: translateY(1px); }
@media (min-width: 768px) {
  .carta { padding: var(--s900) 0; }
  .menu-item { padding: var(--s400); }
  .menu-line h3 { font-size: 24px; line-height: 32px; }
  .price { font-size: 30px; line-height: 36px; }
}

/* Reservas: la agenda la inserta el sistema de Corenia en [data-corenia-agenda] */
.reservas { padding: var(--s800) 0; background: var(--cream); }
.agenda-slot {
  max-width: 880px; padding: var(--s300); border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .reservas { padding: var(--s900) 0; }
  .agenda-slot { padding: var(--s400); }
}

/* Galería: imágenes ilustrativas del ambiente */
.galeria { padding: var(--s800) 0; background: var(--paper); }
.gallery { display: grid; gap: var(--s300); }
.shot { margin: 0; padding: var(--s100); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--line); }
.shot figcaption { padding: var(--s100) var(--s75) var(--s50); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 768px) {
  .galeria { padding: var(--s900) 0; }
  .gallery { grid-template-columns: 7fr 5fr; align-items: stretch; }
  .shot { display: flex; flex-direction: column; }
  .shot img { flex: 1; aspect-ratio: auto; min-height: 320px; }
}

/* Pasos */
.pasos { padding: var(--s800) 0; }
.steps { display: grid; gap: var(--s300); counter-reset: none; }
.step { padding: var(--s300); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 9999px;
  background: var(--sun); color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 700;
}
.step h3 { margin-top: var(--s200); font-size: 20px; line-height: 28px; }
.step p { margin-top: var(--s75); color: var(--ink-soft); }
.step a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 768px) {
  .pasos { padding: var(--s900) 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Frase grande con revelado por palabra */
.tagline { padding: var(--s900) 0; background: var(--paper); }
.tagline-text {
  max-width: 680px; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em;
  text-wrap: balance; color: var(--ink);
}
.tagline-text .w { transition: color 900ms var(--ease); }
.tagline.armed .tagline-text .w { color: #8A735F; }
.tagline.armed .tagline-text .w.on { color: var(--ink); }
@media (min-width: 768px) { .tagline-text { font-size: 48px; line-height: 1; max-width: 760px; } }

/* Visita */
.visita { padding: var(--s800) 0; }
.cards { display: grid; gap: var(--s300); }
.card { padding: var(--s300); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.card h3 { margin-top: var(--s200); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.card-big { margin-top: var(--s75); font-size: 20px; line-height: 28px; font-weight: 600; }
.map-slot { margin-top: var(--s300); }
.map-note { margin-top: var(--s75); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.map-frame { display: block; width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.contact-list { margin-top: var(--s75); display: grid; gap: var(--s100); }
.contact-list li { display: grid; }
.contact-list .contact-email { font-size: 16px; line-height: 24px; }
.contact-label { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; line-height: 28px; font-weight: 600;
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .visita { padding: var(--s900) 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-map { grid-row: span 2; grid-column: 2; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-map { grid-row: auto; grid-column: auto; }
}

/* Preguntas */
.faq { padding: var(--s800) 0; background: var(--paper); }
.faq-list { display: grid; gap: var(--s200); }
.faq-item { padding: var(--s300); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.faq-item dt { font-size: 18px; line-height: 28px; font-weight: 700; }
.faq-item dd { margin-top: var(--s75); color: var(--ink-soft); }
.faq-item a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .faq { padding: var(--s900) 0; }
  .faq-list { grid-template-columns: repeat(2, 1fr); gap: var(--s300); }
}

/* Cierre */
.cierre { background: var(--sun); padding: var(--s800) 0; }
.cierre-inner { max-width: 760px; text-align: center; display: grid; justify-items: center; gap: var(--s200); }
.cierre h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.cierre p { font-size: 18px; line-height: 28px; max-width: 560px; }
.cierre .btn { margin-top: var(--s200); }
@media (min-width: 768px) { .cierre { padding: var(--s900) 0; } .cierre h2 { font-size: 48px; line-height: 1; } }

/* Pie */
.site-footer { background: var(--night); color: var(--night-soft); padding: var(--s600) 0; --focus: var(--night-sun); }
.footer-grid { display: grid; gap: var(--s300); }
.footer-brand { color: var(--night-text); font-size: 20px; line-height: 28px; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s75) var(--s300); }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--night-text); font-weight: 600;
  text-underline-offset: 3px; transition: color 700ms var(--ease);
}
.footer-links a:hover { color: var(--night-sun); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* Página 404 */
.notfound { min-height: 100vh; display: grid; align-items: center; padding: calc(var(--s900) + var(--s400)) 0 var(--s800); }
.notfound-inner { max-width: 680px; }
.notfound .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s100); }
.notfound .hero-actions .btn { width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tagline.armed .tagline-text .w { color: var(--ink); }
}
