/* =============================================================
   1. Tokens — dirección "luxury broker" (Fraser / Burgess / N&J / One&Only):
   fondos casi negros o marfil, un único acento metálico usado con
   cuentagotas, cero píldoras, cero sombras de tarjeta.
   ============================================================= */
:root {
  --bg:        #0A1620;   /* tinta casi negra, undertone navy */
  --bg-2:      #0D1B27;   /* navy — secciones alternas */
  --bg-3:      #12232F;   /* navy — superficies sutiles */
  --cream:     #F4EFE6;   /* marfil — texto sobre tinta */
  --cream-2:   #C7BFAE;   /* marfil mute — texto secundario */
  --cream-3:   #77828C;   /* metadata sobre tinta */
  --ivory:     #F4EFE6;   /* fondo claro (sección contacto) */
  --ink:       #0A1620;   /* texto sobre superficies claras */
  --ink-mute:  #57626C;

  --gold:      #AD8A55;   /* latón mate — único acento, usar con cuentagotas */
  --gold-2:    #C9AC7B;   /* latón claro — hover / énfasis */

  --line:      rgba(244,239,230,.09);
  --line-strong: rgba(244,239,230,.18);
  --line-soft: rgba(10,22,32,.10);
  --hairline:  rgba(173,138,85,.55);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius: 3px;
  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.005em;
  font-family: var(--serif);
  font-weight: 400;
}
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--gold-2);
  outline-offset: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--ink);
  z-index: 9999; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  margin-right: .7em;
  vertical-align: middle;
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 400; }
em { font-style: italic; color: inherit; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-2); }
.btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1.4rem;
  transition: border-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .25rem;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.text-link:hover { border-color: var(--gold); color: var(--gold-2); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10,22,32,.94);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo img { height: 40px; width: auto; }
.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-2);
  position: relative;
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right .35s var(--ease-out);
}
.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { right: 0; }
.header-cta { padding: .7rem 1.4rem; }

.lang-switch { position: relative; }
.lang-toggle {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cream-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.lang-toggle:hover { color: var(--cream); border-color: var(--gold); }
.lang-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  overflow: hidden;
  min-width: 90px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.lang-switch.is-open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s var(--ease-out);
}
.lang-menu button:hover { background: var(--cream); }
.lang-menu button.is-active { color: var(--gold); }
@media (max-width: 719px) { .lang-switch { order: -1; } }
@media (max-width: 719px) {
  .main-nav { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,32,.6) 0%, rgba(10,22,32,.32) 30%, rgba(10,22,32,.68) 66%, rgba(10,22,32,.97) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem 5.5rem;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
.hero-title { max-width: 15ch; margin-bottom: 1.5rem; color: var(--cream); font-weight: 300; text-shadow: 0 4px 28px rgba(0,0,0,.45); }
.hero-title em { color: var(--gold-2); }
.hero-sub {
  max-width: 40ch; font-size: 1.05rem; font-weight: 300;
  color: var(--cream-2); margin-bottom: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero-content .kicker { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: var(--cream-2);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
  transition: opacity .5s var(--ease-out), color .3s var(--ease-out);
}
.hero-scroll-cue:hover { color: var(--gold-2); }
.hero-scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@media (min-width: 720px) { .hero-scroll-cue { display: flex; } }
.hero-scroll-line { width: 1px; height: 36px; position: relative; overflow: hidden; background: rgba(244,239,230,.18); }
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--gold-2);
  animation: scrollCueDrop 2.2s infinite ease-in-out;
}
@keyframes scrollCueDrop {
  0%   { top: -100%; }
  55%  { top: 100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; top: 100%; }
}

