/* =========================================================
   Marruecos con Samir — estilos
   Colores principales: blanco y oro
   Colores secundarios: rojo y verde de la bandera de Marruecos
   ========================================================= */

/* ---------- Tipografías (archivos en la carpeta fonts/) ---------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/great-vibes.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}

:root {
  --gold: #c39a43;
  --gold-dark: #9c7629;
  --gold-light: #f2e5c4;
  --cream: #fbf7ef;
  --white: #ffffff;
  --ink: #2c2118;        /* texto principal (marrón muy oscuro) */
  --muted: #6f6253;
  --line: #eadfca;
  --red: #c1272d;        /* rojo bandera */
  --green: #006233;      /* verde bandera */
  --green-dark: #004d28;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(60, 40, 10, .08);
  --shadow-lg: 0 20px 50px rgba(60, 40, 10, .16);

  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
[data-lucide], svg.lucide { width: 1.2em; height: 1.2em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.9em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 8px 20px rgba(195,154,67,.35); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--wa { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(0,98,51,.25); }
.btn--wa:hover { background: var(--green-dark); }

/* ---------- Textos comunes ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .6em;
}
.eyebrow--light { color: var(--gold-light); }
.script { font-family: var(--font-script); font-weight: 400; color: var(--gold); }

.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--pattern {
  background-color: var(--cream);
  /* patrón suave de estrellas marroquíes */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c39a43' stroke-opacity='.13' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__title { font-size: clamp(2rem, 4vw, 2.9rem); }
.section__lead { color: var(--muted); margin: 0; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 20px; color: var(--green); }
.ornament span { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 22px; height: 22px; }
.ornament--left { justify-content: flex-start; }
.ornament--left span:first-child { display: none; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(60,40,10,.08); }
.header::before { /* línea fina con los colores de la bandera */
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-light); }
.brand__text { font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; line-height: 1; }
.brand__text em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--gold); font-size: 1.25em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0;
  white-space: nowrap; /* que «Quién es Samir» no se parta en dos líneas */
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold-dark); }
.nav__cta { padding: .6em 1.15em; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); padding: calc(var(--header-h) + 40px) 0 150px; overflow: hidden; background: #2a1c10;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after { /* oscurece para que el texto se lea bien */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(20,12,4,.5), rgba(20,12,4,0) 80%),
    linear-gradient(180deg, rgba(20,12,4,.6) 0%, rgba(20,12,4,.3) 30%, rgba(20,12,4,.45) 65%, rgba(20,12,4,.8) 100%);
}
.hero__title, .hero__text, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero__slide {
  position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__content { max-width: 760px; text-align: center; }
.hero__content > * { animation: heroIn .9s ease both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__content > :nth-child(4) { animation-delay: .36s; }
.hero__content > :nth-child(5) { animation-delay: .5s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }

.hero__trust {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; padding: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__trust-samir {
  display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; text-decoration: none; text-align: left;
  border-radius: 999px; background: rgba(255,255,255,.12); transition: background .2s;
}
.hero__trust-samir:hover { background: rgba(255,255,255,.22); }
.hero__trust-samir img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 40% 25%; box-shadow: 0 0 0 2px var(--gold); }
.hero__trust-samir span { font-size: .78rem; line-height: 1.2; opacity: .9; }
.hero__trust-samir strong { display: block; font-size: .95rem; opacity: 1; }
.hero__trust-item { padding: 0 14px; font-size: .78rem; line-height: 1.15; opacity: .9; }
.hero__trust-item strong { display: block; font-family: var(--font-title); font-size: 1.35rem; color: var(--gold-light); }
.hero__trust-item + .hero__trust-item { border-left: 1px solid rgba(255,255,255,.25); }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 100px; width: min(1180px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none;
}
.hero__place { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; opacity: .85; }
.hero__place svg { width: 16px; height: 16px; color: var(--gold-light); }
.hero__dots { display: flex; gap: 8px; pointer-events: auto; }
.hero__dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.45);
  transition: width .3s, background .3s;
}
.hero__dots button.is-active { width: 30px; background: var(--gold); }

