/* =====================================================================
   Waterfall and Sugar Cane "El Flaco" — Sistema de Diseño
   Concepto: "Selva & Caña" — verde profundo de montaña + oro de caña
   Sin frameworks externos. Mobile-first, accesible, listo para imprimir.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --jungle-950: #06231A;
  --jungle-900: #0B3227;
  --jungle-800: #0F3D2E;
  --jungle-700: #17553F;
  --jungle-600: #1F6E51;
  --jungle-500: #2E8B67;
  --jungle-300: #7CC3A4;
  --jungle-100: #D9EFE4;

  --cane-700: #A8761E;
  --cane-600: #C68F26;
  --cane-500: #E8B04B;
  --cane-400: #F2C572;
  --cane-200: #F9E4BC;

  --clay-600: #9E4326;
  --clay-500: #C25E3A;
  --clay-300: #E29A7C;

  --sky-500: #2C6E8F;
  --night-900: #0A1428;

  --cream-50:  #FDFBF6;
  --cream-100: #FAF7F0;
  --cream-200: #F1EBDF;
  --cream-300: #E2D9C8;
  --ink-900: #1A1D1B;
  --ink-700: #3B423E;
  --ink-500: #6B736E;
  --ink-300: #A6ADA8;

  --ok:   #2E8B67;
  --warn: #C68F26;
  --err:  #C0392B;
  --info: #2C6E8F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --fs-3xl: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  --fs-4xl: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem);

  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,30,20,.06), 0 2px 8px rgba(10,30,20,.05);
  --shadow-md: 0 4px 12px rgba(10,30,20,.08), 0 12px 32px rgba(10,30,20,.07);
  --shadow-lg: 0 10px 24px rgba(10,30,20,.10), 0 28px 64px rgba(10,30,20,.12);
  --shadow-glow: 0 0 0 4px rgba(232,176,75,.22);

  --wrap: 1200px;
  --wrap-narrow: 880px;
  --ease: cubic-bezier(.22,.8,.28,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--jungle-600); text-underline-offset: 3px; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--cane-500); outline-offset: 2px; border-radius: 4px; }

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

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--jungle-900);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-base); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cane-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cane-500), transparent); }
.lead { font-size: var(--fs-lg); color: var(--ink-500); max-width: 62ch; }
.muted { color: var(--ink-500); }
.small { font-size: var(--fs-sm); }
.tiny  { font-size: var(--fs-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--jungle-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) 0; }
.skip-link:focus { left: 0; }

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.section--cream { background: var(--cream-50); }
.section--sand  { background: linear-gradient(180deg, var(--cream-200), var(--cream-100)); }
.section--dark  { background: var(--jungle-900); color: rgba(217,239,228,.82); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream-50); }
.section--dark .lead { color: rgba(217,239,228,.78); }
.section--night { background: radial-gradient(120% 100% at 50% 0%, #14284F 0%, var(--night-900) 60%, #050B18 100%); color: rgba(219,228,247,.82); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .lead { color: rgba(219,228,247,.72); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-block: .4rem .6rem; }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--jungle-800); --btn-fg: var(--cream-50);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--gold  { --btn-bg: var(--cane-500); --btn-fg: var(--jungle-950); }
.btn--gold:hover { --btn-bg: var(--cane-400); }
.btn--clay  { --btn-bg: var(--clay-500); --btn-fg: #fff; }
.btn--wa    { --btn-bg: #25D366; --btn-fg: #04301A; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--jungle-800); border-color: rgba(15,61,46,.28); box-shadow: none; }
.btn--ghost:hover { --btn-bg: rgba(15,61,46,.06); }
.btn--onDark { --btn-bg: transparent; --btn-fg: var(--cream-100); border-color: rgba(250,247,240,.35); box-shadow: none; }
.btn--onDark:hover { --btn-bg: rgba(255,255,255,.10); }
.btn--sm { padding: .48rem 1rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--fs-sm); color: var(--jungle-700); text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. Chips / estados ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .78rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: var(--cream-200); color: var(--ink-700); border: 1px solid var(--cream-300);
}
.chip--gold  { background: var(--cane-200); border-color: var(--cane-400); color: var(--cane-700); }
.chip--green { background: var(--jungle-100); border-color: var(--jungle-300); color: var(--jungle-700); }
.chip--clay  { background: #FBE7DE; border-color: var(--clay-300); color: var(--clay-600); }
.chip--night { background: #DDE4F2; border-color: #A9B8D8; color: #2B3D66; }
.chip--soon  { background: #EEEEEC; border-color: #DADAD6; color: var(--ink-500); }

.status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pendiente  { background: #FDF3DC; color: #8A6410; }
.status--confirmada { background: #DCF0E6; color: #16624A; }
.status--completada { background: #DFE9F5; color: #1E4D74; }
.status--cancelada  { background: #FADEDA; color: #96301F; }
.status--abonado    { background: #FDF3DC; color: #8A6410; }
.status--pagado     { background: #DCF0E6; color: #16624A; }
.status--cancelado  { background: #FADEDA; color: #96301F; }

/* ---------- 7. Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cane-400); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--jungle-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(6,35,26,.72), transparent); pointer-events: none; }
.card__tags { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.card__price { position: absolute; bottom: .8rem; right: .8rem; z-index: 2; background: rgba(253,251,246,.94); padding: .32rem .8rem; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--jungle-900); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.card__body h3 { font-size: var(--fs-lg); }
.card__meta { display: flex; flex-wrap: wrap; gap: .85rem; font-size: var(--fs-xs); color: var(--ink-500); }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card__foot { margin-top: auto; padding-top: .5rem; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }

.panel { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.panel--tint { background: var(--cream-50); }
.panel--dark { background: var(--jungle-800); border-color: var(--jungle-700); color: var(--jungle-100); }
.panel--dark h3, .panel--dark h4 { color: #fff; }

.icon-card { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: .6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-card .bubble { width: 48px; height: 48px; border-radius: 14px; background: var(--jungle-100); display: grid; place-items: center; color: var(--jungle-700); }
.icon-card .bubble svg { width: 24px; height: 24px; }
.section--dark .icon-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(217,239,228,.78); }
.section--dark .icon-card .bubble { background: rgba(232,176,75,.15); color: var(--cane-400); }

/* ---------- 8. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,246,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--cream-300); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--jungle-900); }
.brand__sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cane-700); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__links a { padding: .55rem .8rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-700); text-decoration: none; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--cream-200); color: var(--jungle-800); }
.nav__links a[aria-current="page"] { background: var(--jungle-100); color: var(--jungle-800); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: .5rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--cream-300); align-items: center; justify-content: center; }
.nav__toggle i { position: relative; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--jungle-800); transition: background .2s; }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--jungle-800); transition: transform .3s var(--ease); }
.nav__toggle i::before { transform: translateY(-6px); }
.nav__toggle i::after  { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] i { background: transparent; }
.nav__toggle[aria-expanded="true"] i::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i::after  { transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-50); border-bottom: 1px solid var(--cream-300);
    padding: var(--sp-3) var(--sp-4) var(--sp-5); box-shadow: var(--shadow-lg);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .38s var(--ease), opacity .25s;
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .9rem 1rem; border-radius: var(--r-md); border-bottom: 1px solid var(--cream-200); }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 15% 0%, var(--jungle-700) 0%, var(--jungle-900) 45%, var(--jungle-950) 100%);
  color: var(--cream-100);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.4'%3E%3Cpath d='M60 8c22 16 30 40 22 62-6 17-20 30-38 42'/%3E%3Cpath d='M60 20c0 24-6 46-16 66'/%3E%3Cpath d='M62 30c10 10 16 26 14 42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 170px 170px;
}
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow--gold { width: 460px; height: 460px; background: var(--cane-500); opacity: .38; top: -150px; right: -110px; }
.hero__glow--teal { width: 420px; height: 420px; background: var(--jungle-500); opacity: .32; bottom: -190px; left: -130px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-block: .8rem 1rem; }
.hero h1 em { font-style: italic; color: var(--cane-400); }
.hero .eyebrow { color: var(--cane-400); }
.hero .lead { color: rgba(240,247,243,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.65rem; color: var(--cane-400); line-height: 1; }
.hero__stat span { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(240,247,243,.58); }
.hero__art { position: relative; }
.hero__frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); aspect-ratio: 4/5; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: -18px; bottom: 34px; background: var(--cream-50); color: var(--jungle-900); border-radius: var(--r-lg); padding: .85rem 1.05rem; box-shadow: var(--shadow-lg); max-width: 230px; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero__badge span { font-size: var(--fs-xs); color: var(--ink-500); }
@media (max-width: 600px) { .hero__badge { left: 8px; bottom: 8px; } }

.page-hero { background: linear-gradient(160deg, var(--jungle-900), var(--jungle-800) 65%, var(--jungle-700)); color: var(--cream-100); padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(2.6rem, 6vw, 4.4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--cane-500); filter: blur(110px); opacity: .22; top: -160px; right: -120px; }
.page-hero h1 { color: #fff; font-size: var(--fs-3xl); margin-block: .5rem .7rem; }
.page-hero .lead { color: rgba(240,247,243,.8); }
.page-hero .eyebrow { color: var(--cane-400); }
.crumbs { display: flex; gap: .45rem; font-size: var(--fs-xs); color: rgba(240,247,243,.6); margin-bottom: .3rem; flex-wrap: wrap; }
.crumbs a { color: rgba(240,247,243,.75); text-decoration: none; }
.crumbs a:hover { color: var(--cane-400); }

/* Buscador flotante */
.searchbar {
  position: relative; z-index: 5; margin-top: -3.2rem;
  background: rgba(255,255,255,.97); border: 1px solid var(--cream-300);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--sp-4);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: var(--sp-3); align-items: end;
}
@media (max-width: 900px) { .searchbar { grid-template-columns: 1fr 1fr; margin-top: -2rem; } .searchbar > .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .searchbar { grid-template-columns: 1fr; } }

