/* Página de bienvenida y guías (Puerto Natales, Torres del Paine). */
.wrap { width: min(68rem, 100% - 2rem); margin: 0 auto; }
.p-nav { display: flex; justify-content: space-between; align-items: center; padding: max(env(safe-area-inset-top), 1rem) 0 1rem; position: relative; z-index: 2; }
.p-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: hsl(var(--foreground)); text-decoration: none; }
.p-brand img { border-radius: 9px; }
.on-photo .tabs { background: hsl(0 0% 100% / .16); backdrop-filter: blur(6px); }
.on-photo .tab { color: #fffc; }
.on-photo .tab[aria-selected="true"] { background: #fff; color: hsl(195 60% 15%); }
.p-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: hsl(var(--accent)); }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.p-link { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; font-weight: 500; padding: .3rem .55rem; border-radius: 999px; }
.p-link:hover { background: hsl(var(--muted)); }
.p-link-dark:hover { background: hsl(var(--muted)); }
.p-link svg { width: 1rem; height: 1rem; }

/* Bienvenida */
body.welcome { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: hsl(var(--foreground)); background: hsl(var(--background)); }
.w-bg { position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, hsl(var(--background) / .62), hsl(var(--background) / .78) 55%, hsl(var(--background) / .93)), url("/img/hero-bahia.jpg") center 55% / cover no-repeat; }
.w-main, .welcome .p-foot { position: relative; z-index: 1; }
.welcome .p-foot { color: hsl(var(--muted-foreground)); }
.w-main { display: grid; align-content: center; gap: 2rem; padding: 1.5rem 0 2rem; }
.w-hello { display: grid; gap: .7rem; max-width: 40rem; }
.w-hello h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.035em; }
.w-lead { font-size: 1.1rem; color: hsl(var(--foreground) / .85); max-width: 38rem; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.w-card { position: relative; display: flex; align-items: flex-end; gap: .8rem; min-height: 11.5rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  color: #fff; text-decoration: none; overflow: hidden; border: 1px solid hsl(var(--border)); box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; isolation: isolate; }
.w-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px hsl(210 50% 4% / .25); }
.w-card:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--accent)); }
.w-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) var(--pos, center) / cover no-repeat; transition: transform .5s; }
.w-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, hsl(205 60% 6% / .85)); }
.w-photo:hover::before { transform: scale(1.05); }
.w-text { display: grid; gap: .2rem; }
.w-text b { font-size: 1.15rem; }
.w-text span { font-size: .88rem; color: #ffffffd0; }
.w-arrow { margin-left: auto; font-size: 1.3rem; opacity: .8; }
.w-checkin { grid-column: span 3; min-height: auto; align-items: center; padding: 1.25rem 1.4rem; flex-wrap: wrap;
  background: linear-gradient(120deg, hsl(190 82% 22% / .92), hsl(200 60% 16% / .85)); backdrop-filter: blur(8px); }
.w-checkin .w-text b { font-size: 1.35rem; }
.w-icon { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: hsl(0 0% 100% / .14); flex: none; }
.w-icon svg { width: 1.6rem; height: 1.6rem; }
.w-go { margin-left: auto; height: 2.8rem; padding: 0 1.5rem; font-size: 1rem; }
@media (max-width: 760px) {
  .w-grid { grid-template-columns: 1fr; }
  .w-checkin { grid-column: auto; }
  .w-card { min-height: 8.5rem; }
  .w-go { width: 100%; margin-left: 0; }
}

/* Guías */
.g-hero { color: hsl(var(--foreground)); min-height: min(62vh, 32rem); display: grid; grid-template-rows: auto 1fr;
  /* velo sobre la foto: más opaco (--veil-*) en páginas con fotos muy cargadas de color, para leer el texto */
  background: linear-gradient(180deg, hsl(var(--background) / var(--veil-top, .62)), hsl(var(--background) / var(--veil-mid, .78)) 55%, hsl(var(--background) / var(--veil-end, .93))), var(--img) center 60% / cover no-repeat; }
.g-hero-copy { align-self: end; padding-bottom: 2.75rem; display: grid; gap: .8rem; }
.g-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); letter-spacing: -0.03em; max-width: 46rem; }
.g-lead { max-width: 44rem; font-size: 1.08rem; color: hsl(var(--foreground) / .85); }
.g-back { color: hsl(var(--muted-foreground)); text-decoration: none; font-size: .9rem; width: fit-content; }
.g-back:hover { color: hsl(var(--foreground)); }
.g-main { display: grid; gap: 2.5rem; padding: 2.25rem 0 1rem; }
.g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.g-facts .fact { display: grid; gap: .25rem; padding: 1rem 1.2rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.g-facts .fact b { font-size: 1.45rem; color: hsl(var(--primary)); line-height: 1.1; }
.g-facts .fact span { color: hsl(var(--muted-foreground)); font-size: .88rem; }
.g-section { display: grid; gap: 1rem; }
.g-section h2 { font-size: 1.45rem; }
.g-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g-item { padding: 1.1rem 1.25rem; display: grid; gap: .4rem; align-content: start; border-left: 3px solid hsl(var(--accent)); }
.g-item h3 { font-size: 1.02rem; }
.g-item p { font-size: .93rem; }
.g-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem;
  background: linear-gradient(120deg, hsl(var(--info-soft)), hsl(var(--card)) 60%); }
@media (max-width: 760px) { .g-facts, .g-items { grid-template-columns: 1fr; } }

