/* Marea Clara Tours — demo. Móvil primero; el escritorio se añade al final. */

:root {
  --bg: #f4efe6;
  --sand: #e9e0d0;
  --paper: #fffdf9;
  --ink: #14211f;
  --ink-soft: #2c3a37;
  --mute: #5d6b67;
  --sea: #0d5c5f;
  --sea-2: #1f8f8c;
  --sea-glow: #8fd3cc;
  --coral: #e5603f;
  --coral-2: #ef7a5c;
  --line: rgba(20, 33, 31, 0.12);
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(13, 52, 50, 0.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: 76px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.sprite { position: absolute; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Aviso de demo */
.demo-ribbon {
  position: relative;
  z-index: 30;
  margin: 0;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: #e9e0d0;
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}

/* Barra superior */
.nav {
  position: absolute;
  top: 33px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-solid {
  position: fixed;
  top: 0;
  background: rgba(244, 239, 230, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: nav-in .35s var(--ease);
}
@keyframes nav-in { from { transform: translateY(-100%); } to { transform: none; } }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 600 19px/1 var(--serif);
  font-style: italic;
  letter-spacing: -.01em;
}
.brand-mark { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-mark circle { fill: var(--coral-2); stroke: none; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .92;
}
.lang button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 12px/1 var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] { color: var(--sea); }
.nav:not(.is-solid) .lang button[aria-pressed="true"] { background: #fff; color: var(--sea); }
.nav.is-solid .lang button[aria-pressed="true"] { background: var(--sea); color: #fff; }

/* Portada: no ocupa toda la pantalla, para que asome el tour destacado */
.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--sea);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 50% 40%;
  transform-origin: 50% 60%;
  animation: hero-zoom 14s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 31, .55) 0%, rgba(8, 30, 31, 0) 26%),
    linear-gradient(0deg, rgba(8, 30, 31, .9) 0%, rgba(8, 30, 31, .45) 42%, rgba(8, 30, 31, 0) 70%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) 92px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea-glow);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero-title {
  font: 500 clamp(40px, 11.5vw, 84px)/.98 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: #ffd9c9;
}
.hero-sub {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}
.link-down {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}

/* Entrada de la portada */
.js .hero-content > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: .12s; }
.js .hero-content > :nth-child(3) { animation-delay: .24s; }
.js .hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #25d366; color: #06301a; box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7); }
.btn-primary .ico { width: 22px; height: 22px; }
.btn-sea { background: var(--sea); color: #fff; min-height: 46px; padding: 0 22px; }
.btn-line { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); min-height: 46px; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 14px 30px -12px rgba(229, 96, 63, .8); }

/* Tour destacado, que se solapa con la portada */
.featured {
  position: relative;
  z-index: 2;
  margin: -58px var(--gutter) 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.featured-body { padding: 20px 20px 22px; }
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fde6dd;
  color: #a8391f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.featured h2 { font: 500 27px/1.1 var(--serif); letter-spacing: -.015em; }
.featured-body > p:not(.tag) { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
  font-size: 14px;
}
.facts li { display: flex; align-items: center; gap: 6px; }
.facts .ico { color: var(--sea-2); }
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price { color: var(--mute); font-size: 14px; }
.price strong { font: 600 28px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }

/* Lo que incluye: fila que se desliza */
.chips {
  display: flex;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0 var(--gutter) 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips li {
  flex: none;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Secciones */
.section { padding: 64px 0 0; }
.section-head { padding: 0 var(--gutter); margin-bottom: 24px; }
.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea-2);
}
.title {
  font: 500 clamp(32px, 8.6vw, 54px)/1.02 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.title em { font-style: italic; font-weight: 400; color: var(--sea); }
.hint { margin-top: 10px; font-size: 13px; color: var(--mute); }
.note { margin-top: 10px; font-size: 13px; color: var(--mute); font-style: italic; }

/* Carril de tours */
.rail {
  display: flex;
  gap: 14px;
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 78%;
  max-width: 330px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(13, 52, 50, .4);
}
.card-img { overflow: hidden; }
.card-img img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card h3 { font: 500 22px/1.15 var(--serif); letter-spacing: -.01em; }
.card-body > p:not(.meta) { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 14px;
  font-size: 13.5px;
  color: var(--mute);
}
.price-sm { font: 600 22px/1 var(--serif); color: var(--ink); }
.card .btn { width: 100%; }
.rail-progress {
  height: 3px;
  margin: 0 var(--gutter);
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rail-progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: 3px;
  background: var(--sea-2);
  transform-origin: left;
  transition: transform .15s linear;
}

/* Reserva directo */
.perks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.perks li {
  position: relative;
  padding: 22px 20px 22px 72px;
  border-radius: var(--radius);
  background: var(--sand);
}
.perk-n {
  position: absolute;
  left: 20px;
  top: 20px;
  font: italic 400 30px/1 var(--serif);
  color: var(--coral);
}
.perks h3 { font: 500 20px/1.2 var(--serif); }
.perks p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 8px;
  margin: 64px 0 0;
  padding: 0 var(--gutter);
}
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-tall { grid-row: span 2; }
/* La cara del perezoso queda en el tercio superior de la foto */
.gallery .img-perezoso { object-position: 68% 28%; }
.g-wide { grid-column: span 2; grid-row: span 1; }

/* Reseñas */
.quotes {
  display: flex;
  gap: 14px;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 84%;
  max-width: 380px;
  margin: 0;
  padding: 24px 22px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.stars { color: #e0a43a; letter-spacing: .12em; font-size: 15px; }
.quote p:not(.stars) { margin-top: 12px; font: italic 400 19px/1.45 var(--serif); color: var(--ink); }
.quote footer { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--mute); }

/* Pasos */
.step-list { margin: 0; padding: 0 var(--gutter); list-style: none; display: grid; gap: 0; }
.step-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: 1px solid var(--line); }
.step-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font: 500 19px/1 var(--serif);
}
.step-list p { padding-top: 8px; font-size: 16px; color: var(--ink-soft); }

/* Preguntas */
.faq-list { padding: 0 var(--gutter); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 19px 40px 19px 0;
  font: 500 18px/1.3 var(--serif);
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--sea);
  border-bottom: 2px solid var(--sea);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 0 20px; font-size: 15.5px; color: var(--ink-soft); }