/* ---------- 10. Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .32rem; }
.field > label, .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.field input, .field select, .field textarea, .input {
  width: 100%; padding: .72rem .9rem;
  border: 1.5px solid var(--cream-300); border-radius: var(--r-md);
  background: #fff; font-size: var(--fs-sm); color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jungle-500); box-shadow: var(--shadow-glow); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-300); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field .error { font-size: var(--fs-xs); color: var(--err); font-weight: 600; min-height: 1.1em; }
.field--wide { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); }
.checkline input { width: 18px; height: 18px; margin-top: .25rem; accent-color: var(--jungle-600); flex: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--jungle-900); margin-bottom: .8rem; }

.radio-cards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.radio-card { position: relative; border: 1.5px solid var(--cream-300); border-radius: var(--r-md); padding: .9rem 1rem; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; display: block; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card b { display: block; font-size: var(--fs-sm); color: var(--jungle-900); }
.radio-card span { font-size: var(--fs-xs); color: var(--ink-500); }
.radio-card:hover { border-color: var(--jungle-300); }
.radio-card:has(input:checked) { border-color: var(--jungle-600); background: var(--jungle-100); box-shadow: var(--shadow-glow); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--cane-500); outline-offset: 2px; }

.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: var(--fs-sm); border: 1px solid; }
.alert--ok   { background: #E7F5EE; border-color: #A9D9C3; color: #14563F; }
.alert--warn { background: #FDF4DE; border-color: #EBD08A; color: #7C5A10; }
.alert--err  { background: #FBE6E3; border-color: #EDB2A9; color: #8E2A1D; }
.alert--info { background: #E5EEF5; border-color: #A9C6DA; color: #1E4D74; }

/* ---------- 11. Wizard ---------- */
.steps { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.steps li { display: flex; align-items: center; gap: .5rem; padding: .48rem .85rem; border-radius: var(--r-pill); background: var(--cream-200); color: var(--ink-500); font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--cream-300); }
.steps li b { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink-500); display: grid; place-items: center; font-size: .7rem; border: 1px solid var(--cream-300); }
.steps li.is-active { background: var(--jungle-800); color: #fff; border-color: var(--jungle-800); }
.steps li.is-active b { background: var(--cane-500); color: var(--jungle-950); border-color: transparent; }
.steps li.is-done { background: var(--jungle-100); color: var(--jungle-700); border-color: var(--jungle-300); }
.steps li.is-done b { background: var(--jungle-600); color: #fff; border-color: transparent; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 12. Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--cream-300); border-radius: var(--r-lg); background: #fff; }
.table { font-size: var(--fs-sm); min-width: 680px; }
.table th, .table td { padding: .78rem 1rem; text-align: left; border-bottom: 1px solid var(--cream-200); vertical-align: middle; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); background: var(--cream-100); }
.table tbody tr:hover { background: var(--cream-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table code, code.code { font-size: var(--fs-xs); background: var(--cream-200); padding: .15rem .45rem; border-radius: 5px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.empty { padding: 2.4rem 1rem; text-align: center; color: var(--ink-300); font-size: var(--fs-sm); }

/* ---------- 13. Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--jungle-100); min-height: 160px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic figcaption { position: absolute; inset: auto 0 0 0; padding: .8rem .9rem .65rem; background: linear-gradient(to top, rgba(6,35,26,.85), transparent); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 820px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic .wide { grid-column: span 2; } .mosaic .tall { grid-row: span 1; } }

/* ---------- 14. Timeline ---------- */
.timeline { display: grid; gap: var(--sp-5); position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(to bottom, var(--jungle-300) 0 6px, transparent 6px 12px); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.timeline .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-50); border: 2px solid var(--jungle-300); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--jungle-700); position: relative; z-index: 1; }
.section--dark .timeline .dot { background: var(--jungle-800); border-color: var(--cane-500); color: var(--cane-400); }
.section--dark .timeline::before { background: repeating-linear-gradient(to bottom, rgba(232,176,75,.5) 0 6px, transparent 6px 12px); }

/* ---------- 15. Testimonios ---------- */
.quote { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); padding: var(--sp-5); position: relative; box-shadow: var(--shadow-sm); }
.quote::before { content: "\201C"; position: absolute; top: -4px; left: 16px; font-family: var(--font-display); font-size: 4.2rem; color: var(--cane-400); line-height: 1; }
.quote p { margin-top: 1.4rem; font-size: var(--fs-sm); }
.quote footer { margin-top: 1rem; display: flex; align-items: center; gap: .7rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--jungle-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.stars { color: var(--cane-600); letter-spacing: .08em; font-size: var(--fs-sm); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--jungle-950); color: rgba(217,239,228,.72); padding-block: var(--sp-8) var(--sp-5); }
.site-footer h4 { color: var(--cream-100); font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-xs); margin-bottom: .9rem; }
.site-footer a { color: rgba(217,239,228,.72); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--cane-400); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { display: grid; gap: .5rem; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--fs-xs); color: rgba(217,239,228,.5); }
.social { display: flex; gap: .55rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .25s, transform .25s var(--ease), border-color .25s; }
.social a:hover { background: var(--cane-500); border-color: var(--cane-500); transform: translateY(-3px); }
.social a:hover svg { fill: var(--jungle-950); }
.social svg { width: 18px; height: 18px; fill: rgba(217,239,228,.8); }