/* Cabecera transparente encima de la portada (en ordenador) */
.header { transition: background .35s, border-color .35s, box-shadow .3s; }
@media (min-width: 961px) {
  .header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
  .header:not(.is-scrolled) .brand__text,
  .header:not(.is-scrolled) .nav a:not(.btn) { color: var(--white); }
  .header:not(.is-scrolled) .brand__text em { color: var(--gold-light); }
  .header:not(.is-scrolled) .nav a.is-active { color: var(--gold-light); }
}
@media (max-width: 960px) {
  .header:not(.is-scrolled):not(.menu-open) { background: transparent; border-color: transparent; backdrop-filter: none; }
  .header:not(.is-scrolled):not(.menu-open) .brand__text { color: var(--white); }
  .header:not(.is-scrolled):not(.menu-open) .brand__text em { color: var(--gold-light); }
  .header:not(.is-scrolled):not(.menu-open) .menu-toggle span { background: var(--white); }
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; top: 3px; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); pointer-events: none;
}
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; margin-bottom: .3em; }
.hero__title .script { display: block; font-size: 1.05em; color: var(--gold-light); margin-top: .05em; }
.hero__text { font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 600px; margin: 0 auto 2em; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; color: var(--white);
  animation: bounce 2s infinite; opacity: .85;
}
.hero__scroll svg { width: 32px; height: 32px; }
@keyframes bounce { 50% { transform: translateY(8px); } }

/* ---------- Ventajas ---------- */
.perks { position: relative; z-index: 3; margin-top: -64px; background: transparent; }
.perks__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
  border-radius: 20px; box-shadow: 0 20px 50px rgba(40,25,8,.14); border: 1px solid var(--line);
}
.perk { display: flex; align-items: center; gap: 14px; padding: 28px 18px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk__icon { width: 44px !important; height: 44px !important; padding: 10px; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); flex-shrink: 0; }
.perk strong { display: block; font-size: 1rem; }
.perk span { font-size: .88rem; color: var(--muted); }

/* ---------- Quién es Samir ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.about__media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.arch-frame {
  border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--white); border: 8px solid var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-light);
  display: grid; place-items: center;
}
.about__photo { width: 100%; height: 100%; object-fit: cover; }
.about__photo--samir { object-position: 40% 30%; transform: scale(1.2); transform-origin: 40% 38%; }
.about__photo.is-logo { width: 82%; height: auto; border-radius: 50%; }
.about__badge {
  position: absolute; bottom: 28px; right: -18px; display: flex; align-items: center; gap: 8px;
  background: var(--white); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow);
  font-weight: 600; font-size: .9rem;
}
.about__badge .icon { color: var(--green); }
.about__text p { color: #4c4035; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 500; }
.checklist svg { color: var(--white); background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 18px 14px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: flex; justify-content: center; align-items: center; height: 2.6rem;
  font-family: var(--font-title); font-size: 2.4rem; line-height: 1; color: var(--gold-dark);
}
.stat strong svg { width: 2rem; height: 2rem; color: var(--green); }
.stat span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.35; margin-top: 6px; }
@media (max-width: 640px) {
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 1.9rem; }
  .stat span { font-size: .78rem; }
}
.signature { font-family: var(--font-script); font-size: 3rem; color: var(--gold); line-height: 1; margin: 0; }

/* ---------- Galería de destinos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); padding: .5em 1.2em; border-radius: 999px;
  font-weight: 500; font-size: .92rem; color: var(--ink); transition: .2s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dest-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dest-card.is-hidden { display: none; }
.dest-card__img {
  display: block; width: 100%; padding: 0; border: 0; background: var(--gold-light);
  aspect-ratio: 4 / 3; overflow: hidden; position: relative; cursor: zoom-in;
}
.dest-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dest-card:hover .dest-card__img img { transform: scale(1.06); }
.dest-card__body { padding: 20px 22px 24px; }
.dest-card__body h3 { font-size: 1.55rem; margin-bottom: .25em; }
.dest-card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 4px;
}

/* ---------- Rutas ---------- */
.routes { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.routes__list { display: flex; flex-direction: column; gap: 12px; }
.route-tab {
  text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; transition: .2s; color: var(--ink); position: relative;
}
.route-tab:hover { border-color: var(--gold); }
.route-tab[aria-selected="true"] { border-color: var(--gold); box-shadow: var(--shadow); background: linear-gradient(90deg, var(--gold-light), var(--white) 70%); }
.route-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1.5px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--gold); }
.route-tab strong { display: block; font-family: var(--font-title); font-size: 1.3rem; line-height: 1.2; }
.route-tab .route-tab__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.route-tab .badge { white-space: nowrap;background: var(--red); color: var(--white); font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }

.routes__detail { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.map { aspect-ratio: 16 / 9; background: var(--gold-light); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.itinerary { padding: 26px 28px 30px; }
.itinerary__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.itinerary__head h3 { font-size: 1.8rem; margin: 0; }
.itinerary__duration { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-weight: 600; }
.itinerary__stops { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.days { list-style: none; padding: 0; margin: 0 0 24px; }
.days li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 16px; position: relative; }
.days li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.days__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--gold); color: var(--gold-dark); font-weight: 600; font-size: .85rem; line-height: 1;
}
.days strong { display: block; }
.days p { margin: 0; color: var(--muted); font-size: .95rem; }
.itinerary__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn--outline:hover { background: var(--gold-light); }

