/* Mar y Tierra Restaurante Doña Flor · Arquetipo 10 ("Spline premium" liviano), versión "turquesa y coral":
   arena clara, turquesa del Pacífico norte, coral; tarjetas y foto con profundidad 3D hecha solo con CSS (perspective). */
:root {
  --bg: #fff8ef;
  --bg-2: #fdeedd;
  --ink: #10313a;
  --mute: #4d6a72;
  --teal: #0fa3a3;
  --teal-dk: #0b7f80;
  --coral: #ff6b57;
  --sun: #ffc857;
  --line: rgba(16, 49, 58, .12);
  --ph: #c4452f;
  --disp: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.02rem/1.65 var(--sans); padding-bottom: 64px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip-link:focus { left: 8px; top: 8px; }
.lang-en [data-lang="es"], .lang-es [data-lang="en"] { display: none !important; }
.ph, .ph * { color: var(--ph); font-style: italic; }

.demo-strip { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; align-items: center; padding: .45rem 16px; background: var(--ink); color: #fff; font-size: .78rem; text-align: center; }
.demo-strip a { color: #fff; }
.demo-strip .kdk { font-weight: 800; }
.demo-wa { background: var(--teal); border-radius: 99px; padding: .12rem .75rem; text-decoration: none; font-weight: 700; }

.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(16px, 4vw, 44px); background: rgba(255,248,239,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.nav.is-solid { box-shadow: 0 10px 30px -22px rgba(16,49,58,.5); }
.brand { font: 700 1.5rem/1 var(--disp); text-decoration: none; margin: 0; }
.brand b { color: var(--coral); }
.nav-links { display: none; gap: 1.6rem; margin-left: 1.6rem; font-weight: 700; font-size: .92rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--teal); }
.lang { margin-left: auto; display: flex; background: #fff; border-radius: 99px; padding: 3px; box-shadow: 0 4px 14px -8px rgba(16,49,58,.4); }
.lang button { border: 0; background: none; color: var(--ink); font: 800 .78rem var(--sans); padding: .38rem .78rem; border-radius: 99px; cursor: pointer; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--teal); color: #fff; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.4rem; border-radius: 16px; font: 800 .96rem var(--sans); text-decoration: none; cursor: pointer; border: 0; min-height: 50px; transition: transform .2s, box-shadow .2s; }
.btn-main { background: var(--coral); color: #fff; box-shadow: 0 6px 0 #d9503e; }
.btn-main:hover { transform: translateY(2px); box-shadow: 0 4px 0 #d9503e; }
.btn-alt { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line), 0 0 0 2px var(--ink) inset; }
.btn-alt:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--ink) inset; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* HERO con foto inclinada en 3D (solo CSS) */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(16px, 4vw, 44px); align-items: center; perspective: 1400px; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(15,163,163,.22), transparent 65%); z-index: -1; }
.hero-photo { margin: 0; order: 2; transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-photo:hover { transform: rotateY(-4deg) rotateX(2deg); }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 26px; border: 8px solid #fff; box-shadow: 30px 40px 60px -30px rgba(16,49,58,.55), -10px -10px 0 var(--sun); }
.hero-photo figcaption { font-size: .74rem; font-style: italic; color: var(--mute); margin: .7rem 0 0 .5rem; transform: translateZ(30px); }
.kicker { display: inline-block; font: 800 .76rem var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--teal-dk); background: rgba(15,163,163,.12); padding: .3rem .8rem; border-radius: 99px; margin: 0 0 1rem; }
h1 { font: 700 clamp(2.7rem, 8vw, 5rem)/1.02 var(--disp); margin: 0 0 1rem; }
h1 b { color: var(--teal); }
.sub { color: var(--mute); font-size: 1.12rem; max-width: 34rem; margin: 0 0 1.3rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; padding: .4rem .9rem; border-radius: 99px; background: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 4px 14px -8px rgba(16,49,58,.4); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--mute); }
.is-open .dot { background: #1fb36b; box-shadow: 0 0 0 4px rgba(31,179,107,.2); }
.is-closed .dot { background: var(--coral); }
.stats { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.stats li { display: grid; background: #fff; border-radius: 18px; padding: .8rem 1.1rem; box-shadow: 0 14px 30px -20px rgba(16,49,58,.5); transform: rotate(-1.5deg); }
.stats li:nth-child(2) { transform: rotate(1.5deg); }
.stats b { font: 700 1.9rem/1 var(--disp); color: var(--coral); }
.stats span { font-size: .8rem; color: var(--mute); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 78vh; } }
@media (max-width: 899px) { .hero-photo { transform: rotateY(-8deg) rotateX(4deg); } }

/* Secciones */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(2.6rem, 7vw, 5rem) clamp(16px, 4vw, 44px); scroll-margin-top: 70px; }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-bottom: 2rem; align-items: start; }
.num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--sun); font: 700 1.1rem var(--disp); margin: 0; transform: rotate(-6deg); }
h2 { font: 700 clamp(2rem, 5.5vw, 3.2rem)/1.05 var(--disp); margin: 0 0 .4rem; }
.lede { margin: 0; color: var(--mute); max-width: 40rem; }
.note { font-size: .86rem; color: var(--mute); margin: 1.2rem 0 0; }
.note a { color: var(--teal-dk); font-weight: 800; }