/* ---------- 17. FAB + barra móvil ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 760px) { .fab-wa { bottom: 84px; right: 14px; width: 50px; height: 50px; } .fab-wa svg { width: 25px; height: 25px; } }
.mobile-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 95; background: rgba(253,251,246,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--cream-300); padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem; align-items: center; justify-content: space-between; box-shadow: 0 -6px 22px rgba(10,30,20,.08); }
.mobile-bar b { font-family: var(--font-display); color: var(--jungle-900); font-size: 1rem; display: block; line-height: 1.1; }
.mobile-bar span { font-size: var(--fs-xs); color: var(--ink-500); }
@media (max-width: 760px) { .mobile-bar { display: flex; } body.has-bar { padding-bottom: 74px; } }

/* ---------- 18. Modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(6,35,26,.55); backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal__box { background: var(--cream-50); border-radius: var(--r-lg); width: min(100%, 760px); max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; animation: fadeUp .3s var(--ease); }
.modal__close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(253,251,246,.94); color: var(--jungle-900); display: grid; place-items: center; font-size: 1.25rem; line-height: 1; box-shadow: var(--shadow-sm); }
.modal__body { padding: var(--sp-5); }

/* ---------- 19. Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100dvh; }
@media (max-width: 940px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { background: var(--jungle-950); color: rgba(217,239,228,.75); padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: 1.3rem; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
@media (max-width: 940px) { .admin-side { position: static; height: auto; } }
.admin-side .brand__name { color: var(--cream-50); }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .68rem .85rem; border-radius: var(--r-md); color: rgba(217,239,228,.75); font-size: var(--fs-sm); font-weight: 500; text-align: left; transition: background .2s, color .2s; }
.admin-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav button.is-active { background: var(--jungle-700); color: #fff; font-weight: 600; }
.admin-nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.admin-main { padding: var(--sp-5) clamp(1rem, 3vw, 2.4rem) var(--sp-8); background: var(--cream-100); min-width: 0; }
.admin-view { display: none; }
.admin-view.is-active { display: block; animation: fadeUp .35s var(--ease); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: var(--sp-4); }
.kpi { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); padding: 1.05rem 1.2rem; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -22px; top: -22px; width: 82px; height: 82px; border-radius: 50%; background: var(--cane-200); opacity: .45; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.85rem; color: var(--jungle-900); line-height: 1.1; position: relative; }
.kpi span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); position: relative; }
.kpi small { display: block; margin-top: .25rem; font-size: var(--fs-xs); color: var(--jungle-600); font-weight: 600; position: relative; }
.bars { display: grid; gap: .65rem; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 56px; gap: .8rem; align-items: center; font-size: var(--fs-sm); }
@media (max-width: 580px) { .bar-row { grid-template-columns: 108px 1fr 46px; font-size: var(--fs-xs); } }
.bar-track { height: 12px; border-radius: var(--r-pill); background: var(--cream-200); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--jungle-600), var(--jungle-500)); transition: width .8s var(--ease); }
.bar-fill--gold { background: linear-gradient(90deg, var(--cane-600), var(--cane-400)); }
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(110% 90% at 20% 0%, var(--jungle-700), var(--jungle-950)); }
.login-card { background: var(--cream-50); border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.6rem); width: min(100%, 440px); box-shadow: var(--shadow-lg); }

/* ---------- 20. Tabs / Acordeón ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--cream-300); margin-bottom: var(--sp-5); overflow-x: auto; }
.tabs button { padding: .7rem 1.05rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-500); border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--jungle-700); }
.tabs button.is-active { color: var(--jungle-800); border-bottom-color: var(--cane-500); }
.acc { border: 1px solid var(--cream-300); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: .6rem; }
.acc summary { padding: 1rem 1.15rem; font-weight: 600; color: var(--jungle-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; font-size: var(--fs-sm); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--cane-600); transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 1.15rem 1.15rem; font-size: var(--fs-sm); color: var(--ink-500); }

/* ---------- 21. Utilidades ---------- */
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}
.mb-3{margin-bottom:var(--sp-3)}.mb-4{margin-bottom:var(--sp-4)}.mb-5{margin-bottom:var(--sp-5)}
.hidden { display: none !important; }
.divider { height: 1px; background: var(--cream-300); border: 0; margin-block: var(--sp-5); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.nowrap { white-space: nowrap; }
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn { padding: .48rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--cream-300); background: #fff; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--jungle-300); color: var(--jungle-700); }
.filter-btn.is-active { background: var(--jungle-800); border-color: var(--jungle-800); color: #fff; }
.ticket { border: 2px dashed var(--cane-400); border-radius: var(--r-lg); background: var(--cream-50); padding: var(--sp-5); }
.ticket .code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--jungle-900); background: none; padding: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; color: var(--ink-900); font-weight: 600; text-align: right; }

