:root {
  --deep: #0b3d4a;
  --sea: #1f7a86;
  --foam: #bfe9e4;
  --sand: #f2c98c;
  --sun: #ffd27a;
  --rosa: #e2557a;
  --ink: #12222a;
  --paper: #fbf6ee;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Outfit", "Gill Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  color: #fff; transition: background 0.3s, padding 0.3s;
}
.nav.solid { background: rgba(11, 61, 74, 0.92); backdrop-filter: blur(8px); padding-block: 12px; }
.nav-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-cta { padding: 8px 16px; border-radius: 10px; background: var(--rosa); }
.lang { border: 1.5px solid rgba(255,255,255,0.6); background: none; color: #fff; border-radius: 8px; padding: 6px 10px; font: 600 0.85rem var(--body); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; animation: drift-in 18s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 32, 44, 0.6), rgba(8, 32, 44, 0) 65%),
    linear-gradient(0deg, rgba(8, 32, 44, 0.2), transparent 40%);
}
.hero-copy { position: relative; z-index: 1; padding: 120px clamp(20px, 6vw, 96px) 80px; max-width: 760px; }
.brand {
  font-family: var(--display); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em;
  font-size: clamp(4.2rem, 14vw, 10rem); color: var(--sun);
  text-shadow: 0 6px 30px rgba(18, 34, 42, 0.35);
}
.hero-kicker { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--foam); margin-bottom: 10px; }
.rating { margin-top: 22px; font-size: 0.95rem; opacity: 0.95; }
.rating span[aria-hidden] { color: var(--sun); letter-spacing: 2px; }
.hero-sub { font-size: 1.1rem; max-width: 30em; margin-top: 10px; opacity: 0.92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--rosa); color: #fff; }
.btn-main:hover { background: #cc3f66; }
.btn-line { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.8); background: none; }
.btn-line.dark { color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep); }