/* Dónde estamos */
.visit { padding-left: var(--gutter); padding-right: var(--gutter); }
.visit .title { margin-bottom: 18px; }
.visit-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.visit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.visit-list .ico { margin-top: 3px; color: var(--sea-2); }

/* Bloque para el dueño del negocio */
.owner {
  position: relative;
  margin: 72px var(--gutter) 0;
  padding: 34px 24px 30px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--sea);
}
.owner::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(143, 211, 204, .55), transparent 70%),
    radial-gradient(45% 45% at 85% 80%, rgba(239, 122, 92, .55), transparent 70%),
    radial-gradient(50% 50% at 60% 30%, rgba(31, 143, 140, .8), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }
.owner .eyebrow { color: var(--sea-glow); }
.owner h2 { font: 500 clamp(30px, 8vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; }
.owner h2 em { font-style: italic; font-weight: 400; color: #ffd9c9; }
.owner > p:not(.eyebrow):not(.owner-sign) { margin: 14px 0 24px; font-size: 16px; color: rgba(255, 255, 255, .9); max-width: 40ch; }
.owner strong { color: #fff; }
.owner-sign { margin-top: 18px; font: italic 400 16px/1 var(--serif); color: rgba(255, 255, 255, .75); }

/* Pie */
.foot {
  margin-top: 56px;
  padding: 34px var(--gutter) calc(170px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--mute);
}
.foot-brand { margin-bottom: 6px; font: italic 600 20px/1.2 var(--serif); color: var(--ink); }
.credits { margin-top: 16px; }
.credits summary { cursor: pointer; text-decoration: underline; }
.credits ul { margin: 10px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.7; }

/* Barra fija de WhatsApp: aparece cuando el botón de la portada ya no se ve.
   Va por encima de la etiqueta «Powered by Netlify», que ocupa la esquina inferior derecha. */
.wa-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #06301a;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 16px 30px -12px rgba(6, 48, 26, .55);
  transform: translateY(160%);
  transition: transform .4s var(--ease);
}
.wa-bar .ico { width: 22px; height: 22px; }
.wa-bar.is-on { transform: none; }

/* Aparición al hacer scroll. Sin JS, todo se ve. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .owner::before { animation: none; }
}

/* Tablet y escritorio */
@media (min-width: 900px) {
  :root { --gutter: max(40px, calc((100vw - 1180px) / 2)); }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .hero { min-height: 88vh; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 30, 31, .82) 0%, rgba(8, 30, 31, .55) 38%, rgba(8, 30, 31, 0) 68%),
      linear-gradient(0deg, rgba(8, 30, 31, .55) 0%, rgba(8, 30, 31, 0) 40%),
      linear-gradient(180deg, rgba(8, 30, 31, .45) 0%, rgba(8, 30, 31, 0) 22%);
  }
  .hero-content { padding-bottom: 150px; max-width: 760px; margin-left: var(--gutter); padding-left: 0; }
  .hero-title { font-size: clamp(64px, 7vw, 96px); }
  .hero-sub { font-size: 19px; }
  .featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    margin: -110px var(--gutter) 0;
  }
  .featured img { height: 100%; aspect-ratio: auto; }
  .featured-body { padding: 40px 44px; align-self: center; }
  .featured h2 { font-size: 40px; }
  .chips { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .section { padding-top: 110px; }
  .section-head { margin-bottom: 40px; }
  .hint { display: none; }
  .rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    gap: 22px;
  }
  .card { max-width: none; }
  .rail-progress { display: none; }
  .perks { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; margin-top: 110px; }
  .g-wide { grid-column: span 2; }
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 18px; }
  .quote { max-width: none; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step-list li, .step-list li:last-child { border-bottom: 0; grid-template-columns: 1fr; }
  .faq-list { max-width: 820px; }
  .owner { padding: 64px 64px 56px; text-align: left; }
  .owner > p:not(.eyebrow):not(.owner-sign) { font-size: 18px; }
  .wa-bar { left: 28px; right: auto; bottom: 28px; padding: 0 26px; }
  .foot { padding-bottom: 50px; }
}
@media (min-width: 900px) and (hover: hover) {
  .card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(13, 52, 50, .5); }
}

/* En las direcciones .netlify.app Netlify pone su etiqueta abajo a la derecha: la barra sube */
.on-netlify .wa-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Aviso de muestra y oferta de Romela: solo con ?de=romela */
html:not(.de-romela) .demo-ribbon,
html:not(.de-romela) .owner { display: none; }