/* --- Categories bar (dentro de fleet-scope) --- */
.fleet-scope { position: relative; }
.categories-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.categories-bar ul {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-block: 1.1rem;
  scrollbar-width: none;
}
.categories-bar ul::-webkit-scrollbar { display: none; }
.categories-bar a {
  display: block;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding-bottom: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.categories-bar a:hover { color: var(--gold-2); border-color: var(--gold); }

/* --- Section shared spacing --- */
section { padding-block: 6.5rem; }
.why-adelmar { background: var(--bg); }
.fleet { background: var(--bg); }
.experiences { background: var(--bg-2); }
.stats { background: var(--bg); padding-block: 4rem; border-block: 1px solid var(--line); }
.testimonials { background: var(--bg); }

/* --- Why Adelmar --- */
.why-grid {
  counter-reset: why;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-card {
  counter-increment: why;
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease-out);
}
.why-card:hover { background: var(--bg-3); }
.why-icon { display: none; }
.why-card::before {
  content: counter(why, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: .7rem; color: var(--cream); font-weight: 400; }
.why-card p { color: var(--cream-2); font-size: .9rem; font-weight: 300; line-height: 1.6; }

/* --- Fleet --- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.fleet-card {
  background: var(--bg);
  overflow: hidden;
  transition: background .4s var(--ease-out);
}
.fleet-card:hover { background: var(--bg-3); }
.fleet-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform .8s var(--ease-out), filter .5s var(--ease-out);
}
.fleet-card:hover img { transform: scale(1.035); filter: saturate(1.02); }
.fleet-card-body { padding: 1.7rem 1.6rem; }
.fleet-category {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: .6rem;
}
.fleet-card h3 { color: var(--cream); margin-bottom: .6rem; font-weight: 400; }
.fleet-desc { color: var(--cream-2); font-size: .89rem; font-weight: 300; margin-bottom: 1.2rem; line-height: 1.55; }
.fleet-price { font-size: .82rem; color: var(--cream-3); letter-spacing: .04em; text-transform: uppercase; padding-top: 1rem; border-top: 1px solid var(--line); }
.fleet-price strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--cream); text-transform: none; letter-spacing: 0; display: block; margin-bottom: .2rem; }
.fleet-card-flagship { box-shadow: inset 0 0 0 1px var(--hairline); }
@media (min-width: 960px) {
  .fleet-card-flagship { grid-column: span 2; }
  .fleet-card-flagship img { aspect-ratio: 21 / 9; }
  .fleet-card-flagship .fleet-card-body { padding: 2.1rem 2.4rem; }
  .fleet-card-flagship h3 { font-size: 1.5rem; }
}


/* --- Experiences --- */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
}
.experience-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
}
.experience-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform .9s var(--ease-out);
}
.experience-card:hover img { transform: scale(1.045); }
.experience-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,22,32,.94) 100%);
}
.experience-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.7rem;
}
.experience-body h3 { color: var(--cream); margin-bottom: .5rem; font-size: 1.1rem; font-weight: 400; }
.experience-body p { color: var(--cream-2); font-size: .85rem; font-weight: 300; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.stat { border-left: 1px solid var(--hairline); padding-left: 1.5rem; }
.stat-number {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--cream);
  margin-bottom: .5rem;
}
.stat-label { color: var(--cream-3); font-size: .78rem; letter-spacing: .04em; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}
.testimonial-card { border-top: 1px solid var(--hairline); padding-top: 1.6rem; }
.testimonial-card blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.45;
}
.testimonial-author { margin-top: 1.2rem; font-size: .78rem; letter-spacing: .04em; color: var(--cream-3); text-transform: uppercase; }
.testimonials-link { margin-top: 3rem; }