/* ---------- Actividades ---------- */
.activities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.activity {
  position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 20px 20px;
  display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; transition: .25s;
}
.activity:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.activity.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,98,51,.12); }
.activity__img { margin: 0 -20px; width: calc(100% + 40px); aspect-ratio: 16 / 10; overflow: hidden; background: var(--gold-light); }
.activity__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.activity:hover .activity__img img { transform: scale(1.07); }
.activity.is-selected::after {
  content: "✓"; position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: var(--white); font-weight: 700; box-shadow: var(--shadow);
}
.activity__icon {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: -26px 0 12px;
  background: var(--white); color: var(--gold-dark); border: 3px solid var(--white); box-shadow: 0 6px 16px rgba(60,40,10,.15);
  outline: 1.5px solid var(--gold-light);
}
.activity__icon svg { width: 26px; height: 26px; }
.activity h3 { font-size: 1.35rem; margin-bottom: .3em; }
.activity p { color: var(--muted); font-size: .93rem; flex: 1; }
.activity__btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--gold); color: var(--gold-dark);
  background: transparent; border-radius: 999px; padding: .4em 1em; font-size: .87rem; font-weight: 600; transition: .2s;
}
.activity__btn:hover { background: var(--gold-light); }
.activity.is-selected .activity__btn { background: var(--green); border-color: var(--green); color: var(--white); }
.activity__btn svg { width: 16px; height: 16px; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem;
}
.steps strong { display: block; }
.steps div { font-size: .93rem; color: var(--muted); }
.steps div strong { color: var(--ink); font-size: 1rem; }

/* ---------- Formulario ---------- */
.planner { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form { padding: 34px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend {
  font-family: var(--font-title); font-weight: 700; font-size: 1.45rem; margin-bottom: 14px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
legend::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid-2--tight { gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span, .field__label { font-size: .88rem; font-weight: 600; }
.field b { color: var(--red); }
.field small { font-weight: 400; color: var(--muted); }
.field__label { margin: 22px 0 10px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195,154,67,.18); }
input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(193,39,45,.12); }

.days-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px;
  background: var(--gold-light); color: var(--gold-dark); font-weight: 600; font-size: .9rem;
}
.days-pill[hidden] { display: none; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.checks .check span {
  display: inline-block; padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .88rem; cursor: pointer; transition: .2s; user-select: none;
}
.checks .check span:hover { border-color: var(--gold); }
.checks .check input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.checks .check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(195,154,67,.3); }
.check--inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .93rem; cursor: pointer; }
.check--inline input { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; accent-color: var(--green); }

