/* ==========================================================
   Restaurante El Oasis (Tárcoles) · propuesta privada
   Arquetipo 08 (Olas / Liquid wave) · versión "oasis":
   aqua pálido + teal profundo + amarillo sol, olas SVG animadas con CSS,
   manchas líquidas, letra redonda (Outfit) y notas a mano (Caveat).
   ========================================================== */

:root {
  --bg:      #e6f7f5;   /* aqua pálido */
  --bg-2:    #fdf6e8;   /* arena clara */
  --deep:    #0b5c5c;   /* teal profundo */
  --deep-2:  #084646;
  --ink:     #072a2c;
  --soft:    #3d5c5d;
  --mint:    #00bfa5;
  --sun:     #ffd166;
  --sun-2:   #f4a93b;
  --wa:      #1fbf5c;
  --line:    rgba(7, 42, 44, .12);
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:    "Caveat", "Segoe Script", cursive;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.6 var(--sans); padding-bottom: 72px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 7vw, 3.4rem); color: var(--deep); }
h1 em, h2 em { font-style: normal; color: var(--mint); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.lang-es [data-lang="en"], html.lang-en [data-lang="es"] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 3px; }
.hand { font: 600 1.55rem/1 var(--hand); color: var(--sun-2); margin: 0 0 .5rem; transform: rotate(-2deg); display: inline-block; }

