/* ATUFRESNO · estilos. Tokens en DESIGN.md */
:root {
  --crema: #F6EFE2;
  --papel: #FBF7EF;
  --tinta: #1E2421;
  --tinta-suave: #4A4F49;
  --verde: #2F5D3A;
  --verde-hondo: #213F29;
  --ocre: #9A6417;
  --ocre-luz: #E3A94A;
  --ocre-logo: #C8862A;
  --azul: #2E5E8C;
  --teja: #B5523B;
  --titulo: 'Fraunces', Georgia, serif;
  --texto: 'DM Sans', system-ui, sans-serif;
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 40px; --e7: 64px; --e8: 104px;
  --radio: 14px;
  --cabecera: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--cabecera); }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: 'DM Sans', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azul); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.05; margin: 0; color: var(--verde); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 var(--e4); }
:focus-visible { outline: 3px solid var(--ocre-luz); outline-offset: 3px; }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--verde); color: var(--crema); padding: 8px 14px; z-index: 50; }
.saltar:focus { left: 8px; }

.envoltura { width: min(1180px, 100% - 2 * var(--e5)); margin-inline: auto; }
.envoltura--estrecha { width: min(780px, 100% - 2 * var(--e5)); }

.antetitulo { font: 700 0.8rem/1 var(--texto); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: var(--e4); }
.antetitulo--ocre { color: var(--ocre); }
.antetitulo--luz { color: var(--ocre-luz); }