/* --- Contact --- */
.contact {
  background: var(--ivory);
  color: var(--ink);
}
.contact .kicker { color: var(--gold); }
.contact .kicker::before { background: var(--gold); }
.contact h2 { color: var(--ink); font-weight: 300; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.booking-steps {
  counter-reset: step;
  margin-block: 2rem 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.booking-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  font-size: .92rem;
  font-weight: 300;
  color: var(--ink-mute);
}
.booking-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: .92rem;
  color: var(--gold);
}
.contact-details { margin-bottom: 2.2rem; display: grid; gap: 1.1rem; border-top: 1px solid var(--line-soft); padding-top: 1.6rem; }
.contact-details li { display: flex; flex-direction: column; gap: .25rem; font-size: .92rem; font-weight: 300; }
.contact-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.contact-details a { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.contact-details a:hover { border-color: var(--ink); }
.contact-map { overflow: hidden; min-height: 320px; filter: grayscale(.25) contrast(1.05); }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
}

/* --- Footer --- */
.site-footer { background: var(--bg); padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-logo { height: 30px; width: auto; opacity: .8; }
.footer-inner p { color: var(--cream-3); font-size: .78rem; font-weight: 300; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-2); transition: color .3s var(--ease-out); }
.footer-links a:hover { color: var(--gold-2); }

/* --- Custom cursor (solo dispositivos con ratón fino) --- */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor a, html.has-custom-cursor button {
    cursor: none;
  }
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor [contenteditable] {
    cursor: auto;
  }
}
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  display: none;
}
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor.is-ready { opacity: 1; }
.cursor.is-idle { opacity: 0; }
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .3s var(--ease-out), height .3s var(--ease-out);
}
.cursor.is-hover .cursor-ring { width: 58px; height: 58px; }
.cursor.is-hover .cursor-dot { opacity: 0; }

/* --- Floating action button --- */
.fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .7rem;
}
.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.fab.is-open .fab-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 220px;
  padding: .75rem 1.2rem;
  background: var(--cream);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
  transition: background .3s var(--ease-out);
}
.fab-item:hover { background: var(--gold-2); }
.fab-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.55);
  transition: transform .35s var(--ease-out), background .3s var(--ease-out);
}
.fab-toggle:hover { background: var(--gold-2); }
.fab.is-open .fab-toggle { transform: rotate(45deg); }

/* --- Chat panel (Marina — asistente simulado, sin IA externa) --- */
.chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 6.2rem;
  z-index: 700;
  width: min(340px, calc(100vw - 2.4rem));
  height: min(460px, calc(100vh - 8rem));
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  color: var(--cream);
  flex-shrink: 0;
}
.chat-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.chat-status { font-size: .7rem; color: var(--cream-3); letter-spacing: .03em; margin-top: .1rem; }
.chat-close { font-size: 1.3rem; line-height: 1; color: var(--cream-3); transition: color .3s var(--ease-out); }
.chat-close:hover { color: var(--gold-2); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.chat-msg {
  max-width: 84%;
  padding: .6rem .85rem;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.5;
}
.chat-msg-bot { align-self: flex-start; background: var(--cream); border: 1px solid var(--line-soft); border-bottom-left-radius: 2px; }
.chat-msg-user { align-self: flex-end; background: var(--gold); color: var(--ink); font-weight: 500; border-bottom-right-radius: 2px; }
.chat-msg-typing { align-self: flex-start; background: var(--cream); border: 1px solid var(--line-soft); border-bottom-left-radius: 2px; padding: .7rem .9rem; }
.chat-msg-typing span {
  display: inline-block; width: 6px; height: 6px; margin-right: 3px;
  border-radius: 50%; background: var(--ink-mute);
  animation: chatTyping 1.1s infinite ease-in-out;
}
.chat-msg-typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg-typing span:nth-child(3) { animation-delay: .3s; margin-right: 0; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.chat-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.chat-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: .86rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.chat-form input:focus { border-color: var(--gold); outline: none; }
.chat-form button {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease-out);
}
.chat-form button:hover { background: var(--gold-2); }

@media (max-width: 420px) {
  .chat-panel { right: 1.2rem; bottom: 5.8rem; }
}

/* --- Booking dialog (Fase 3 — reserva y pago simulados) --- */
.booking-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: min(720px, 92vw);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
  overflow: hidden;
}
.booking-dialog::backdrop {
  background: rgba(10,22,32,.72);
  backdrop-filter: blur(3px);
}
.booking-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  z-index: 2;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 50%;
  transition: color .3s var(--ease-out);
}
.booking-close:hover { color: var(--gold); }
.booking-body { max-height: 88vh; overflow-y: auto; }

