/* Marga Tour — base compartida por las 4 propuestas.
   Paleta y tipografías según el Manual de Identidad Visual 2026.
   Articulat CF y Adobe Handwriting Ernie son de licencia paga: acá se usan
   Hanken Grotesk y Sacramento como reemplazo provisorio. */
@import url('https://fonts.googleapis.com/css2?family=Tilt+Warp&family=League+Gothic&family=Hanken+Grotesk:wght@400;500;600;700&family=Sacramento&display=swap');

:root {
  --bordo: #4A1C2D;
  --crema: #EDEDDD;
  --rosa: #CEA1A1;
  --carbon: #2B2A27;
  --oliva: #AFAC66;
  --blanco: #FFFFFF;

  --f-titulo: 'Tilt Warp', 'Arial Black', sans-serif;
  --f-condensada: 'League Gothic', 'Arial Narrow', sans-serif;
  --f-texto: 'Articulat CF', 'Hanken Grotesk', system-ui, sans-serif;
  --f-mano: 'Adobe Handwriting Ernie', 'Sacramento', cursive;

  --ancho: 1180px;
  --borde: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--oliva); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.mano { font-family: var(--f-mano); font-weight: 400; text-transform: none; letter-spacing: 0; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--crema); color: var(--bordo); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.saltar:focus { top: 12px; }