/* Lugares recomendados */
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.pl-cat { padding: 1.1rem 1.2rem; display: grid; gap: .6rem; }
.pl-cat h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.pl-icon { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--accent-soft)); font-size: 1.05rem; }
.pl-cat ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pl-cat li a { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .55rem .2rem; border-top: 1px solid hsl(var(--border)); color: inherit; text-decoration: none; font-size: .93rem; }
.pl-cat li:first-child a { border-top: 0; }
.pl-cat li a:hover span:first-child { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.pl-kind { font-size: .75rem; color: hsl(var(--muted-foreground)); white-space: nowrap; }
@media (max-width: 900px) { .pl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pl-grid { grid-template-columns: 1fr; } }
/* bienvenida: 4 tarjetas de foto → 2 × 2 */
.w-grid { grid-template-columns: repeat(2, 1fr); }
.w-checkin { grid-column: span 2; }
.w-wide { grid-column: 1 / -1; min-height: 9rem; }
@media (max-width: 760px) { .w-grid { grid-template-columns: 1fr; } .w-checkin, .w-wide { grid-column: auto; } }
.g-sections { display: grid; gap: 2.5rem; }

/* Fotos de las guías */
.g-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 12.5rem); gap: .6rem; }
.g-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.g-row .g-ph { aspect-ratio: 3 / 2; }
.g-ph { all: unset; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: hsl(var(--muted)); display: block; }
.g-ph.big { grid-column: span 2; grid-row: span 2; }
.g-ph:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 2px; }
.g-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.g-ph:hover img { transform: scale(1.03); }
.g-cap { position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); background: hsl(200 30% 8% / .65); color: #fff; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .g-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 15rem repeat(2, 9rem); }
  .g-ph.big { grid-row: auto; }
  .g-row { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .g-row .g-cap { display: none; }
}
.g-credits a { color: inherit; }
dialog.g-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #070b10; color: #fff; }
dialog.g-lb[open] { display: grid; place-items: center; }
dialog.g-lb::backdrop { background: #070b10; }
.g-lb figure { margin: 0; display: grid; gap: .6rem; justify-items: center; }
.g-lb img { max-width: min(94vw, 1600px); max-height: 82dvh; object-fit: contain; border-radius: 6px; }
.g-lb figcaption { display: grid; gap: .15rem; text-align: center; font-size: .88rem; color: #ffffffc0; padding: 0 1rem; }
.g-lb figcaption b { color: #fff; }
.g-lb figcaption a { color: inherit; }
.g-lb-btn { position: absolute; border: 0; background: hsl(0 0% 100% / .12); color: #fff; width: 3rem; height: 3rem; border-radius: 999px; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.g-lb-btn:hover { background: hsl(0 0% 100% / .25); }
.g-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.g-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.g-lb-x { top: 1rem; right: 1rem; font-size: 1.2rem; }
@media (max-width: 640px) { .g-lb-prev, .g-lb-next { top: auto; bottom: 1rem; transform: none; } }
.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; }

/* Disponibilidad pública (/disponibilidad) */
.av-head { display: grid; gap: .5rem; }
.av-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.03em; }
.av-cal { padding: 1.25rem; display: grid; gap: 1rem; }
.av-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.av-legend { display: flex; gap: 1rem; font-size: .88rem; color: hsl(var(--muted-foreground)); }
.av-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.av-legend i { width: .95rem; height: .95rem; border-radius: 4px; display: inline-block; }
.av-free { background: hsl(152 55% 42% / .18); border: 1px solid hsl(152 55% 38% / .55); }
.av-busy { background: hsl(var(--muted-foreground) / .45); }
.av-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; }
.av-month h3 { font-size: 1rem; text-transform: capitalize; margin-bottom: .5rem; }
.av-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.av-grid b { font-size: .72rem; font-weight: 600; text-align: center; color: hsl(var(--muted-foreground)); padding-bottom: 2px; }
.av-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.av-grid .free { background: hsl(152 55% 42% / .14); color: hsl(var(--foreground)); }
.av-grid .busy { background: hsl(var(--muted-foreground) / .38); color: hsl(var(--foreground) / .7); text-decoration: line-through; text-decoration-color: hsl(var(--foreground) / .35); }
.av-grid .past { opacity: .35; }
.av-grid .today { outline: 2px solid hsl(var(--accent)); outline-offset: 1px; font-weight: 700; }
@media (max-width: 640px) { .av-months { grid-template-columns: 1fr; } }

/* Servicios complementarios (/servicios) — sección en construcción */
.sv-wip { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius);
  border: 1px dashed hsl(38 92% 45% / .8); background: hsl(45 95% 55% / .14); }
.sv-wip-icon { font-size: 1.6rem; line-height: 1; }
.sv-wip b { font-size: 1.05rem; }
.sv-wip p { margin: .2rem 0 0; color: hsl(var(--muted-foreground)); font-size: .93rem; }
.sv-cats { display: grid; gap: 2rem; }
.sv-cat h2 { font-size: 1.35rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.sv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.sv-item { padding: 1rem 1.15rem; display: grid; gap: .35rem; align-content: start; border-left: 3px solid hsl(var(--accent)); }
.sv-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.sv-item h3 { font-size: 1rem; }
.sv-item p { font-size: .9rem; }
.sv-soon { flex: none; font-size: .7rem; white-space: nowrap; }
/* Tarjeta de cierre del inicio: ancho completo */
.w-services { grid-column: 1 / -1; min-height: auto; align-items: center; padding: 1.2rem 1.4rem; flex-wrap: wrap;
  background: linear-gradient(120deg, hsl(28 70% 28% / .94), hsl(205 45% 16% / .9)); }
.w-services .w-text b { font-size: 1.25rem; }
.w-wip { display: inline-block; width: fit-content; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .55rem; border-radius: 999px; background: hsl(45 95% 55%); color: hsl(30 60% 12%) !important; }
@media (max-width: 760px) { .w-services { grid-column: auto; } }
.w-credits { padding-bottom: 1.5rem; margin-top: -1rem; }
.w-credits a { color: inherit; }