.booking-step[data-step="1"] { display: block; }
@media (min-width: 720px) {
  .booking-step[data-step="1"] { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
}
.booking-gallery { display: flex; flex-direction: column; min-height: 0; }
.booking-hero-img { width: 100%; height: 240px; object-fit: cover; flex-shrink: 0; }
@media (min-width: 720px) { .booking-hero-img { height: 100%; flex: 1; } }
.booking-gallery-thumbs {
  display: flex;
  gap: .4rem;
  padding: .5rem;
  background: var(--ink);
  overflow-x: auto;
  flex-shrink: 0;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 3px;
  overflow: hidden;
  opacity: .5;
  border: 1px solid transparent;
  transition: opacity .3s var(--ease-out), border-color .3s var(--ease-out);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .8; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--gold); }

.booking-content { padding: 2rem 2.2rem 1rem; }
.booking-kicker { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.booking-content h2 { font-size: 1.5rem; font-weight: 400; color: var(--ink); margin-bottom: .8rem; }
.booking-desc { font-size: .9rem; font-weight: 300; color: var(--ink-mute); margin-bottom: .8rem; line-height: 1.55; }
.booking-spec { font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.4rem; }
.booking-summary-line { font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.6rem; }
.booking-section-label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }

.pkg-list { display: grid; gap: .7rem; }
.pkg-option {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.pkg-option:hover { border-color: var(--gold); }
.pkg-option.is-selected { border-color: var(--gold); background: rgba(173,138,85,.08); }
.pkg-label { font-size: .92rem; font-weight: 500; display: flex; flex-direction: column; gap: .2rem; }
.pkg-meta { font-size: .76rem; font-weight: 300; color: var(--ink-mute); }
.pkg-price { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 2.2rem;
  border-top: 1px solid var(--line-soft);
}
.booking-footer .btn-primary:only-child { margin-left: auto; }
.booking-footer .text-link { color: var(--ink); border-color: var(--line-soft); }
.booking-footer .text-link:hover { color: var(--gold); border-color: var(--gold); }
.booking-footer .btn-ghost { border-color: var(--line-soft); color: var(--ink); }
.booking-footer .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* --- Calendar --- */
.calendar { margin-top: .5rem; }
.calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.cal-nav { width: 30px; height: 30px; border: 1px solid var(--line-soft); border-radius: 50%; transition: border-color .3s var(--ease-out); }
.cal-nav:hover:not(:disabled) { border-color: var(--gold); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.calendar-weekdays span { text-align: center; font-size: .68rem; color: var(--ink-mute); padding-bottom: .4rem; }
.cal-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  border-radius: 50%;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.cal-cell:not(:disabled):not(.cal-cell-empty):hover { background: var(--line-soft); }
.cal-cell:disabled { color: var(--cream-2); opacity: .35; }
.cal-cell.is-selected { background: var(--gold); color: var(--ink); font-weight: 600; }

/* --- Route planner (planificador de rutas, Paso 1) --- */
.booking-section-hint { font-size: .68rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-mute); }
.route-planner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .5rem;
}
@media (min-width: 640px) { .route-planner { grid-template-columns: 1.3fr 1fr; } }
.route-map { background: var(--cream); padding: .5rem; }
.route-map-svg { width: 100%; height: auto; display: block; }
.route-origin circle { fill: var(--ink); }
.route-origin text { font-size: 9px; fill: var(--ink-mute); font-family: var(--sans); font-weight: 600; }
.route-marker { cursor: pointer; }
.route-marker circle { fill: var(--ivory); stroke: var(--gold); stroke-width: 1.5; transition: r .2s var(--ease-out), fill .2s var(--ease-out); }
.route-marker text { font-size: 8.5px; fill: var(--ink-mute); font-family: var(--sans); font-weight: 600; transition: fill .2s var(--ease-out); }
.route-marker:hover circle, .route-marker.is-selected circle { fill: var(--gold); r: 8; }
.route-marker.is-selected text { fill: var(--ink); }
.route-info { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.route-info-empty { font-size: .82rem; color: var(--ink-mute); font-style: italic; }
.route-info-name { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: .8rem; }
.route-info-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .7rem; }
.route-info-stats span { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.route-info-stats small { display: block; font-size: .64rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
.route-info-note { font-size: .68rem; color: var(--ink-mute); font-style: italic; }

/* --- Weather card (clima y estado del mar, Paso 2) --- */
.weather-card {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.weather-status { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.weather-card.is-alert { border-color: var(--coral, #b5533f); }
.weather-card.is-alert .weather-status { color: var(--coral, #b5533f); }
.weather-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .6rem; }
.weather-stats span { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.weather-stats small { display: block; font-size: .64rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
.weather-note { font-size: .74rem; color: var(--ink-mute); }
.weather-warning { font-size: .78rem; color: var(--coral, #b5533f); font-weight: 500; }

/* --- Extras / upsell (Paso 3) --- */
.extras-list { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.extra-option {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.extra-option:hover { border-color: var(--gold); }
.extra-option.is-selected { border-color: var(--gold); background: rgba(173,138,85,.08); }
.extra-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  position: relative;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.extra-option.is-selected .extra-check { background: var(--gold); border-color: var(--gold); }
.extra-option.is-selected .extra-check::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.extra-label { flex: 1; font-size: .88rem; font-weight: 500; color: var(--ink); display: flex; flex-direction: column; gap: .15rem; }
.extra-desc { font-size: .72rem; font-weight: 300; color: var(--ink-mute); }
.extra-price { font-family: var(--serif); font-size: .95rem; color: var(--ink); white-space: nowrap; }

/* --- Checkout (tarjeta simulada) --- */
.booking-summary-box {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
  font-size: .88rem;
  color: var(--ink-mute);
  display: grid;
  gap: .3rem;
}
.booking-summary-total { margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: .95rem; }
.booking-summary-total strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }

.card-form { display: grid; gap: 1rem; }
.card-form label { display: grid; gap: .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.card-form input {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .3s var(--ease-out);
}
.card-form input:focus { border-color: var(--gold); outline: none; }
.card-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-form.is-sending input { opacity: .5; }
.booking-disclaimer { font-size: .74rem; color: var(--ink-mute); font-style: italic; }

/* --- Confirmation mocks --- */
.booking-confirmation h2 { font-size: 1.4rem; }
.booking-locator { font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.8rem; }
.booking-locator strong { color: var(--gold); letter-spacing: .04em; }
.confirm-mock { margin-bottom: 1.4rem; }
.confirm-mock-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .6rem; }
.confirm-mock-card {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: .86rem;
  color: var(--ink-mute);
  display: grid;
  gap: .5rem;
}
.confirm-mock-card hr { border: 0; border-top: 1px solid var(--line-soft); margin: .2rem 0; }
.confirm-mock-card strong { color: var(--ink); }
.confirm-mock-bubble {
  display: inline-block;
  max-width: 82%;
  padding: .9rem 1.1rem;
  background: #DCF8C6;
  color: #1a1a1a;
  border-radius: 12px 12px 12px 2px;
  font-size: .86rem;
  line-height: 1.5;
}

@media (max-width: 539px) {
  .booking-footer { flex-direction: column-reverse; align-items: stretch; }
  .card-form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   7. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .contact-details li { flex-direction: row; align-items: baseline; gap: .8rem; }
  .contact-label { min-width: 9rem; }
}
@media (min-width: 960px) {
  section { padding-block: 8rem; }
}