/* ---------- 22. Ajustes responsivos de páginas ---------- */
@media (max-width: 980px) {
  #layoutReserva, #layoutCuenta, #layoutContacto { grid-template-columns: 1fr !important; }
  #resumenLateral { position: static !important; }
}
#layoutReserva > *, #layoutCuenta > *, #layoutContacto > * { min-width: 0; }
.searchbar input[type="range"], .field input[type="range"] {
  padding: 0; height: 34px; accent-color: var(--jungle-600); border: 0; background: transparent;
}
.searchbar input[readonly] { background: var(--cream-100); color: var(--jungle-800); font-weight: 600; }
.admin-main .table-wrap { max-width: 100%; }
#efModal .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { #efModal .form-grid { grid-template-columns: 1fr; } }
#ef-toast { font-weight: 500; }

/* ---------- 23. Diagramas UML de casos de uso ---------- */
.uml-card { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); overflow: hidden; }
.uml-card + .uml-card { margin-top: var(--sp-6); }
.uml-scroll { overflow-x: auto; margin-top: var(--sp-4); padding-bottom: .5rem; }
.uml { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--font-body); }
.uml .boundary { fill: var(--cream-50); stroke: var(--jungle-300); stroke-width: 2; }
.uml .boundary-label { font-size: 17px; font-weight: 700; fill: var(--jungle-800); font-family: var(--font-display); text-anchor: middle; }
.uml .uc { fill: #fff; stroke: var(--jungle-600); stroke-width: 1.8; }
.uml .uc--new { fill: var(--cane-200); stroke: var(--cane-600); }
.uml .uc--sys { fill: var(--jungle-100); stroke: var(--jungle-500); stroke-dasharray: 5 3; }
.uml .uc-label { font-size: 13px; fill: var(--ink-900); text-anchor: middle; font-weight: 500; }
.uml .rf { font-size: 10.5px; fill: var(--cane-700); text-anchor: middle; font-weight: 700; letter-spacing: .04em; }
.uml .assoc { stroke: var(--ink-300); stroke-width: 1.5; fill: none; }
.uml .rel { stroke: var(--clay-500); stroke-width: 1.4; stroke-dasharray: 7 4; fill: none; }
.uml .rel-label { font-size: 10px; fill: var(--clay-600); text-anchor: middle; font-style: italic; }
.uml .actor { stroke: var(--jungle-800); stroke-width: 2; fill: none; stroke-linecap: round; }
.uml .actor--ext { stroke: var(--sky-500); }
.uml .actor-label { font-size: 12px; fill: var(--jungle-900); text-anchor: middle; font-weight: 700; }
.uml .actor-sub { font-size: 10px; fill: var(--ink-500); text-anchor: middle; }
.uml-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--sp-4); }
.uml-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.uml-legend i { width: 22px; height: 12px; border-radius: 999px; display: inline-block; }

