/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f4f9f6;
  --bg-soft: #e6f2ec;
  --paper: #ffffff;
  --deep: #0b3b36;
  --deep-2: #0f4d45;
  --teal: #12756a;
  --mint: #8fd8c2;
  --amber: #fdb022;
  --amber-dark: #e99a06;
  --ink: #10231f;
  --muted: #5a6e68;
  --on-deep: #eef8f3;
  --on-deep-muted: rgba(238, 248, 243, .72);
  --line: rgba(16, 35, 31, .12);
  --line-light: rgba(238, 248, 243, .18);
  --danger: #b3261e;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1.25rem;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(11, 59, 54, .35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--amber); color: var(--ink); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.muted-light { color: var(--on-deep-muted); }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow-light { color: var(--mint); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-title { font-size: clamp(1.9rem, 5.6vw, 3.1rem); margin-top: .8rem; }
.section-lead { margin-top: 1rem; font-size: clamp(1rem, 2.4vw, 1.14rem); color: var(--muted); max-width: 40rem; }
.section-deep .section-lead { color: var(--on-deep-muted); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.6rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-align: center;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 14px 28px -14px rgba(253, 176, 34, .9); }
.btn-accent:hover { background: #ffc044; }
.btn-primary { background: var(--deep); color: var(--on-deep); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--deep); }
.btn-outline-light { border-color: var(--line-light); color: var(--on-deep); }
.btn-outline-light:hover { border-color: var(--on-deep); background: rgba(255, 255, 255, .06); }
.btn-small { min-height: 42px; padding: .5rem 1.15rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; color: var(--teal); }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-plain { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.badge {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.logo-mark { width: 46px; height: auto; color: var(--amber); flex: none; }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-size: .62rem; font-weight: 500; letter-spacing: .32em; color: var(--amber-dark); margin-top: .18rem; }
.logo-light { color: var(--on-deep); }
.logo-light .logo-text small { color: var(--amber); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 249, 246, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .nav { background: rgba(244, 249, 246, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(11, 59, 54, .5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }
.nav-links { display: none; gap: 1.8rem; font-weight: 500; font-size: .96rem; color: var(--muted); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; gap: 6px; border: 1.5px solid var(--line); }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; gap: .2rem; padding: .5rem var(--gutter) 1.4rem; border-top: 1px solid var(--line); background: var(--bg); }
.nav-mobile a:not(.btn) { padding: .85rem .2rem; font-family: var(--display); font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 1rem; }

/* Placeholders */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: 160px; border-radius: var(--radius);
  border: 1.5px dashed rgba(18, 117, 106, .4);
  background:
    repeating-linear-gradient(135deg, rgba(18, 117, 106, .07) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, #d9efe6, #f3ecd6);
}
.ph-dark {
  border-color: rgba(143, 216, 194, .45);
  background:
    repeating-linear-gradient(135deg, rgba(143, 216, 194, .08) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, #14584f, #0d443d);
}
.ph-label {
  padding: .35rem .85rem; border-radius: 999px; text-align: center;
  background: rgba(255, 255, 255, .88); color: var(--teal);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Imágenes */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(140deg, #d9efe6, #f3ecd6); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media-43 { aspect-ratio: 4 / 3; }
.media-11 { aspect-ratio: 1; }
.media-hero {
  aspect-ratio: 4 / 5; background: var(--deep-2);
  border-radius: 42% 58% 55% 45% / 46% 42% 58% 54%;
  animation: blobMorph 16s ease-in-out infinite alternate, bob 7s ease-in-out infinite alternate;
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6);
}
.media-blob { aspect-ratio: 1; background: var(--deep-2); border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%; animation: blobMorph 18s ease-in-out infinite alternate-reverse; }

.frame { display: grid; gap: .7rem; }
.frame figcaption { font-family: var(--display); font-weight: 600; font-size: 1.02rem; padding-left: .2rem; }
.frame:hover .media img, .lens-panel:hover .media img { transform: scale(1.05); }

/* Banda con imagen */
.band { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 47, 43, .9) 0%, rgba(8, 47, 43, .8) 60%, rgba(8, 47, 43, .55) 100%); }
.band-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-block: 4.5rem; }
.band-title { font-size: clamp(1.9rem, 5.6vw, 3.1rem); max-width: 14ch; }
.band-inner p { max-width: 30rem; color: var(--on-deep-muted); font-size: clamp(1rem, 2.4vw, 1.14rem); }

/* Mapa */
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--deep-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { position: absolute; left: 12px; bottom: 12px; padding: .55rem 1rem; border-radius: 999px; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: .92rem; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }

/* Waves */
.wave { position: absolute; left: 0; right: 0; height: clamp(40px, 7vw, 96px); overflow: hidden; pointer-events: none; line-height: 0; }
.wave svg { width: 200%; height: 100%; max-width: none; animation: waveSlide 22s linear infinite; }
.wave path { fill: var(--bg); }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; }
.wave-top svg { animation-duration: 28s; animation-direction: reverse; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--deep); color: var(--on-deep); padding-top: calc(4.5rem + clamp(40px, 7vw, 96px)); }
.section-deep:has(.wave-bottom) { padding-bottom: calc(4.5rem + clamp(40px, 7vw, 96px)); }