/* Tarjetas de platos con profundidad */
.dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; perspective: 1000px; }
@media (min-width: 680px) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dish { position: relative; background: #fff; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 20px 40px -30px rgba(16,49,58,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform-style: preserve-3d; }
.dish:hover { transform: rotateX(8deg) rotateY(-8deg) translateY(-4px); box-shadow: 18px 30px 50px -30px rgba(16,49,58,.6); }
.count { position: absolute; top: -12px; right: 14px; background: var(--teal); color: #fff; font: 700 .95rem var(--disp); padding: .25rem .65rem; border-radius: 99px; transform: translateZ(30px); }
.dish h3 { font: 700 1.35rem/1.15 var(--disp); margin: 0 0 .3rem; }
.dish p { margin: 0; color: var(--mute); font-size: .95rem; }

.said-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 900px) { .said-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; } }
.said-photo { margin: 0; }
.said-photo img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 26px; }
.said-photo figcaption { font-size: .74rem; font-style: italic; color: var(--mute); margin-top: .5rem; }
.said-text .num { margin-bottom: 1rem; }
.said { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.said li { background: #fff; border-radius: 18px; padding: .9rem 1.1rem .9rem 2.8rem; position: relative; font-weight: 700; box-shadow: 0 10px 24px -20px rgba(16,49,58,.6); }
.said li::before { content: "★"; position: absolute; left: 1.1rem; top: .9rem; color: var(--sun); }

.ask { background: linear-gradient(160deg, rgba(15,163,163,.1), rgba(255,107,87,.08)); border-radius: 40px; }
.form { display: grid; gap: 1rem; max-width: 640px; background: #fff; border-radius: 26px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 30px 60px -40px rgba(16,49,58,.6); }
.form label { display: grid; gap: .35rem; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); min-width: 0; }
.form input, .form select { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: .75rem .7rem; width: 100%; min-width: 0; min-height: 48px; }
.form input:focus, .form select:focus { outline: none; border-color: var(--teal); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.small { font-size: .8rem; color: var(--mute); margin: 0; text-align: center; }

.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
@media (min-width: 900px) { .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.visit-info .num { margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px -20px rgba(16,49,58,.6); }
.hours th, .hours td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today { background: rgba(15,163,163,.12); font-weight: 800; }
.facts { margin: 1.2rem 0 1.4rem; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .25rem; font-weight: 800; }
.facts dd { margin: 0; }
.map { border-radius: 26px; overflow: hidden; min-height: 380px; border: 8px solid #fff; box-shadow: 0 30px 60px -40px rgba(16,49,58,.6); }
.map iframe { width: 100%; height: 100%; min-height: 364px; border: 0; display: block; }

.footer { max-width: 1200px; margin: 0 auto; padding: 2.4rem clamp(16px, 4vw, 44px) 3rem; color: var(--mute); font-size: .86rem; }
.footer p { margin: 0 0 .6rem; }
.footer .brand { display: block; color: var(--ink); margin-bottom: 1rem; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(255,248,239,.95); box-shadow: 0 -10px 30px -20px rgba(16,49,58,.5); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 16px; font-weight: 800; text-decoration: none; color: #fff; background: var(--coral); }
.mobile-bar .mb-alt { background: var(--ink); }
@media (min-width: 860px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-photo, .hero-photo:hover { transform: none; } .dish:hover { transform: none; } }