.form__error { color: var(--red); font-weight: 500; margin: 0 0 14px; }
.form__note { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* Vista previa estilo WhatsApp */
.preview { position: sticky; top: calc(var(--header-h) + 20px); }
.preview__phone { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--ink); background: #efe7dc; }
.preview__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green); color: var(--white); }
.preview__top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.preview__top strong { display: block; line-height: 1.2; }
.preview__top span { font-size: .78rem; opacity: .85; }
.preview__chat {
  padding: 18px 14px; min-height: 320px; max-height: 520px; overflow-y: auto;
  background-color: #efe7dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c39a43' stroke-opacity='.12' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
.bubble {
  background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 10px 12px; margin-left: 24px;
  font-size: .84rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.08);
  position: relative;
}
.bubble::after { content: ""; position: absolute; right: -8px; top: 0; border: 8px solid transparent; border-top-color: #d9fdd3; border-left-color: #d9fdd3; }
.preview__caption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Pie ---------- */
.footer { background: #1f1710; color: #e9dfcf; }
.flag-line { height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer__brand img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 3px var(--gold); }
.footer__brand p { max-width: 320px; opacity: .8; }
.footer h4 { color: var(--gold); font-size: 1.35rem; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a { text-decoration: none; opacity: .8; }
.footer__links a:hover { opacity: 1; color: var(--gold-light); }
.footer__contact p { opacity: .8; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 26px; font-size: .85rem; opacity: .65;
}

/* ---------- Botón flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Visor de fotos ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,14,8,.92);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb {
  position: relative; width: min(1120px, 100%); height: min(660px, calc(100vh - 48px));
  /* minmax(0, …): que la fila de miniaturas no ensanche la columna de fotos y aplaste la del texto */
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: lbIn .3s ease;
}
@keyframes lbIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lb__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s;
}
.lb__close:hover { background: var(--gold); color: var(--white); }
.lb__close svg { width: 22px; height: 22px; }

.lb__gallery { display: flex; flex-direction: column; background: #1f1710; min-height: 0; min-width: 0; }
.lb__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb__stage img {
  width: 100%; height: 100%; object-fit: cover; transition: opacity .25s;
  transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none;
}
.lb__stage img.is-loading { opacity: .35; }
/* Zoom: lupa sobre la foto; con la foto ampliada, manita para arrastrar */
.lb__stage { cursor: zoom-in; }
.lb__stage.is-zoomed { cursor: grab; }
.lb__stage.is-dragging { cursor: grabbing; }
.lb__stage button { cursor: pointer; }
.lb__hint {
  position: absolute; left: 50%; top: 14px; translate: -50% -6px; z-index: 2; pointer-events: none;
  background: rgba(31,23,16,.78); color: var(--white); font-size: .8rem; font-weight: 500; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; opacity: 0; transition: opacity .3s, translate .3s;
}
.lb__hint.is-visible { opacity: 1; translate: -50% 0; }
.lb__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s;
}
.lb__arrow:hover { background: var(--gold); color: var(--white); }
.lb__arrow svg { width: 24px; height: 24px; }
.lb__arrow--prev { left: 14px; }
.lb__arrow--next { right: 14px; }
.lb__counter {
  position: absolute; left: 14px; bottom: 14px; background: rgba(31,23,16,.75); color: var(--white);
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.lb__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; flex-shrink: 0; }
.lb__thumbs button {
  flex: 0 0 auto; width: 84px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s; background: #000;
}
.lb__thumbs button:hover { opacity: .9; }
.lb__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lb__info { padding: 34px 32px 28px; overflow-y: auto; display: flex; flex-direction: column; }
.lb__info h3 { font-size: 2.2rem; margin: 2px 0 6px; }
.lb__time { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.lb__time svg { width: 18px; height: 18px; }
.lb__text { color: #4c4035; font-size: .97rem; }
.lb__info h4 { font-size: 1.3rem; margin: 6px 0 10px; }
.lb__todo { list-style: none; padding: 0; margin: 0 0 22px; }
.lb__todo li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.lb__todo li:last-child { border-bottom: 0; }
.lb__todo li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.lb__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.lb__actions .btn { flex: 1; }
.lb__actions .btn svg { width: 18px; height: 18px; }
#lbAdd.is-added { background: var(--green); box-shadow: none; }

/* Contador de fotos y enlace en las tarjetas */
.dest-card__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(31,23,16,.72); color: var(--white); font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.dest-card__count svg { width: 15px; height: 15px; }
.dest-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none;
  color: var(--gold-dark); font-weight: 600; font-size: .92rem;
}
.dest-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.dest-card__more:hover svg { transform: translateX(4px); }

/* Selector de cómo elegir actividades */
.act-mode {
  max-width: 760px; margin: -12px auto 36px; padding: 22px 24px; text-align: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px;
}
.act-mode__q { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; margin-bottom: 12px; }
.segmented { display: inline-flex; padding: 5px; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; }
.segmented__btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted);
  padding: .65em 1.3em; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s;
}
.segmented__btn svg { width: 18px; height: 18px; }
.segmented__btn:hover { color: var(--ink); }
.segmented__btn[aria-checked="true"] { background: var(--gold); color: var(--white); box-shadow: 0 6px 16px rgba(195,154,67,.35); }
.act-mode__hint { color: var(--muted); font-size: .95rem; margin: 14px auto; max-width: 560px; }
.act-mode__hint strong { color: var(--ink); }
.act-mode__ask { font-size: .9rem; }
.activities.is-advice .activity { opacity: .8; }

/* ---------- Galería: tarjetas destacadas (solo con el filtro "Todos") ---------- */
@media (min-width: 961px) {
  .gallery { grid-auto-flow: dense; }
  .gallery.is-all .dest-card--wide { grid-column: span 2; }
  .gallery.is-all .dest-card--wide .dest-card__img { aspect-ratio: 2.77 / 1; }
}