/* Marca: los logos son máscaras, toman el color de `color` */
.logo, .logo-sec, .iso, .sello { display: inline-block; background: currentColor; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo { --m: url(marca/logo-bajada.png); aspect-ratio: 1005 / 634; width: 180px; }
.logo-sec { --m: url(marca/logo-secundario.png); aspect-ratio: 1003 / 555; width: 150px; }
.iso { --m: url(marca/isotipo.png); aspect-ratio: 440 / 674; width: 42px; }
.sello { aspect-ratio: 704 / 680; width: 96px; }
.sello-pin { --m: url(marca/sello-1.png); }
.sello-cartel { --m: url(marca/sello-2.png); }
.sello-mapa { --m: url(marca/sello-3.png); }
.sello-estrellas { --m: url(marca/sello-4.png); }
.sello-montana { --m: url(marca/sello-5.png); }
.sello-accesible { --m: url(marca/sello-6.png); }
.sello-combi { --m: url(marca/sello-7.png); }
.sello-camara { --m: url(marca/sello-8.png); }
.sello-copas { --m: url(marca/sello-9.png); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-bordo { background: var(--bordo); color: var(--crema); }
.btn-crema { background: var(--crema); color: var(--bordo); }
.btn-rosa { background: var(--rosa); color: var(--carbon); }
.btn-oliva { background: var(--oliva); color: var(--carbon); }
.btn-linea { border-color: currentColor; background: transparent; }

/* Semáforo de accesibilidad */
.semaforo { display: grid; gap: 14px; }
.semaforo li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.semaforo i { width: 22px; height: 22px; border-radius: 50%; margin-top: 3px; border: 2px solid currentColor; }
.semaforo .verde { background: #5E9B57; }
.semaforo .amarillo { background: #E2B93B; }
.semaforo .rojo { background: #C2493D; }
.semaforo b { display: block; }

/* WhatsApp flotante */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; }

/* Pie común */
.pie { padding: 64px 0 32px; }
.pie__grilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.pie h3 { font-family: var(--f-texto); font-size: 14px; font-weight: 700; margin-bottom: 12px; opacity: .75; }
.pie li + li { margin-top: 6px; }
.pie a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pie__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 14px; opacity: .8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .pie__grilla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

[id] { scroll-margin-top: 96px; }

/* El texto solo para lectores de pantalla queda anclado a su enlace (si no, desborda la tira deslizable) */
.exp__a { position: relative; }

/* Tarjeta de experiencia: precio, etiquetas y acciones */
.exp__cat { flex-wrap: wrap; }
.exp__ad, .exp__pet { border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.exp__ad { background: var(--oliva); color: var(--carbon); }
.exp__pet { background: var(--rosa); color: var(--carbon); }
.exp__precio { font-size: 15px; margin-bottom: 16px; }
.exp__precio b { font-family: var(--f-titulo); font-weight: 400; font-size: 26px; margin-right: 4px; }
.exp__acciones { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exp__ver { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--bordo); color: var(--crema); font-weight: 600; font-size: 15px; }

/* Ventana de detalle de una experiencia */
.detalle { border: 0; padding: 0; border-radius: 28px; background: var(--crema); color: var(--bordo); width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
.detalle::backdrop { background: rgba(74, 28, 45, .7); }
.detalle img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.galeria { position: relative; }
.galeria__tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria__tira::-webkit-scrollbar { display: none; }
.galeria__tira img { flex: 0 0 100%; scroll-snap-align: start; }
.galeria__f { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--crema); color: var(--bordo); font-size: 26px; line-height: 1; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.galeria__f:disabled { opacity: 0; pointer-events: none; }
.galeria__f--ant { left: 12px; }
.galeria__f--sig { right: 12px; }
.galeria__n { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(74, 28, 45, .75); color: var(--crema); font-size: 13px; font-weight: 700; }
.detalle__txt { padding: 24px 28px 28px; }
.detalle .exp__cat { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.detalle h3 { font-family: var(--f-titulo); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 5vw, 36px); line-height: 1; margin: 10px 0 6px; }
.detalle h4 { font-size: 15px; font-weight: 700; margin: 20px 0 4px; }
.detalle ul { list-style: disc; padding-left: 20px; }
.detalle li + li { margin-top: 6px; }
.detalle__nota { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--oliva); color: var(--carbon); font-weight: 600; }
.detalle__botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.detalle__x { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--crema); color: var(--bordo); font-size: 18px; font-weight: 700; }
.exp__ver { position: relative; }

/* Menú de accesibilidad (assets/accesibilidad.js): botón fijo abajo a la izquierda y opciones que se aplican como clases en <html> */
.a11y-boton { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--crema); background: var(--bordo); color: var(--crema); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.a11y-boton[aria-expanded="true"] { background: var(--crema); color: var(--bordo); border-color: var(--bordo); }
.a11y-panel { position: fixed; left: 18px; bottom: 86px; z-index: 60; width: min(300px, calc(100vw - 36px)); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 16px; border-radius: 24px; background: var(--crema); color: var(--bordo); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); font-family: var(--f-texto); font-size: 15px; line-height: 1.3; }
.a11y-panel[hidden] { display: none; }
.a11y-panel__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.a11y-panel__cab p { font-weight: 700; font-size: 17px; }
.a11y-panel__cab button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 16px; font-weight: 700; }
.a11y-panel__tam { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.a11y-panel__par { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.a11y-panel ul { display: grid; gap: 6px; }
.a11y-panel__par button, .a11y-panel li button, .a11y-panel__reiniciar { width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--bordo); background: transparent; color: var(--bordo); font-weight: 600; text-align: left; }
.a11y-panel__par button { font-size: 18px; font-weight: 700; text-align: center; }
.a11y-panel__par span { display: block; font-size: 12px; font-weight: 600; }
.a11y-panel button:disabled { opacity: .4; cursor: default; }
.a11y-panel li button[aria-pressed="true"] { background: var(--bordo); color: var(--crema); }
.a11y-panel li button[aria-pressed="true"]::after { content: ' ✓'; }
.a11y-panel__reiniciar { margin-top: 8px; border-style: dashed; text-align: center; }
@media (max-width: 760px) { .a11y-boton { left: 12px; bottom: 12px; width: 52px; height: 52px; } .a11y-panel { left: 12px; bottom: 74px; } }

html.a11y-tam body { zoom: var(--a11y-tam); }
/* El menú no se agranda con el resto de la página, para que siempre entre en pantalla */
html.a11y-tam :is(.a11y-boton, .a11y-panel) { zoom: calc(1 / var(--a11y-tam)); }
html.a11y-grises { filter: grayscale(1); }
html.a11y-negativo { filter: invert(1) hue-rotate(180deg); }
html.a11y-negativo :is(img, video) { filter: invert(1) hue-rotate(180deg); }
/* Alto contraste y fondo claro cambian la paleta de la marca, así las fotos y el diseño quedan como están */
html.a11y-contraste { --bordo: #000; --crema: #fff; --rosa: #ffe600; --oliva: #ffe600; --carbon: #000; --blanco: #fff; }
html.a11y-contraste :focus-visible { outline-color: #ffe600; }
html.a11y-contraste body { text-shadow: none; }
html.a11y-claro { --bordo: #000; --crema: #fff; --rosa: #e6e6e6; --oliva: #e6e6e6; --carbon: #000; --blanco: #fff; }
html.a11y-claro :is(.tema-bordo, .oscuro, .tema-crema .alt) { --f: #fff; --t: #000; --tarjeta: #f2f2f2; }
html.a11y-claro :focus-visible { outline-color: #000; }
html.a11y-subrayar a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-legible body, html.a11y-legible body * { font-family: Arial, Verdana, sans-serif !important; letter-spacing: .01em !important; }
html.a11y-quieto *, html.a11y-quieto *::before, html.a11y-quieto *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
