/* Cabañas Castro · Arquetipo 08 (Olas líquidas), versión "cola de ballena":
   azul profundo del Pacífico, coral, arena clara y espuma; olas SVG que se mueven entre secciones. */
:root {
  --deep: #0c2540;
  --deep-2: #12365c;
  --sand: #f7efe2;
  --foam: #e6f3f4;
  --ink: #0c2540;
  --mute: #4f6377;
  --coral: #ff6f59;
  --coral-dk: #e5533e;
  --line: rgba(12, 37, 64, .14);
  --ph: #c4472f;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Outfit", 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; background: var(--sand); color: var(--ink); font: 400 1.02rem/1.65 var(--sans); padding-bottom: 64px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--coral); 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(--coral); color: #fff; font-size: .78rem; text-align: center; }
.demo-strip a { color: #fff; }
.demo-strip .kdk { font-weight: 800; }
.demo-wa { border: 1px solid rgba(255,255,255,.8); border-radius: 99px; padding: .1rem .7rem; text-decoration: none; font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(16px, 4vw, 44px); background: rgba(12,37,64,.92); color: var(--sand); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 400 1.25rem/1 var(--serif); text-decoration: none; margin: 0; }
.tail { width: 30px; height: 18px; color: var(--coral); }
.nav-links { display: none; gap: 1.6rem; margin-left: 1.6rem; font-weight: 600; font-size: .92rem; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--coral); }
.lang { margin-left: auto; display: flex; border: 1px solid rgba(247,239,226,.35); border-radius: 99px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--sand); font: 800 .78rem var(--sans); padding: .38rem .75rem; border-radius: 99px; cursor: pointer; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--sand); color: var(--deep); }
@media (min-width: 820px) { .nav-links { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 99px; font: 800 .95rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 50px; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dk); }
.btn-foam { background: rgba(230,243,244,.92); color: var(--deep); }
.btn-line { border-color: var(--deep); color: var(--deep); background: none; }
.btn-line:hover { background: var(--deep); color: var(--sand); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; padding-bottom: 80px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,37,64,.88) 0%, rgba(12,37,64,.55) 55%, rgba(12,37,64,.2) 100%); }
.hero-content { position: relative; padding: clamp(2rem, 6vw, 4rem) clamp(16px, 4vw, 44px); max-width: 760px; }
.eyebrow { font: 800 .76rem var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--coral); margin: 0 0 .9rem; }
h1 { font: 400 clamp(2.6rem, 8vw, 5.4rem)/1.02 var(--serif); margin: 0 0 1rem; }
h1 em { font-style: normal; color: #ffd2c6; }
.sub { font-size: 1.12rem; max-width: 34rem; margin: 0 0 1.6rem; color: rgba(255,255,255,.88); }
.score { margin: 1.4rem 0 0; font-weight: 600; }
.hero-ref { position: absolute; right: 12px; top: 10px; margin: 0; font-size: .7rem; font-style: italic; opacity: .85; }

/* ---------- Olas ---------- */
.wave { display: block; width: 100%; height: 70px; }
.wave-hero { position: absolute; left: 0; bottom: -1px; height: 90px; }
.wave-hero .w1 { fill: rgba(247,239,226,.55); animation: drift 9s ease-in-out infinite alternate; }
.wave-hero .w2 { fill: var(--sand); animation: drift 7s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.wave-hero path { transform-box: fill-box; }

/* ---------- Secciones ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(2.6rem, 7vw, 5rem) clamp(16px, 4vw, 44px); scroll-margin-top: 70px; }
h2 { font: 400 clamp(2rem, 5.4vw, 3.4rem)/1.05 var(--serif); margin: 0 0 .7rem; }
.head { max-width: 720px; margin-bottom: 1.8rem; }
.head p:not(.eyebrow) { color: var(--mute); margin: 0; }
.note { font-size: .86rem; color: var(--mute); margin: 1.2rem 0 0; }
.note a { color: var(--coral-dk); font-weight: 600; }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border-radius: 26px 26px 26px 6px; padding: 1.5rem; box-shadow: 0 18px 40px -30px rgba(12,37,64,.6); border: 1px solid var(--line); transition: transform .25s, border-radius .4s; }
.card:hover { transform: translateY(-4px); border-radius: 6px 26px 26px 26px; }
.ic { font-size: 1.8rem; }
.card h3 { font: 400 1.35rem/1.2 var(--serif); margin: .5rem 0 .4rem; }
.card p { margin: 0; color: var(--mute); }
.card ul { margin: 0; padding-left: 1.1rem; }
.card-ph { background: #fff8f4; border-style: dashed; border-color: rgba(196,71,47,.35); }
.band { margin: 2rem 0 0; position: relative; border-radius: 28px; overflow: hidden; }
.band img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.band figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-size: .78rem; font-style: italic; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
@media (max-width: 640px) { .band img { aspect-ratio: 4/3; } }

/* Reservar: banda azul entre dos olas */
.book-wrap { background: var(--deep); color: var(--sand); position: relative; scroll-margin-top: 50px; }
.wave-top, .wave-bottom { position: absolute; left: 0; height: 60px; }
.wave-top { top: -59px; fill: var(--deep); }
.wave-bottom { bottom: -59px; fill: var(--deep); }
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.book > div p { color: rgba(247,239,226,.8); }
.book .ph, .book .ph * { color: #ffb4a3; }
@media (min-width: 940px) { .book { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } }
.form { display: grid; gap: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(247,239,226,.18); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); }
.form label { display: grid; gap: .35rem; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(247,239,226,.75); min-width: 0; }
.form input, .form select { font: 400 1rem var(--sans); color: var(--sand); background: rgba(0,0,0,.25); border: 1px solid rgba(247,239,226,.25); border-radius: 14px; padding: .75rem .7rem; width: 100%; min-width: 0; min-height: 48px; color-scheme: dark; }
.form input:focus, .form select:focus { outline: 3px solid rgba(255,111,89,.55); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.small { font-size: .8rem; color: rgba(247,239,226,.7); margin: 0; text-align: center; }

.where { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding-top: clamp(5rem, 10vw, 7rem); }
@media (min-width: 940px) { .where { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.facts { margin: 0 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; }
.facts dd { margin: 0; }
.map { border-radius: 28px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.4rem 1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: .7rem; font: 400 1.6rem/1 var(--serif); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; }

.footer { background: var(--deep); color: rgba(247,239,226,.75); padding: 2.4rem clamp(16px, 4vw, 44px) 3rem; font-size: .86rem; }
.footer p { margin: 0 auto .6rem; max-width: 1180px; }
.footer a { color: var(--sand); }
.footer .brand { color: var(--sand); margin-bottom: 1rem; display: block; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(12,37,64,.95); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 99px; font-weight: 800; text-decoration: none; color: #fff; background: var(--coral); }
@media (min-width: 860px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

.js-reveal .reveal { opacity: 0; transform: translateY(14px); 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; } .wave-hero path { animation: none; } .btn:hover, .card:hover { transform: none; } }