/* ---------- Firma + enlace a vídeos en "Quién es Samir" ---------- */
.about__sign { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.about__videos {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem;
  color: var(--gold-dark); border-bottom: 1.5px solid var(--gold-light); padding-bottom: 2px;
}
.about__videos:hover { border-color: var(--gold); }

/* ---------- Sección oscura: vídeos de Instagram ---------- */
.section--dark {
  background-color: #1f1710; color: #f3ead9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c39a43' stroke-opacity='.10' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
.section--dark .section__title { color: var(--white); }
.section--dark .section__title .script { color: var(--gold); font-size: 1.15em; }
.section--dark .section__lead { color: rgba(243,234,217,.78); }
.section--dark .ornament { color: #3fae6a; }

.ig-profile {
  display: flex; align-items: center; gap: 16px; max-width: 640px; margin: -8px auto 40px; padding: 14px 16px 14px 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(195,154,67,.35); border-radius: 999px;
}
.ig-profile__avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 40% 25%; flex-shrink: 0;
  box-shadow: 0 0 0 2px #1f1710, 0 0 0 4px var(--gold);
}
.ig-profile__text { flex: 1; min-width: 0; line-height: 1.35; }
.ig-profile__text strong { display: block; color: var(--white); font-size: 1.05rem; }
.ig-profile__text span { font-size: .87rem; color: rgba(243,234,217,.72); }
.ig-profile .btn { padding: .65em 1.2em; }

.ig-wrap { position: relative; }
.ig-feed {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.ig-card { flex: 0 0 340px; scroll-snap-align: start; display: flex; flex-direction: column; }
.ig-card blockquote.instagram-media {
  margin: 0; min-height: 520px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.ig-card blockquote.instagram-media a { color: var(--gold); font-weight: 600; }
.ig-card iframe.instagram-media { margin: 0 !important; border-radius: 14px !important; border: 0 !important; width: 100% !important; }
.ig-card__caption { margin: 12px 4px 0; font-size: .92rem; color: rgba(243,234,217,.8); }
.ig-card__caption strong { display: block; color: var(--gold); font-family: var(--font-title); font-size: 1.25rem; }
.ig-arrow {
  position: absolute; top: 240px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: transform .2s, opacity .2s;
}
.ig-arrow:hover { transform: scale(1.08); }
.ig-arrow[disabled] { opacity: 0; pointer-events: none; }
.ig-arrow svg { width: 24px; height: 24px; }
.ig-arrow--prev { left: -18px; }
.ig-arrow--next { right: -18px; }

.footer__ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; opacity: .85; }
.footer__ig:hover { opacity: 1; color: var(--gold-light); }

@media (max-width: 960px) {
  .ig-arrow { display: none; }
}
@media (max-width: 640px) {
  .ig-profile { flex-wrap: wrap; border-radius: 20px; justify-content: center; text-align: center; }
  .ig-profile__text { flex-basis: calc(100% - 80px); text-align: left; }
  .ig-profile .btn { width: 100%; }
  .ig-card { flex-basis: calc(100vw - 48px); }
}

/* ---------- Rutas: miniatura en cada pestaña ---------- */
.route-tab { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.route-tab__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--gold-light); transition: transform .3s; }
.route-tab:hover .route-tab__img { transform: scale(1.05); }
.route-tab__body { min-width: 0; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__head .section__lead { margin-bottom: 22px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-light); color: var(--gold-dark); font-size: 1.3rem; font-weight: 500; transition: transform .25s, background .25s, color .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--white); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: #4c4035; }

/* ---------- Franja final ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0; color: var(--white); text-align: center; }
.cta-band__bg {
  position: absolute; inset: -40px 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,12,4,.55), rgba(20,12,4,.7)),
    url("https://images.unsplash.com/photo-1613169620329-6785c004d900?w=1800&q=70&auto=format&fit=crop") center/cover;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; margin-bottom: .35em; }
.cta-band h2 .script { color: var(--gold-light); font-size: 1.15em; }
.cta-band__inner > p:not(.eyebrow) { max-width: 560px; margin: 0 auto 2em; font-size: 1.1rem; opacity: .92; }

/* Tarjetas que aparecen al hacer scroll: el hover sigue siendo rápido */
.reveal--card.is-visible { transition: opacity .7s ease, transform .5s ease, box-shadow .3s, border-color .25s; }

@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .faq__head { position: static; }
}
@media (max-width: 640px) {
  .route-tab__img { width: 52px; height: 52px; }
  .faq__item summary { padding: 16px 16px; font-size: .97rem; }
  .faq__item p { padding: 0 16px 18px; font-size: .95rem; }
  .cta-band { padding: 80px 0; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Pantallas medianas (portátil pequeño, tablet en horizontal): solo el logo, para que quepa el menú */
@media (min-width: 961px) and (max-width: 1180px) {
  body:not(.legal-page) .header .brand__text { display: none; }
}

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .9rem; }
  .activities { grid-template-columns: repeat(3, 1fr); }
  .planner { grid-template-columns: 1fr 320px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand__logo { width: 46px; height: 46px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; padding: .9em; }

  .section { padding: 72px 0; }
  .perks__grid { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 340px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .routes { grid-template-columns: 1fr; }
  .routes__list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .route-tab { min-width: 250px; scroll-snap-align: start; }
  .route-tab[aria-selected="true"]::before { display: none; }
  .activities { grid-template-columns: repeat(2, 1fr); }
  .planner { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .lightbox { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .lb { grid-template-columns: 1fr; height: auto; max-height: none; margin: auto 0; }
  .lb__stage { flex: none; aspect-ratio: 4 / 3; }
  .lb__info { padding: 22px 20px 24px; overflow: visible; }
  .lb__info h3 { font-size: 1.9rem; padding-right: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text { font-size: 1.15rem; }
  .hero__actions .btn { width: 100%; }
  .perk { flex-direction: column; text-align: center; gap: 8px; padding: 18px 8px; }
  .perk span { font-size: .8rem; }
  .hero { padding-bottom: 140px; }
  .hero__trust-item { padding: 0 10px; }
  .hero__place { font-size: .78rem; }
  .about__badge { right: 0; }
  .gallery { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3.4; }
  .itinerary { padding: 22px 18px 24px; }
  .itinerary__actions .btn { width: 100%; }
  .activities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .activity { padding: 0 12px 14px; }
  .activity__img { margin: 0 -12px; width: calc(100% + 24px); aspect-ratio: 4 / 3; }
  .activity__icon { width: 42px; height: 42px; margin: -21px 0 8px; }
  .activity__icon svg { width: 20px; height: 20px; }
  .activity h3 { font-size: 1.12rem; }
  .activity p { font-size: .8rem; line-height: 1.45; margin-bottom: 10px; }
  .activity__btn { font-size: .78rem; padding: .4em .8em; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .form { padding: 22px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--tight { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding: 0; }
  .lb { border-radius: 0; min-height: 100%; }
  .lb__arrow { width: 40px; height: 40px; }
  .lb__thumbs button { width: 70px; height: 50px; }
  .lb__actions .btn { flex: 1 1 100%; }
  .act-mode { padding: 18px 14px; }
  .segmented { display: flex; flex-direction: column; border-radius: 16px; width: 100%; }
  .segmented__btn { justify-content: center; border-radius: 12px; }
  .act-mode__ask { width: 100%; white-space: normal; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* =========================================================
   Cookies y páginas legales
   ========================================================= */

/* ---------- Aviso de cookies (abajo) ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 98; translate: -50% 16px;
  width: min(680px, calc(100% - 32px)); padding: 20px 22px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .3s, translate .3s;
}
.cookie-banner.is-visible { opacity: 1; translate: -50% 0; }
.cookie-banner::before { /* línea con los colores de la bandera */
  content: ""; position: absolute; inset: 0 18px auto; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%);
}
.cookie-banner__title { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.cookie-banner__text { font-size: .92rem; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.cookie-banner__text strong { color: var(--ink); }
.cookie-banner__text a { color: var(--gold-dark); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner__actions .btn { min-width: 130px; }

/* ---------- Cajas que sustituyen a Instagram y al mapa sin permiso ---------- */
.consent-box { display: none; }
html:not(.cookies-ok) .consent-box { display: block; }
html:not(.cookies-ok) .ig-wrap { display: none; }
.consent-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.consent-box--dark {
  max-width: 640px; margin: 0 auto; padding: 28px 24px; text-align: center; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: rgba(243,234,217,.85);
}
.consent-box--dark strong { color: var(--white); }
.map { position: relative; }
.consent-box--map {
  position: absolute; inset: 0; padding: 24px; text-align: center; color: var(--ink);
  background: var(--gold-light);
}
html:not(.cookies-ok) .consent-box--map { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.consent-box--map > svg { width: 36px; height: 36px; color: var(--gold-dark); margin-bottom: 8px; }
.consent-box--map p { max-width: 420px; font-size: .95rem; }

.form__legal { font-size: .8rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.form__legal a { color: var(--gold-dark); }

/* ---------- Enlaces legales del pie ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a, .footer__legal button {
  color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit;
}
.footer__legal a:hover, .footer__legal button:hover, .footer__legal [aria-current] { color: var(--gold-light); text-decoration: underline; }

/* ---------- Páginas legales ---------- */
.legal-page .footer__bottom { opacity: .8; }
.legal { padding: calc(var(--header-h) + 56px) 0 80px; background: var(--cream); }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.6rem; margin: 2em 0 .5em; color: var(--ink); }
.legal__date { color: var(--muted); font-size: .9rem; }
.legal__lead { font-size: 1.08rem; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--white); border-radius: 0 12px 12px 0; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--gold-dark); }
.legal__data { list-style: none; padding: 18px 22px !important; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.legal__more { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); color: var(--muted); }
.legal-pending { background: #fff3a8; color: #6b5200; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.legal__choice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 24px 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.legal__choice p { margin: 0; }
.legal__choice-actions { display: flex; gap: 10px; }
.legal__table { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--gold-light); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: .85em; background: var(--cream); padding: .1em .35em; border-radius: 4px; }

/* ---------- Página de error 404 ---------- */
.notfound { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 0 60px; text-align: center; }
.notfound__inner { max-width: 620px; }
.notfound__code { font-family: var(--font-title); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; color: var(--gold); margin: 0; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

@media (max-width: 640px) {
  .cookie-banner { bottom: 12px; padding: 18px 16px 16px; }
  .cookie-banner__actions .btn { flex: 1; min-width: 0; }
  .legal-page .brand__text { display: none; }
  .footer__bottom { padding-bottom: 90px; } /* que los botones flotantes no tapen los enlaces */
  .legal { padding-top: calc(var(--header-h) + 32px); }
  .legal__choice-actions { width: 100%; }
  .legal__choice-actions .btn { flex: 1; }
}

/* =========================================================
   Contenido de Samir (noviembre de 2026): ruta única,
   actividades por zona, sobre Samir y fotos verticales
   ========================================================= */

/* ---------- Quién es Samir ---------- */
.about__quote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.7);
  border-radius: 0 12px 12px 0; font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.about__promise { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--ink) !important; margin: 1.4em 0 .5em; }
.checklist li { align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 2px; }
.footer__motto { font-family: var(--font-script); font-size: 1.7rem; color: var(--gold); opacity: 1 !important; line-height: 1.2; margin-top: .4em; }

/* ---------- Ruta: si solo hay una, sin lista y con el mapa al lado ---------- */
.routes--single { grid-template-columns: 1fr; }
.routes--single .routes__list { display: none; }
@media (min-width: 961px) {
  .routes--single .routes__detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .routes--single .map {
    aspect-ratio: auto; position: sticky; top: calc(var(--header-h) + 16px);
    height: min(640px, calc(100vh - var(--header-h) - 32px));
  }
}
.itinerary__price {
  display: grid; gap: 10px; margin: 0 0 24px; padding: 16px 18px; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--line);
}
.itinerary__amount { margin: 0; font-family: var(--font-title); font-size: 2rem; font-weight: 700; color: var(--gold-dark); line-height: 1.1; }
.itinerary__amount span { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.itinerary__includes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: .9rem; }
.itinerary__includes li { display: flex; gap: 6px; align-items: flex-start; }
.itinerary__includes svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ---------- Actividades por zona ---------- */
.act-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; }
.chip__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--green); color: var(--white); font-size: .72rem; font-weight: 600;
}
.chip__count[hidden] { display: none; }
.act-zone { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.act-zone[hidden] { display: none; }
.act-zone__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--gold-light); box-shadow: var(--shadow); }
.act-zone__media img { width: 100%; height: 100%; object-fit: cover; }
.act-zone__caption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(20,12,4,.8));
}
.act-zone__caption span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.act-zone__caption strong { display: block; font-family: var(--font-title); font-size: 1.5rem; line-height: 1.15; }
.act-zone .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.act-zone .activity { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.act-zone .activity:hover { transform: none; }
.act-zone .activity.is-selected::after { display: none; }
.act-zone .activity__icon { margin: 0; width: 44px; height: 44px; flex-shrink: 0; border-width: 0; outline: 0; background: var(--gold-light); box-shadow: none; }
.act-zone .activity__icon svg { width: 22px; height: 22px; }
.act-zone .activity.is-selected .activity__icon { background: var(--green); color: var(--white); }
.activity__text { flex: 1; min-width: 0; }
.act-zone .activity h3 { font-size: 1.15rem; margin: 0; line-height: 1.2; }
.act-zone .activity p { font-size: .85rem; margin: 3px 0 0; line-height: 1.4; flex: none; }
.act-zone .activity__btn { flex-shrink: 0; font-size: .8rem; padding: .4em .85em; white-space: nowrap; }

/* En el formulario: actividades agrupadas por zona */
.act-checks { display: grid; gap: 8px; margin-bottom: 10px; }
.act-checks__group { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.act-checks__group summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.act-checks__group summary::-webkit-details-marker { display: none; }
.act-checks__group summary::after { content: "+"; color: var(--gold-dark); font-size: 1.2rem; line-height: 1; }
.act-checks__group[open] summary::after { content: "–"; }
.act-checks__count { color: var(--green); margin-left: 6px; margin-right: auto; }
.act-checks__group .checks { padding: 0 14px 14px; }

/* Preguntas frecuentes con listas */
.faq__item ol { margin: 0; padding: 0 22px 12px 44px; color: #4c4035; }
.faq__item ol li { margin-bottom: 4px; }
.faq__item p + p { padding-top: 0; }
.faq__item ol + p { padding-top: 0; }

/* Ficha del destino: las fotos verticales se ven enteras */
.lb__stage.is-portrait img { object-fit: contain; }

@media (max-width: 960px) {
  .act-zone { grid-template-columns: 1fr; }
  .act-zone__media { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .itinerary__includes { grid-template-columns: 1fr; }
  .act-zones { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .act-zones .chip { flex-shrink: 0; }
  .act-zone .activities { grid-template-columns: 1fr; }
  .act-zone .activity { padding: 12px; gap: 12px; }
  .act-zone .activity__icon { width: 38px; height: 38px; margin: 0; }
  .act-zone .activity h3 { font-size: 1.05rem; }
  .act-zone__media { aspect-ratio: 16 / 9; }
  .about__quote { font-size: 1.2rem; }
}

/* Sobre Samir: con su texto largo, la foto se queda fija arriba mientras se lee (solo en ordenador) */
@media (min-width: 961px) {
  .about { align-items: start; }
  .about__media { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Actividades: el botón «Me interesa» va debajo del nombre para que el texto tenga sitio */
.act-zone .activity {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "icono texto" "icono boton";
  column-gap: 14px; row-gap: 8px; align-items: start;
}
.act-zone .activity__icon { grid-area: icono; }
.act-zone .activity__text { grid-area: texto; }
.act-zone .activity__btn { grid-area: boton; justify-self: start; }
@media (max-width: 640px) {
  .act-zone .activity { grid-template-columns: 38px minmax(0, 1fr); }
}

/* =========================================================
   Botón de idiomas (burbuja arriba a la derecha). Lo crea idiomas.js
   ========================================================= */
html.i18n-espera body { visibility: hidden; } /* un instante, mientras se traduce */
.nav { margin-left: auto; }
.header__inner > .btn { margin-left: auto; } /* páginas legales: «Volver a la web» junto a la burbuja */
.lang { position: relative; flex-shrink: 0; }
.lang__btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px 7px 10px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--gold);
  font-weight: 600; font-size: .85rem; letter-spacing: .06em; line-height: 1;
  box-shadow: 0 6px 16px rgba(60,40,10,.18), inset 0 -2px 0 rgba(195,154,67,.18);
  transition: transform .2s, box-shadow .2s, background .2s;
}
/* el «piquito» de la burbuja de diálogo */
.lang__btn::after {
  content: ""; position: absolute; left: 13px; bottom: -6px; width: 10px; height: 10px;
  background: var(--white); border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); border-bottom-right-radius: 2px; transition: background .2s;
}
.lang__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(60,40,10,.22), inset 0 -2px 0 rgba(195,154,67,.18); background: var(--gold-light); }
.lang__btn:hover::after { background: var(--gold-light); }
.lang__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lang__globe { width: 18px; height: 18px; color: var(--gold-dark); }
.lang__arrow { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.lang.is-open .lang__arrow { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60; min-width: 170px;
  display: grid; padding: 6px; border-radius: 16px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font-size: .95rem; text-align: left;
}
.lang__menu button:hover { background: var(--cream); }
.lang__menu button[aria-checked="true"] { background: var(--gold-light); font-weight: 600; }
.lang__code {
  display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px;
  background: var(--cream); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--gold-dark);
}
.lang__menu button[aria-checked="true"] .lang__code { background: var(--gold); border-color: var(--gold); color: var(--white); }
@media (max-width: 960px) {
  .nav + .lang { margin-left: auto; }
  .lang + .menu-toggle { margin-left: -10px; }
}
/* Páginas legales traducidas: aviso de que vale la versión en español (en español no se ve) */
.legal__lang-note { font-size: .88rem; color: var(--muted); font-style: italic; margin-top: -.4em; }
html[lang="es"] .legal__lang-note { display: none; }
/* Móvil: burbuja de idiomas más compacta para que el nombre quepa en una línea */
@media (max-width: 640px) {
  .lang__btn { padding: 6px 9px; gap: 5px; font-size: .8rem; }
  .lang__arrow { display: none; }
  .brand { gap: 9px; }
  .brand__text { white-space: nowrap; }
}


/* Sello «Powered by Netlify» que Netlify añade solo en las cuentas gratis: se oculta */
#nl-badge-frame { display: none !important; }