/* Scene motion */
.hero-copy > * { animation: up 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.hero-copy > :nth-child(4) { animation-delay: 0.35s; }
@keyframes drift-in { from { transform: scale(1.12); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }

/* Sections */
section:not(.hero) { padding: clamp(72px, 10vw, 120px) 0; scroll-margin-top: 20px; }
h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; }
.lead { font-size: 1.15rem; margin-top: 14px; max-width: 34em; color: #3d5560; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.favs { background: var(--paper) radial-gradient(circle at 100% 0, rgba(255, 210, 122, 0.35), transparent 40%); }
.favs h2, .menu h2, .reviews h2 { color: var(--deep); }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.fav { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(11, 61, 74, 0.1); }
.fav img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.fav:hover img { transform: scale(1.05); }
.fav figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; position: relative; background: #fff; }
.fav b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.fav em { font-style: normal; font-weight: 600; color: var(--rosa); }
.fav:nth-child(3n+2) { transition-delay: 0.08s; }
.fav:nth-child(3n) { transition-delay: 0.16s; }

.menu { background: #fff; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 20px; }
.cat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--sea); margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--deep); }
.dishes { list-style: none; }
.dishes li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1.5px dashed rgba(11, 61, 74, 0.2); }
.dishes span { display: grid; gap: 2px; }
.dishes b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.dishes i { font-style: normal; color: #5b6f78; font-size: 0.95rem; }
.dishes em { font-style: normal; font-weight: 600; color: var(--rosa); white-space: nowrap; }
.dishes .special { padding: 0; border: 0; margin-top: 14px; }
.special a {
  flex: 1; display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px;
  border-radius: 14px; text-decoration: none; background: #fde4ec; box-shadow: inset 0 0 0 2px var(--rosa);
  transition: transform 0.2s;
}
.special a:hover { transform: translateY(-2px); }
.special b { color: #b3264c; }
.special em { align-self: start; padding: 3px 10px; border-radius: 999px; background: var(--rosa); color: #fff !important; font-size: 0.85rem; }
.note { margin-top: 22px; color: #5b6f78; font-size: 0.9rem; }

.beach { padding-top: 0 !important; background: var(--paper); }
.beach figure { margin: 0; overflow: hidden; }
.beach img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.beach figure:hover img { transform: scale(1.05); }
.pano { height: clamp(240px, 42vw, 520px); }
.beach h2 { color: var(--deep); margin-top: clamp(48px, 7vw, 80px); }
.shots { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: 32px; align-items: end; }
.shots figure { border-radius: 18px; aspect-ratio: 4 / 5; }
.shots .tall { aspect-ratio: 3 / 4.4; }
.shots figure:nth-child(3) img { object-position: 20% 50%; }
.shots figure:nth-child(2) { transition-delay: 0.1s; }
.shots figure:nth-child(3) { transition-delay: 0.2s; }

.place { background: linear-gradient(180deg, var(--sea), var(--deep)); color: #fff; }
.place .lead { color: var(--foam); }
.place-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.facts { display: grid; gap: 22px; }
.facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun); font-weight: 600; }
.facts dd { font-size: 1.1rem; margin-top: 4px; }

.book { background: linear-gradient(180deg, var(--sand), #f7dfb6 60%, var(--paper)); }
.book h2 { color: var(--deep); }
.book-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 14px; background: #fff; padding: 28px; border-radius: 18px; box-shadow: 0 18px 40px rgba(11, 61, 74, 0.12); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--deep); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #d9e3e3; background: #fbfdfd;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31, 122, 134, 0.18); }
.row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.error { color: #b3264c; font-weight: 500; }
.error:empty { display: none; }
.done { background: var(--deep); color: #fff; padding: 32px; border-radius: 18px; display: grid; gap: 14px; justify-items: start; animation: up 0.6s both; }
.done h3 { font-family: var(--display); font-size: 2rem; color: var(--sun); }
.done .btn-line.dark { color: #fff; box-shadow: inset 0 0 0 2px #fff; }

.reviews { background: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.quotes blockquote { background: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 14px; align-content: space-between; box-shadow: 0 10px 26px rgba(11, 61, 74, 0.08); }
.quotes p { font-size: 1.05rem; line-height: 1.5; }
.quotes footer { font-weight: 600; color: var(--deep); font-size: 0.9rem; }
.quotes footer span { color: #e8a317; letter-spacing: 1px; }
.facts .small { font-size: 0.9rem; color: var(--foam); margin-top: 2px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 36px clamp(20px, 4vw, 48px); background: var(--ink); color: #c4d2d6; font-size: 0.9rem; }
.foot-main, .foot-side { display: grid; gap: 4px; }
.foot-side { text-align: right; }
.foot a { color: #c4d2d6; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--sun); }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav { gap: 12px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,30,45,0.55), rgba(11,30,45,0.1) 70%); }
  .hero { align-items: start; }
  .hero-copy { padding-top: 110px; }
  .menu-grid, .place-grid, .book-grid { grid-template-columns: 1fr; gap: 28px; }
  .menu-grid { gap: 0; }
  .fav-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fav figcaption { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .fav b { font-size: 0.98rem; }
  .quotes { grid-template-columns: 1fr; }
  .foot-side { text-align: left; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .shots figure:not(.tall) { aspect-ratio: 1; }
  .row { grid-template-columns: 1fr 1fr; }
  .row label:first-child { grid-column: 1 / -1; }
  .form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mexican touches */
:root { --sign: "Shrikhand", "Bricolage Grotesque", serif; --chalk: "Caveat", cursive; --marigold: #f6b500; }
.brand, .nav-brand, .foot-brand { font-family: var(--sign); font-weight: 400; letter-spacing: 0; }
.brand { font-size: clamp(3.6rem, 12vw, 8.6rem); line-height: 1; color: var(--marigold); text-shadow: 4px 4px 0 #b3264c, 0 10px 34px rgba(18, 34, 42, 0.4); }
h2 { font-family: var(--sign); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.hero-kicker { color: #ffe3a1; }

.papel {
  height: 84px; background: url("img/papel-picado.svg") repeat-x 0 0 / auto 84px;
  transform-origin: top; animation: flutter 5s ease-in-out infinite;
}
.papel-hero { position: absolute; z-index: 1; left: 0; right: 0; top: 64px; opacity: 0.95; }
.menu .papel { margin: calc(-1 * clamp(72px, 10vw, 120px)) 0 40px; }
@keyframes flutter { 50% { transform: skewX(1.5deg) scaleY(0.97); } }

.tiles { height: 34px; background: url("img/talavera.svg") repeat-x center / 34px 34px; }

.pizarra {
  margin-top: 36px; padding: 26px 28px; border-radius: 14px; color: #f4f1e8;
  background: radial-gradient(circle at 30% 20%, #3b4a44, #222c29 70%);
  border: 10px solid #8a5a33; box-shadow: inset 0 0 30px rgba(0,0,0,0.45), 0 14px 30px rgba(11, 61, 74, 0.18);
  font-family: var(--chalk); max-width: 560px; transform: rotate(-0.6deg);
}
.pizarra h3 { font-size: 2.1rem; font-weight: 700; color: #ffe3a1; }
.pizarra ul { list-style: none; margin-top: 8px; }
.pizarra li { display: flex; justify-content: space-between; gap: 14px; font-size: 1.5rem; border-bottom: 1px dashed rgba(244, 241, 232, 0.25); padding: 4px 0; }
.pizarra li b { font-weight: 700; color: #ffd0de; }
.pizarra p { font-size: 1.35rem; margin-top: 10px; color: var(--foam); }

.cat { color: #b3264c; }
.fav em, .dishes em { color: #c2185b; }

/* Música */
.nav-links a[aria-current="page"] { color: var(--marigold); }
.hero-short { min-height: 78svh; align-items: end; }
.hero-short .scene { object-position: 45% 40%; }
.hero-short .hero-copy { padding-top: 180px; padding-bottom: 64px; }
.lineup { background: var(--paper); }
.lineup h2 { color: var(--deep); }
.acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.act { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(11, 61, 74, 0.1); display: grid; grid-template-rows: auto 1fr; }
.act img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.act:nth-child(1) img { object-position: 50% 55%; }
.act:nth-child(2) img { object-position: 40% 40%; }
.act:nth-child(4) img { object-position: 50% 30%; }
.act-body { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.act-day { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #b3264c; }
.act h3 { font-family: var(--sign); font-weight: 400; font-size: 1.6rem; color: var(--deep); }
.act-genre { font-family: var(--chalk); font-size: 1.35rem; color: var(--sea); margin-top: -4px; }
.act-body p:last-child { color: #3d5560; }
.act:nth-child(even) { transition-delay: 0.1s; }
.lineup-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 18px; background: var(--deep); color: #fff; }
@media (max-width: 760px) {
  .acts { grid-template-columns: 1fr; }
}

.pizarra a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