/* ---------- 24. Modelo de datos (diccionario de tablas) ---------- */
.db-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.db-card { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.db-card__head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--cream-200); background: var(--cream-100); }
.db-card__head h3 { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1rem; color: var(--jungle-900); letter-spacing: -.01em; }
.db-card__head p { font-size: var(--fs-xs); color: var(--ink-500); margin-top: .3rem; }
.db-card__body { padding: .4rem 0 .6rem; }
.db-card--catalogo .db-card__head { background: #E8F4EE; }
.db-card--programacion .db-card__head { background: #D9EFE4; }
.db-card--operacion .db-card__head { background: #FDF3DC; }
.db-card--cobros .db-card__head { background: #FBE7DE; }
.db-card--soporte .db-card__head { background: #E5EEF5; }
.table--compact { min-width: 0; width: 100%; font-size: var(--fs-xs); table-layout: fixed; }
.table--compact th, .table--compact td {
  padding: .42rem .9rem;
  vertical-align: top;
  overflow-wrap: anywhere;   /* parte los ENUM largos en vez de recortarlos */
  word-break: break-word;
  hyphens: auto;
}
.table--compact col.c-nombre { width: 38%; }
.table--compact col.c-tipo   { width: 30%; }
.table--compact col.c-nota   { width: 32%; }
.table--compact td:first-child { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--jungle-900); line-height: 1.45; }
.table--compact td code { white-space: normal; }
.kbadge { display: inline-block; padding: .05rem .38rem; border-radius: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .05em; margin-left: .3rem; vertical-align: middle; }
.kbadge--pk { background: var(--cane-200); color: var(--cane-700); }
.kbadge--fk { background: var(--jungle-100); color: var(--jungle-700); }
.kbadge--uq { background: #DDE4F2; color: #2B3D66; }
.kbadge--nn { background: var(--cream-200); color: var(--ink-500); }

/* ---------- 25. Impresión ---------- */
@media print {
  .site-header, .site-footer, .fab-wa, .mobile-bar, .no-print, .admin-side, .tabs, .steps { display: none !important; }
  body { background: #fff; padding: 0; color: #000; }
  .admin-shell { grid-template-columns: 1fr; }
  .panel, .card, .table-wrap, .ticket { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .admin-view { display: block !important; }
}