/* Hero */
.hero { position: relative; background: var(--deep); color: var(--on-deep); padding: 3rem 0 calc(3.5rem + clamp(40px, 7vw, 96px)); overflow: clip; }
.hero-blob { position: absolute; pointer-events: none; filter: blur(50px); opacity: .55; }
.hero-blob-a { width: 60vw; max-width: 620px; aspect-ratio: 1; left: -18%; top: -22%; background: radial-gradient(circle, var(--teal), transparent 65%); animation: blobDrift 18s ease-in-out infinite alternate; }
.hero-blob-b { width: 46vw; max-width: 460px; aspect-ratio: 1; right: -12%; bottom: 4%; background: radial-gradient(circle, rgba(253, 176, 34, .5), transparent 65%); animation: blobDrift 22s ease-in-out infinite alternate-reverse; }
.hero-grid { position: relative; display: grid; gap: 2.6rem; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 9.5vw, 4.8rem); margin-top: 1rem; max-width: 14ch; }
.hero-title em { font-style: normal; color: var(--amber); }
.hero-lead { margin-top: 1.3rem; max-width: 34rem; font-size: clamp(1.02rem, 2.5vw, 1.2rem); color: var(--on-deep-muted); }
.hero-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; font-size: .95rem; color: var(--on-deep-muted); }
.hero-points li, .booking-notes li { display: flex; align-items: center; gap: .5rem; }
.hero-points svg, .booking-notes svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.ph-hero {
  aspect-ratio: 4 / 5; min-height: 0;
  border-radius: 42% 58% 55% 45% / 46% 42% 58% 54%;
  animation: blobMorph 16s ease-in-out infinite alternate, bob 7s ease-in-out infinite alternate;
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6);
}
.hero-card {
  position: absolute; left: -4px; bottom: 8%;
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem .8rem .8rem;
  background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); flex: none; }
.hero-card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }
.hero-card strong { display: block; font-family: var(--display); font-size: .98rem; }
.hero-card small { display: block; color: var(--muted); font-size: .8rem; }