/* ---- Franja de demo ---- */
.demo-strip { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; align-items: center; padding: .5rem 1rem; font: 400 .78rem/1.35 var(--sans); text-align: center; background: var(--deep-2); color: #e6f7f5; position: relative; z-index: 60; }
.demo-strip a { color: #fff; font-weight: 600; }
.demo-strip .kdk { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.demo-strip .kdk svg { border-radius: 3px; }
.demo-wa { background: var(--sun); color: var(--deep-2) !important; padding: .2rem .6rem; border-radius: 99px; text-decoration: none; white-space: nowrap; }

/* ---- Navegación ---- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(230, 247, 245, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px -14px rgba(7, 42, 44, .5); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand span { display: flex; flex-direction: column; font: 800 1.25rem/1 var(--display); color: var(--deep); }
.brand small { font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-top: .2rem; }
.lang { margin-left: auto; display: inline-flex; background: #fff; border-radius: 99px; padding: 3px; box-shadow: 0 2px 8px -4px rgba(7, 42, 44, .4); }
.lang button { font: 700 .78rem var(--sans); color: var(--soft); background: none; border: 0; padding: .4rem .75rem; border-radius: 99px; cursor: pointer; min-width: 42px; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--deep); color: #fff; }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .85rem 1.4rem; border-radius: 99px; font: 600 1rem var(--sans); text-decoration: none; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 191, 92, .9); }
.btn-sand { background: var(--sun); color: var(--deep-2); }
.btn-teal { background: var(--deep); color: #fff; }

/* ---- Manchas líquidas (blobs) ---- */
.blob { position: absolute; z-index: 0; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; filter: blur(2px); animation: blob 16s ease-in-out infinite; pointer-events: none; }
.blob-1 { width: 340px; height: 340px; background: rgba(255, 209, 102, .55); top: -80px; right: -90px; }
.blob-2 { width: 260px; height: 260px; background: rgba(0, 191, 165, .25); bottom: 60px; left: -110px; animation-delay: -6s; }
@keyframes blob {
  0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); }
  50%      { border-radius: 62% 38% 41% 59% / 55% 62% 38% 45%; transform: translate(12px, 16px) rotate(12deg); }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 2.4rem 0 7rem; background: linear-gradient(180deg, #fff6df 0%, var(--bg) 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.hero-title { font-size: clamp(2.8rem, 12vw, 5.6rem); color: var(--deep); }
.hero-title em { color: var(--sun-2); white-space: nowrap; }
.hero-sub { max-width: 32rem; margin: 1.2rem 0 1.6rem; font-size: 1.1rem; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 1.4rem 0 0; padding: .45rem .9rem; border-radius: 99px; background: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 4px 14px -8px rgba(7, 42, 44, .4); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9bb; }
.is-open .dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(31, 191, 92, .2); }
.is-closed .dot { background: #e0794f; }
.hero-fig { margin: 0; position: relative; animation: bob 7s ease-in-out infinite; }
.hero-fig img { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; aspect-ratio: 1; object-fit: cover; width: 100%; filter: saturate(.92); box-shadow: 0 40px 60px -30px rgba(7, 42, 44, .55); }
.hero-fig figcaption, .croc figcaption { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); font: 600 .72rem var(--sans); background: rgba(255, 255, 255, .92); color: var(--deep); padding: .25rem .7rem; border-radius: 99px; white-space: nowrap; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---- Olas SVG (divisores animados con CSS) ---- */
.wave { position: absolute; left: 0; width: 200%; height: 90px; display: block; pointer-events: none; }
.wave-hero { bottom: -1px; height: 120px; }
.wave-hero .w1 { fill: rgba(0, 191, 165, .35); }
.wave-hero .w2 { fill: var(--bg-2); }
.wave { animation: drift 18s linear infinite; }
.wave-hero { animation-duration: 14s; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---- Secciones ---- */
.section { position: relative; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.head { margin-bottom: 2.2rem; }
.fineprint { font-size: .85rem; color: var(--soft); margin-top: 1.6rem; }
.ph { color: #b26a12; font-style: italic; font-size: .95rem; }
.price { font: 700 1rem var(--display); color: var(--deep); margin: .4rem 0 0; }

/* ---- Platos ---- */
.platos { background: var(--bg-2); }
.cards { display: grid; gap: 2.4rem; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.card h3 { font-size: 1.6rem; color: var(--deep); margin: 1.1rem 0 .4rem; }
.card p { margin: 0 0 .3rem; color: var(--soft); }
.liquid { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 42% 58% 48% 52% / 38% 44% 56% 62%; box-shadow: 0 24px 40px -26px rgba(7, 42, 44, .6); background: #cfe9e5; }
.liquid.l2 { border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%; }
.liquid.l3 { border-radius: 48% 52% 38% 62% / 56% 42% 58% 44%; }
.liquid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .liquid img { transform: scale(1.06); }
.ph-box { display: grid; place-items: center; text-align: center; padding: 1rem; color: #b26a12; font-style: italic; background: repeating-linear-gradient(45deg, #f6ecd5 0 14px, #fbf3e2 14px 28px); }

/* aparición "ola": la imagen emerge desde abajo con borde ondulado */
.js-reveal .card .liquid { clip-path: inset(100% 0 0 0 round 40%); transition: clip-path 1s cubic-bezier(.22, 1, .36, 1); }
.js-reveal .card.is-in .liquid { clip-path: inset(0 0 0 0 round 0); }

/* ---- Menú (fondo teal entre olas) ---- */
.menu { background: var(--deep); color: #e6f7f5; padding-block: clamp(6rem, 12vw, 8rem); overflow: hidden; }
.menu .wave-top { top: -1px; fill: var(--bg-2); }
.menu .wave-bottom { bottom: -1px; fill: var(--bg); animation-direction: reverse; }
.menu h2 { color: #fff; }
.menu h2 em { color: var(--sun); }
.menu-grid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; } }
.menu-cat { background: rgba(255, 255, 255, .07); border-radius: 26px; padding: 1.4rem 1.3rem; }
.menu-cat h3 { font-size: 1.6rem; color: var(--sun); display: flex; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.menu-cat h3 small { font: 600 .8rem var(--sans); color: #bfe6e1; }
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-cat li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed rgba(230, 247, 245, .25); font-size: 1.1rem; font-weight: 500; }
.menu-cat li:last-child { border-bottom: 0; }
.menu-cat li b { color: var(--sun); white-space: nowrap; font-weight: 600; font-size: .98rem; }
.menu-cat li.ph { color: #ffd9a3; }
.menu-foot { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.menu-foot p { margin: 0; color: #bfe6e1; max-width: 34rem; }

/* ---- Cómo llegar ---- */
.llegar-grid { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .llegar-grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.llegar h2 { margin-bottom: 1rem; }
.addr { display: flex; gap: .6rem; font-size: 1.05rem; color: var(--soft); margin: 0; }
.addr .ico { color: var(--deep); margin-top: .25rem; }
.nav-btns { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 2rem; }
.nav-btns .btn { flex: 1 1 140px; }
.croc { position: relative; aspect-ratio: 3 / 2; }
.map { border-radius: 32px; overflow: hidden; min-height: 360px; box-shadow: 0 30px 50px -30px rgba(7, 42, 44, .6); border: 6px solid #fff; background: #cfe9e5; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---- Horario + contacto ---- */
.horario { background: var(--bg-2); padding-top: clamp(6rem, 12vw, 8rem); }
.horario .wave-top { top: -1px; fill: var(--bg); }
.horario-grid { display: grid; gap: 2.6rem; }
@media (min-width: 900px) { .horario-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.horario h2 { margin-bottom: 1.4rem; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0 .35rem; }
.hours th, .hours td { padding: .75rem 1rem; background: #fff; text-align: left; font-weight: 500; }
.hours th { border-radius: 16px 0 0 16px; }
.hours td { border-radius: 0 16px 16px 0; text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--deep); color: #fff; }
.hours tr.is-today th::after { content: attr(data-today); margin-left: .6rem; font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .08em; background: var(--sun); color: var(--deep-2); padding: .15rem .5rem; border-radius: 99px; vertical-align: middle; }
.contact-col { display: grid; gap: 1.4rem; }
.contact-card, .review-card { background: #fff; border-radius: 30px; padding: 1.6rem 1.5rem; box-shadow: 0 20px 40px -30px rgba(7, 42, 44, .6); }
.contact-big { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; font: 800 clamp(2.6rem, 12vw, 4rem)/1.05 var(--display); color: var(--deep); }
.contact-big .ico { width: .75em; height: .75em; color: var(--wa); }
.contact-big:hover { color: var(--mint); }
.contact-sub { margin: .4rem 0 0; color: var(--soft); }
.review-card { background: linear-gradient(135deg, #fff, #fff6df); }
.rv-score { font: 800 2.2rem var(--display); color: var(--deep); margin: 0 0 .4rem; display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.rv-score span { color: var(--sun-2); }
.rv-score small { font: 500 .9rem var(--sans); color: var(--soft); }
.review-card p { color: var(--soft); }

/* ---- Footer ---- */
.footer { background: var(--deep-2); color: #bfe6e1; padding: 3rem 0 2.4rem; }
.footer-inner { display: grid; gap: 1rem; font-size: .88rem; }
.footer-brand { margin: 0; font: 800 1.6rem var(--display); color: #fff; display: flex; flex-direction: column; }
.footer-brand small { font: 500 .85rem var(--sans); color: #bfe6e1; margin-top: .3rem; }
.footer p { margin: 0; }
.footer a { color: var(--sun); }

/* ---- Barra fija del celular ---- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -6px 20px -12px rgba(7, 42, 44, .5); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.mb-wa { background: var(--wa); color: #fff; }
.mb-map { background: var(--deep); color: #fff; }
@media (min-width: 880px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---- Apariciones suaves (sin JS, todo visible) ---- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.34, 1.4, .64, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion: solo se apagan las olas que se mueven, las manchas y el vaivén */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .blob, .hero-fig { animation: none; }
}