.encabezado { max-width: 680px; margin-bottom: var(--e7); }
.encabezado h2 { margin-bottom: var(--e4); }
.encabezado > p:last-child { color: var(--tinta-suave); font-size: 1.125rem; }
.encabezado--claro h2 { color: var(--crema); }
.encabezado--claro > p, .encabezado--claro > p:last-child { color: #E7E1D3; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e2); min-height: 48px; padding: 0 var(--e5); border-radius: 4px; background: var(--verde); color: var(--crema); font: 700 1rem/1 var(--texto); text-decoration: none; border: 2px solid var(--verde); }
.boton:hover { background: var(--verde-hondo); border-color: var(--verde-hondo); }
.boton--claro { background: transparent; color: var(--crema); border-color: rgba(246, 239, 226, 0.75); }
.boton--claro:hover { background: rgba(246, 239, 226, 0.12); border-color: var(--crema); }
.boton--linea { background: transparent; color: var(--verde); }
.boton--linea:hover { background: var(--verde); color: var(--crema); }
.boton--pequeno { min-height: 40px; padding: 0 var(--e4); font-size: 0.9rem; }
.boton--grande { min-height: 60px; padding: 0 var(--e6); font-size: 1.15rem; background: var(--ocre-luz); border-color: var(--ocre-luz); color: var(--tinta); }
.boton--grande:hover { background: #F0BD66; border-color: #F0BD66; }

/* Cabecera */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--cabecera); display: flex; align-items: center; gap: var(--e5); padding: 0 var(--e5); background: rgba(246, 239, 226, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(47, 93, 58, 0.12); }
.cabecera__logo { display: flex; align-items: center; gap: var(--e2); text-decoration: none; color: var(--verde); font: 700 1.35rem/1 var(--titulo); }
.cabecera__logo svg { width: 38px; height: 38px; }
.cabecera__logo b { color: var(--ocre); font-weight: 700; }
.cabecera__nav { display: flex; gap: var(--e5); margin-left: auto; }
.cabecera__nav a { color: var(--tinta); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.cabecera__nav a:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 4px; }

/* 1 · Inicio */
.inicio { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--crema); overflow: hidden; }
.inicio__foto, .inicio__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.inicio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 36, 33, 0.25) 0%, rgba(30, 36, 33, 0.15) 35%, rgba(22, 32, 25, 0.82) 100%); }
.inicio__texto { position: relative; z-index: 1; width: min(1180px, 100% - 2 * var(--e5)); margin: 0 auto; padding: calc(var(--cabecera) + var(--e7)) 0 var(--e7); }
.inicio .antetitulo { color: var(--ocre-luz); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.inicio h1 { color: var(--crema); font-size: clamp(2.8rem, 8.4vw, 6.6rem); max-width: 12ch; margin-bottom: var(--e5); }
.inicio .mw-marca { background-image: linear-gradient(var(--ocre-luz), var(--ocre-luz)); }
.inicio__bajada { max-width: 560px; font-size: 1.15rem; color: #EFE9DC; }
.inicio__acciones { display: flex; flex-wrap: wrap; gap: var(--e3); margin: var(--e5) 0 var(--e4); }
.inicio__precio { font-size: 0.95rem; color: #E7E1D3; margin: 0; }
.inicio__precio strong { color: var(--ocre-luz); font-size: 1.1rem; }

/* 2 · Pasadías */
.pasadias { padding: var(--e8) 0; }
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--e5); }
.plan { display: flex; flex-direction: column; background: var(--papel); border-radius: var(--radio); overflow: hidden; border: 1px solid rgba(47, 93, 58, 0.12); }
.plan__foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plan__cuerpo { display: flex; flex-direction: column; flex: 1; padding: var(--e5); }
.plan__cuerpo > p:not([class]) { color: var(--tinta-suave); }
.plan__lugar { font: 700 0.75rem/1.3 var(--texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocre); margin-bottom: var(--e2); }
.plan h3 { margin-bottom: var(--e3); }
.plan__precio { color: var(--tinta); }
.plan__precio strong { font: 700 1.5rem/1 var(--titulo); color: var(--teja); }
.plan__precio small { display: block; color: var(--tinta-suave); font-size: 0.85rem; margin-top: 2px; }
.plan .boton { margin-top: auto; align-self: flex-start; }
.plan--destacado { grid-column: 1 / -1; flex-direction: row; }
.plan--destacado .plan__foto { width: 46%; aspect-ratio: auto; min-height: 100%; }
.plan--destacado .plan__cuerpo { padding: var(--e6); }
.plan--destacado:nth-of-type(6) { flex-direction: row-reverse; }
.tarifas { list-style: none; padding: 0; margin: 0 0 var(--e4); display: flex; flex-wrap: wrap; gap: var(--e2); }
.tarifas li { background: var(--crema); border-radius: 4px; padding: 6px 12px; font-weight: 700; font-size: 0.95rem; }
.tarifas span { font-weight: 400; color: var(--tinta-suave); margin-right: 4px; }

.horario { border-top: 1px dashed rgba(47, 93, 58, 0.35); margin: var(--e2) 0 var(--e5); padding-top: var(--e3); }
.horario summary { cursor: pointer; font-weight: 700; color: var(--verde); list-style: none; display: flex; align-items: center; gap: var(--e2); min-height: 32px; }
.horario summary::-webkit-details-marker { display: none; }
.horario summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; font-size: 0.9rem; line-height: 1; }
.horario[open] summary::before { content: "−"; }
.horario ol { list-style: none; padding: 0; margin: var(--e3) 0; }
.horario li { display: grid; grid-template-columns: 92px 1fr; gap: var(--e3); padding: 6px 0; font-size: 0.95rem; border-bottom: 1px solid rgba(30, 36, 33, 0.07); }
.horario time { font-weight: 700; color: var(--ocre); white-space: nowrap; }
.horario__dia { font: 700 1rem/1 var(--titulo); color: var(--verde); margin: var(--e4) 0 0; }
.horario__incluye { font-size: 0.92rem; color: var(--tinta-suave); margin: 0; }

