/* Sunny House · dirección A «Beach house morning»
   Shape system: rectangles 18px soft, interactive controls full pill,
   number chips + stars are circles. One theme: sun-washed light (brand-locked). */

:root {
  --butter: #F7D774;
  --butter-soft: #FBEDBB;
  --butter-paper: #FCF6E4;
  --sky: #A8D5E5;
  --sky-wash: #E9F4F9;
  --sky-ink: #1F6480;      /* interactive accent, AA on white */
  --ink: #272219;          /* charcoal ink */
  --ink-soft: #5D5748;
  --paper: #FFFFFF;
  --line: rgba(39, 34, 25, 0.14);
  --star-fill: #E0A63A;
  --star-back: #D9D3C4;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-print: 0 24px 48px -24px rgba(39, 34, 25, 0.35);
  --shadow-pop: 0 14px 26px -16px rgba(39, 34, 25, 0.38);
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

::selection { background: var(--butter); color: var(--ink); }

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

.ico {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus-visible { top: 1rem; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.ico-sun { color: var(--star-fill); width: 1.3em; height: 1.3em; }

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
  white-space: nowrap;
}

.topnav a {
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  padding: 0.25rem 0;
}

.topnav a:hover { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 4px; }

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

.hero {
  position: relative;
  background: linear-gradient(180deg, #E7F4F9 0%, #F8EFD0 72%, #FFFDF6 100%);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: min(60vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(247, 215, 116, 0.55), rgba(247, 215, 116, 0) 72%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding-block: 1.5rem 1.4rem;
}

.hero-eyebrow {
  display: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-promise {
  max-width: 34ch;
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  margin-top: 0.35rem;
  background: var(--ink);
  color: #FFF9EA;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  height: clamp(110px, 17svh, 170px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px #FFFFFF, var(--shadow-print);
}

/* ---------- Section scaffolding ---------- */

section { scroll-margin-top: 76px; }

.section-head { max-width: 65ch; margin-bottom: 2rem; }

.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; }

.section-head p { margin-top: 0.6rem; color: var(--ink-soft); }

/* ---------- La carta ---------- */

.carta { padding-block: clamp(3rem, 8vw, 5.5rem); }

.carta-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.menu-board {
  list-style: none;
  margin: 0;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--butter);
  border: 1px solid rgba(39, 34, 25, 0.1);
  border-radius: var(--radius);
}

.menu-board li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}

.menu-board li + li { border-top: 1px solid rgba(39, 34, 25, 0.14); }

.menu-board .num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--paper);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.menu-board .dish {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
}

.carta-photo { margin: 0; }

.carta-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

/* ---------- Ubicaciones ---------- */

.ubicaciones {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: var(--sky-wash);
}

[hidden] { display: none !important; }

.loc-cards { display: grid; }

.loc-card {
  grid-area: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 640px;
  box-shadow: var(--shadow-pop);
}

.loc-card h3 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 700; }

.loc-address {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.loc-address .ico { margin-top: 0.2em; }

.loc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--sky-ink);
  text-underline-offset: 4px;
}

.loc-link:hover { text-decoration-thickness: 2px; }

.loc-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
}

.loc-hours .ico { margin-top: 0.2em; }

/* ---------- Nosotros ---------- */

.nosotros {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(180deg, #FFFDF6 0%, var(--butter-paper) 100%);
}

.nosotros-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.nosotros-photo { margin: 0; order: 0; }

.nosotros-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px #FFFFFF, var(--shadow-print);
}

.nosotros-copy p {
  margin-top: 0.9rem;
  max-width: 42ch;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 600;
}

.badge-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-weight: 700;
}

.stars { position: relative; display: inline-block; line-height: 0; }

.stars-back, .stars-front {
  display: inline-flex;
  gap: 2px;
  white-space: nowrap;
}

.stars-front {
  position: absolute;
  inset: 0 auto 0 0;
  width: 86%; /* 4.3 / 5 */
  overflow: hidden;
}

.star {
  width: 18px;
  height: 18px;
  flex: none;
}

.stars-back .star { fill: none; stroke: var(--star-back); stroke-width: 2; stroke-linejoin: round; }
.stars-front .star { fill: var(--star-fill); stroke: var(--star-fill); stroke-width: 1; stroke-linejoin: round; }

.badge-pet .ico { color: var(--sky-ink); }

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

.footer {
  background: var(--butter-paper);
  border-top: 1px solid var(--line);
  padding: clamp(2.2rem, 6vw, 3.5rem) 0 clamp(4.5rem, 10vw, 3rem);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-line { margin-top: 0.5rem; color: var(--ink-soft); font-weight: 600; }

.colophon {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
  max-width: 72ch;
}

.colophon a { color: var(--sky-ink); text-underline-offset: 3px; }

/* ---------- Location switcher pill ---------- */

.loc-switcher {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  gap: 0.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  box-shadow: var(--shadow-pop);
}

.loc-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.loc-switcher button.is-on { background: var(--ink); color: #FFF9EA; }

.loc-switcher button:not(.is-on):hover { background: var(--butter-soft); }

.loc-switcher button:active { transform: translateY(1px); }

/* ---------- Desktop ---------- */

@media (min-width: 760px) {
  .hero-in {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    padding-block: clamp(3rem, 7vh, 4.5rem) clamp(3rem, 7vh, 4.5rem);
    min-height: min(640px, calc(100svh - 64px));
  }

  .hero-eyebrow { display: block; margin-bottom: 1rem; }

  .hero-photo img { height: clamp(320px, 52svh, 480px); }

  .carta-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .nosotros-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .nosotros-photo { order: 0; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.6rem; }
}

/* ---------- Motion (calm, brand-appropriate) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

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

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