/* Servicios */
.services { display: grid; gap: 1.1rem; }
.service {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  padding: 1.8rem 1.5rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-soft); }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.35rem; }
.service p { color: var(--muted); flex: 1; }
.service .badge { position: absolute; top: 1.4rem; right: 1.4rem; }
.service-featured { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.service-featured p { color: var(--on-deep-muted); }
.service-featured .service-icon { background: rgba(255, 255, 255, .1); }
.service-featured .service-icon svg { stroke: var(--amber); }
.service-featured .link-arrow { color: var(--amber); }

/* Proceso */
.process-grid { display: grid; gap: 2.6rem; align-items: center; }
.steps { display: grid; gap: 1.5rem; margin: 2.2rem 0; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; background: var(--amber); color: var(--ink); }
.step h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.step p { color: var(--on-deep-muted); }
.process-visual { max-width: 440px; width: 100%; margin-inline: auto; }
.ph-blob { aspect-ratio: 1; min-height: 0; border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%; animation: blobMorph 18s ease-in-out infinite alternate-reverse; }

/* Lentes */
.lens { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 1rem; }
.lens-tabs { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding: .2rem .2rem .8rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lens-tabs::-webkit-scrollbar { display: none; }
.lens-tab {
  flex: none; padding: .65rem 1.1rem; border-radius: 999px; min-height: 44px;
  font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--muted);
  border: 1.5px solid var(--line); white-space: nowrap;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.lens-tab:hover { border-color: var(--teal); color: var(--ink); }
.lens-tab.is-active { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.lens-panel { display: grid; gap: 1.4rem; padding: .8rem .4rem .4rem; align-items: center; animation: panelIn .6s var(--ease-out); }
.lens-text h3 { font-size: 1.5rem; }
.lens-text p { margin-top: .7rem; color: var(--muted); }
.lens-text ul { margin-top: 1rem; display: grid; gap: .5rem; }
.lens-text li { position: relative; padding-left: 1.5rem; }
.lens-text li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.lens-panel .ph { aspect-ratio: 4 / 3; min-height: 0; }
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem .8rem; }
.ph-frame { aspect-ratio: 1; min-height: 0; transition: transform .5s var(--ease-out); }
.ph-frame:hover { transform: scale(1.03) rotate(-1deg); }

/* Opiniones */
.quotes { display: grid; gap: 1.1rem; }
.quote { padding: 1.7rem 1.5rem; border-radius: var(--radius); background: var(--paper); border: 1px dashed rgba(18, 117, 106, .4); }
.quote blockquote { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; color: var(--muted); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .8; color: var(--amber); }
.quote figcaption { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--muted); }
.ph-avatar { width: 40px; height: 40px; min-height: 0; border-radius: 50%; flex: none; }

/* Agenda */
.section-booking { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.booking-grid { display: grid; gap: 2.2rem; align-items: start; }
.booking-notes { margin-top: 1.6rem; display: grid; gap: .7rem; color: var(--muted); }
.booking-notes svg { stroke: var(--teal); }
.booking { background: var(--paper); border-radius: calc(var(--radius) + 6px); padding: 1.3rem 1.1rem 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.booking-progress { display: flex; gap: .4rem; margin-bottom: 1.4rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.booking-progress li { flex: 1; display: flex; align-items: center; gap: .45rem; padding-bottom: .7rem; border-bottom: 3px solid var(--line); transition: border-color .4s var(--ease-out), color .4s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-progress span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); font-size: .76rem; transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.booking-progress li.is-active, .booking-progress li.is-done { color: var(--ink); border-color: var(--amber); }
.booking-progress li.is-active span, .booking-progress li.is-done span { background: var(--amber); color: var(--ink); }
.booking-step { animation: panelIn .5s var(--ease-out); }
.booking-step legend { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 1rem; padding: 0; }
.booking-alert, .booking-error { padding: .8rem 1rem; border-radius: var(--radius-sm); background: #fdecea; color: var(--danger); font-size: .93rem; margin-bottom: 1rem; }
.booking-error { margin: 1rem 0 0; }
.booking-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin-top: 1.4rem; }
.booking-actions > :only-child { margin-left: auto; }
.booking-actions-center { justify-content: center; }
.booking-actions-center > :only-child { margin-left: 0; }

.options { display: grid; gap: .65rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option > span { display: block; padding: .95rem 1.1rem .95rem 3rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); transition: border-color .3s var(--ease-out), background .3s var(--ease-out); }
.option > span::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.option strong { display: block; font-family: var(--display); font-weight: 600; }
.option small { display: block; color: var(--muted); font-size: .88rem; }
.option:hover > span { border-color: var(--teal); }
.option input:checked + span { border-color: var(--teal); background: var(--bg); }
.option input:checked + span::before { border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 10px var(--teal); }
.option input:focus-visible + span { outline: 2.5px solid var(--amber); outline-offset: 2px; }

.cal { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font-family: var(--display); }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; border: 1.5px solid var(--line); transition: border-color .3s var(--ease-out), background .3s var(--ease-out); }
.cal-nav:hover:not([disabled]) { border-color: var(--teal); background: var(--bg); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-week { font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.cal-day { aspect-ratio: 1; width: 100%; max-width: 44px; justify-self: center; min-height: 38px; border-radius: 50%; font-weight: 500; font-size: .95rem; display: grid; place-items: center; transition: background .25s var(--ease-out), color .25s var(--ease-out); }
.cal-day:hover:not([disabled]) { background: var(--bg-soft); }
.cal-day[disabled] { color: rgba(16, 35, 31, .26); cursor: default; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--amber); }
.cal-day.is-selected { background: var(--deep); color: var(--on-deep); }
.slots-wrap { margin-top: 1.1rem; }
.slots-title { font-weight: 600; font-size: .95rem; margin-bottom: .7rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.slot { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out); }
.slot:hover:not([disabled]) { border-color: var(--teal); }
.slot[disabled] { color: rgba(16, 35, 31, .28); text-decoration: line-through; background: var(--bg); cursor: default; }
.slot.is-selected { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.slots-msg { grid-column: 1 / -1; color: var(--muted); font-size: .93rem; }
.slots-msg a { color: var(--teal); font-weight: 600; text-decoration: underline; }

.booking-summary { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--bg); font-size: .95rem; margin-bottom: 1.1rem; border-left: 4px solid var(--amber); }
.fields { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span { font-size: .88rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 117, 106, .14); }
.field .is-invalid { border-color: var(--danger); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal); }
.check a { color: var(--teal); text-decoration: underline; }

.booking-done { text-align: center; padding: 1.2rem .4rem .6rem; }
.booking-done:focus { outline: none; }
.done-check { width: 76px; height: 76px; margin: 0 auto 1.1rem; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke: var(--bg-soft); stroke-width: 5; fill: var(--bg-soft); }
.done-check path { stroke: var(--teal); stroke-width: 5.5; stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawCheck .7s .15s var(--ease-out) forwards; }
.booking-done h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.booking-done p { color: var(--muted); }
.done-code { margin-top: 1rem; }
.done-code strong { display: inline-block; margin-left: .4rem; padding: .3rem .8rem; border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-family: var(--display); letter-spacing: .08em; font-size: 1.1rem; }
.booking-done .link-plain { margin-top: 1.2rem; }

/* FAQ */
.faq-grid { display: grid; gap: 1rem; }
.faq { display: grid; gap: .7rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.2rem; font-family: var(--display); font-weight: 600; font-size: 1.08rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--teal); font-size: 1.3rem; font-weight: 400; transition: transform .4s var(--ease-out), background .3s var(--ease-out); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--amber); color: var(--ink); }
.faq-item p { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* Contacto */
.section-contact { padding-bottom: 5rem; }
.contact-grid { display: grid; gap: 2.4rem; align-items: center; }
.contact-list { display: grid; gap: 1.3rem; margin-top: 2rem; }
.contact-list dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: .25rem; }
.contact-list dd { font-family: var(--display); font-size: 1.15rem; line-height: 1.45; }
.contact-list dd a { text-decoration: underline; text-underline-offset: 4px; }
.ph-map { aspect-ratio: 4 / 3; min-height: 0; }

/* Footer */
.footer { background: #082f2b; color: var(--on-deep-muted); padding: 2.4rem 0 calc(6.5rem + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a:hover { color: var(--on-deep); }

/* Flotantes */
.wa-float { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .35s var(--ease-out); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 600;
  box-shadow: 0 18px 36px -14px rgba(11, 59, 54, .6);
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }

/* Asistente (chat) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-launch {
  position: fixed; right: 16px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 56;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 54px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: var(--deep); color: var(--on-deep); font-family: var(--display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); border: 1.5px solid rgba(255, 255, 255, .14);
  transition: transform .35s var(--ease-out), background .3s var(--ease-out);
}
.chat-launch span { display: none; }
.chat-launch { width: 54px; padding: 0; justify-content: center; }
.chat-launch:hover { transform: translateY(-3px); background: var(--teal); }
.chat-launch svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chat {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; height: min(88dvh, 640px); max-height: 88vh;
  background: var(--paper); border-radius: 24px 24px 0 0; overflow: hidden;
  box-shadow: 0 -20px 60px -20px rgba(11, 59, 54, .55);
  animation: chatIn .45s var(--ease-out);
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--deep); color: var(--on-deep); }
.chat-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--amber); }
.chat-avatar svg { width: 26px; }
.chat-head div { flex: 1; min-width: 0; line-height: 1.25; }
.chat-head strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.chat-head small { display: block; color: var(--on-deep-muted); font-size: .76rem; }
.chat-close { flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.7rem; line-height: 1; color: var(--on-deep); transition: background .3s var(--ease-out); }
.chat-close:hover { background: rgba(255, 255, 255, .12); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: panelIn .35s var(--ease-out); }
.msg-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--deep); color: var(--on-deep); border-bottom-right-radius: 6px; }
.msg-error { align-self: flex-start; background: #fdecea; color: var(--danger); border-bottom-left-radius: 6px; }
.msg-typing { display: inline-flex; gap: 5px; align-items: center; min-height: 42px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: typing 1.1s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
.chat-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .6rem 1rem 0; background: var(--bg); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: .84rem; font-weight: 500; color: var(--teal); white-space: nowrap; transition: border-color .25s var(--ease-out); }
.chat-chips button:hover { border-color: var(--teal); }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem 1rem .4rem; background: var(--bg); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: .65rem .9rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 117, 106, .14); }
.chat-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); transition: transform .3s var(--ease-out), opacity .3s; }
.chat-form button:hover { transform: scale(1.06); }
.chat-form button[disabled] { opacity: .5; pointer-events: none; }
.chat-form button svg { width: 22px; height: 22px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.chat-note { padding: .2rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--bg); font-size: .72rem; color: var(--muted); text-align: center; }
.chat-note a { text-decoration: underline; }
@keyframes chatIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
@keyframes blobDrift { to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes blobMorph { to { border-radius: 55% 45% 42% 58% / 52% 58% 42% 48%; } }
@keyframes bob { to { transform: translateY(-12px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 1.75rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .services { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .booking { padding: 1.8rem 1.7rem 2rem; }
  .frames { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .section { padding: 6.5rem 0; }
  .section-deep { padding-top: calc(6.5rem + clamp(40px, 7vw, 96px)); }
  .section-deep:has(.wave-bottom) { padding-bottom: calc(6.5rem + clamp(40px, 7vw, 96px)); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .lens { padding: 1.6rem; }
  .lens-panel { grid-template-columns: 1.1fr 1fr; gap: 2.4rem; padding: 1rem .6rem .6rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .band-shade { background: linear-gradient(90deg, rgba(8, 47, 43, .92) 0%, rgba(8, 47, 43, .7) 40%, rgba(8, 47, 43, 0) 75%); }
  .band-img { object-position: 100% 50%; }
  .mobile-cta { display: none; }
  .wa-float { bottom: 92px; right: 24px; }
  .chat-launch { bottom: 24px; right: 24px; width: auto; padding: 0 1.15rem 0 1rem; }
  .chat-launch span { display: inline; }
  .chat { left: auto; right: 24px; bottom: 24px; width: 400px; height: min(640px, calc(100dvh - 48px)); border-radius: 24px; box-shadow: 0 30px 80px -24px rgba(11, 59, 54, .6); border: 1px solid var(--line); }
  .footer { padding-bottom: 2.4rem; }
}
@media (min-width: 960px) {
  :root { --gutter: 2.5rem; --nav-h: 76px; }
  .nav-links { display: flex; gap: 1.3rem; }
  .band-inner { padding-block: 7rem; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
  .hero-visual { margin-inline: 0 0; justify-self: end; }
  .hero-card { left: -40px; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .booking-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
  .booking-intro { position: sticky; top: calc(var(--nav-h) + 28px); }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 5.2rem; }
}

/* =============================================================
   9. Reduced-motion (only intrusive loops)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-hero, .media-hero { animation: none; }
  .wave svg { animation: none; }
}