/* 3 · Circuito (momento firma) */
.circuito { background: var(--verde-hondo); color: var(--crema); padding: var(--e8) 0 var(--e7); }
.circuito__precio { color: #E7E1D3; }
.circuito__precio strong { font: 700 1.5rem/1 var(--titulo); color: var(--ocre-luz); }
.circuito__marco { width: min(1180px, 100% - 2 * var(--e5)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--e7); }

.perfil { position: sticky; top: calc(var(--cabecera) + 6vh); height: min(70vh, 560px); display: flex; flex-direction: column; justify-content: center; }
.perfil__svg { width: 100%; height: auto; overflow: visible; }
.perfil__fondo { fill: rgba(246, 239, 226, 0.06); }
.perfil__linea { fill: none; stroke: var(--ocre-luz); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.perfil__rio { fill: none; stroke: #6F9CC8; stroke-width: 7; stroke-linecap: round; opacity: 0.8; }
.perfil__punto { fill: var(--crema); stroke: var(--ocre-luz); stroke-width: 7; }
.perfil__sello { display: grid; justify-items: start; margin-bottom: var(--e5); }
.perfil__alt { font: 700 clamp(3rem, 7vw, 5.4rem)/0.9 var(--titulo); color: var(--crema); font-variant-numeric: tabular-nums; }
.perfil__sello small { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ocre-luz); margin-top: var(--e2); }
.perfil__sello em { font: 600 1.25rem/1.2 var(--titulo); font-style: italic; color: #E7E1D3; margin-top: var(--e1); }
.perfil__pueblos { list-style: none; padding: 0; margin: var(--e3) 0 0; position: relative; height: 22px; }
.perfil__pueblos li { position: absolute; left: var(--x); transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.06em; color: #C9C3B4; white-space: nowrap; }

.dias { list-style: none; padding: 0; margin: 0; }
.dia { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: var(--e5); padding: var(--e6) 0; opacity: 0.4; transition: opacity var(--mw-chip) var(--mw-arrive-gentle); }
.dia.es-activo, .dias:not(.con-js) .dia { opacity: 1; }
.dia img { width: 100%; max-height: 46vh; object-fit: cover; border-radius: var(--radio); }
.dia__n { font: 700 0.8rem/1 var(--texto); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocre-luz); margin-bottom: var(--e2); }
.dia h3 { color: var(--crema); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: var(--e3); }
.dia p { color: #E2DCCD; }
.dia .boton { background: var(--ocre-luz); border-color: var(--ocre-luz); color: var(--tinta); margin-top: var(--e3); }

/* 4 · Lo que se vive (galería horizontal) */
.vive { position: relative; padding: var(--e8) 0 var(--e7); }
.vive__carril { display: flex; gap: var(--e5); padding: 0 var(--e5) var(--e4); scroll-padding-left: var(--e5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.vive__item { flex: 0 0 auto; width: min(78vw, 340px); margin: 0; scroll-snap-align: start; }
.vive__item--ancho { width: min(88vw, 560px); }
.vive__item img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radio); }
.vive__item figcaption { font: 600 1.15rem/1.3 var(--titulo); color: var(--verde); margin-top: var(--e3); }
.vive__item--texto { height: 420px; background: var(--ocre-logo); color: var(--tinta); border-radius: var(--radio); padding: var(--e6) var(--e5); display: flex; flex-direction: column; justify-content: flex-end; }
.vive__grande { font: 700 2.6rem/1 var(--titulo); color: var(--tinta); }
.vive.es-horizontal { height: var(--alto-vive, 300vh); padding: 0; }
.vive.es-horizontal .vive__fijo { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--cabecera); }
.vive.es-horizontal .encabezado { margin-bottom: var(--e6); }
.vive.es-horizontal .vive__carril { overflow: visible; scroll-snap-type: none; padding-left: max(var(--e5), (100vw - 1180px) / 2); will-change: transform; }

/* 5 · Condiciones */
.condiciones { padding: var(--e8) 0; background: var(--papel); border-block: 1px solid rgba(47, 93, 58, 0.12); }
.condiciones__rejilla { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--e7); }
.condiciones__lista { margin: 0; display: grid; gap: var(--e5); }
.condiciones__lista div { border-left: 3px solid var(--ocre-logo); padding-left: var(--e5); }
.condiciones__lista dt { font: 700 1.25rem/1.2 var(--titulo); color: var(--verde); margin-bottom: var(--e1); }
.condiciones__lista dd { margin: 0; color: var(--tinta-suave); }

/* 6 · Preguntas */
.preguntas { padding: var(--e8) 0; }
.preguntas h2 { margin-bottom: var(--e6); }
.preguntas details { border-bottom: 1px solid rgba(30, 36, 33, 0.14); }
.preguntas summary { cursor: pointer; list-style: none; padding: var(--e5) 40px var(--e5) 0; position: relative; font: 600 1.2rem/1.35 var(--titulo); color: var(--tinta); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--texto); color: var(--ocre); }
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { color: var(--tinta-suave); padding-bottom: var(--e5); margin: 0; }

/* 7 · Reservar */
.reservar { padding: var(--e8) 0; background: var(--verde); color: var(--crema); text-align: center; }
.reservar__caja { max-width: 760px; }
.reservar h2 { color: var(--crema); margin-bottom: var(--e4); }
.reservar p { color: #E7E1D3; font-size: 1.125rem; }
.reservar .boton { margin: var(--e5) 0; }
.reservar__extra { font-size: 0.95rem !important; }
.reservar__extra a { color: var(--ocre-luz); }

.pie { background: var(--verde-hondo); color: #D9D3C4; padding: var(--e6) 0; font-size: 0.92rem; }
.pie__fila { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--e4); }
.pie p { margin: 0; }
.pie a { color: var(--ocre-luz); }

.flotante { position: fixed; right: var(--e4); bottom: var(--e4); z-index: 25; display: none; align-items: center; gap: var(--e2); min-height: 52px; padding: 0 var(--e5) 0 var(--e4); border-radius: 999px; background: #1F7A45; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.flotante svg { width: 24px; height: 24px; }
.flotante { transition: opacity var(--mw-chip) var(--mw-arrive-gentle), transform var(--mw-chip) var(--mw-arrive); }
.flotante.oculto { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity var(--mw-chip) var(--mw-arrive-gentle), transform var(--mw-chip) var(--mw-arrive), visibility 0s linear var(--mw-chip); }
.preguntas__lista { max-width: 780px; }

/* Tableta */
@media (max-width: 1200px) and (min-width: 761px) {
  .planes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .planes { grid-template-columns: repeat(2, 1fr); }
}

/* Celular */
@media (max-width: 760px) {
  :root { --cabecera: 58px; }
  body { font-size: 1rem; }
  .cabecera { padding: 0 var(--e4); }
  .cabecera__nav, .cabecera > .boton { display: none; }
  .cabecera__logo { font-size: 1.2rem; }
  .flotante { display: inline-flex; }
  .inicio__foto img { object-position: 40% 50%; }
  .inicio__texto { padding-bottom: 96px; }
  .pie { padding-bottom: 96px; }
  .inicio__acciones .boton { flex: 1 1 100%; }
  .pasadias, .preguntas, .condiciones, .reservar { padding: var(--e7) 0; }
  .encabezado { margin-bottom: var(--e6); }
  .planes { grid-template-columns: 1fr; }
  .plan--destacado, .plan--destacado:nth-of-type(6) { grid-column: auto; flex-direction: column; }
  .plan--destacado .plan__foto { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .plan--destacado .plan__cuerpo { padding: var(--e5); }
  .horario li { grid-template-columns: 80px 1fr; }
  .circuito { padding-top: var(--e7); }
  .circuito__marco { grid-template-columns: 1fr; gap: 0; }
  .perfil { top: var(--cabecera); height: auto; z-index: 2; background: var(--verde-hondo); padding: var(--e3) 0 var(--e2); border-bottom: 1px solid rgba(246, 239, 226, 0.12); }
  .perfil__sello { margin-bottom: var(--e2); }
  .perfil__alt { font-size: 2.2rem; }
  .perfil__sello small { margin-top: 2px; font-size: 0.72rem; }
  .perfil__sello em { font-size: 1rem; }
  .perfil__svg { max-height: 96px; }
  .perfil__pueblos { height: 16px; margin-top: 4px; }
  .perfil__pueblos li:not(.clave) { display: none; }
  .perfil__pueblos li:first-child { transform: none; }
  .perfil__pueblos li:last-child { transform: translateX(-80%); }
  .dia { min-height: 78vh; padding: var(--e6) 0; }
  .dia img { max-height: 38vh; }
  .condiciones__rejilla { grid-template-columns: 1fr; gap: var(--e5); }
  .vive__item img, .vive__item--texto { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dia { transition: none; }
}

/* Videos */
.inicio__foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--mw-panel) var(--mw-arrive-gentle); }
.inicio__foto video.reproduciendo { opacity: 1; }
video.plan__foto { height: auto; }
.vive__item video, .dia video { display: block; width: 100%; object-fit: cover; border-radius: var(--radio); background: var(--verde-hondo); }
.vive__item video { height: 420px; }
.dia video { max-height: 46vh; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .vive__item video { height: 340px; } .dia video { max-height: 38vh; } }
