/*
Theme Name: Turismo Aburrá Norte
Description: Sitio de turismo del Norte del Valle de Aburrá. Catálogo vivo y reservas con YourXperiences (afiliado TURISMOAN).
Version: 1.0.1
Author: YourXperiences
Text Domain: turismo-aburra-norte
Requires PHP: 7.4
*/

:root {
  --tinta: #14302A;        /* verde casi negro: textos y fondos oscuros */
  --monte: #23483A;        /* verde de montaña: cabecera y bandas */
  --hoja: #2E6B4F;         /* acción principal */
  --maiz: #E8B630;         /* acento: precios, chips */
  --niebla: #E6EDE7;       /* fondos suaves */
  --papel: #F7F9F5;        /* fondo de página */
  --gris: #5B6B63;         /* texto secundario */
  --borde: #D5DFD8;
  --radio: 14px;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--hoja); text-underline-offset: 3px; }
a:hover { color: var(--monte); }
:focus-visible { outline: 3px solid var(--maiz); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.tan-contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .tan-contenedor { padding: 0 28px; } }

.tan-saltar { position: absolute; left: -9999px; }
.tan-saltar:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ── Cabecera ── */
.tan-cabecera { background: var(--monte); color: #fff; position: sticky; top: 0; z-index: 30; }
.tan-cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.tan-marca { color: #fff; text-decoration: none; }
.tan-marca__nombre { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: .01em; display: block; }
.tan-marca:hover { color: var(--maiz); }
.tan-menu-boton { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.tan-nav__lista { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tan-nav__lista a { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; display: block; }
.tan-nav__lista a:hover, .tan-nav__lista .current-menu-item > a { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 760px) {
  .tan-menu-boton { display: inline-block; }
  .tan-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--monte); padding: 8px 16px 16px; }
  .tan-nav.is-abierto { display: block; }
  .tan-nav__lista { flex-direction: column; }
}

/* ── Portada ── */
.tan-portada { position: relative; color: #fff; background: var(--tinta); min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.tan-portada::before { content: ""; position: absolute; inset: 0; background-image: var(--foto); background-size: cover; background-position: center; }
.tan-portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,48,42,.15) 0%, rgba(20,48,42,.55) 45%, rgba(20,48,42,.92) 100%); }
.tan-portada__texto { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 56px; }
.tan-portada h1 { max-width: 14ch; color: #fff; }
.tan-antetitulo { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--maiz); margin-bottom: .8em; }
.tan-portada__bajada { max-width: 56ch; font-size: 1.12rem; color: rgba(255,255,255,.9); }
.tan-portada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.tan-enlace-claro { color: #fff; font-weight: 600; text-decoration: none; }
.tan-enlace-claro:hover { color: var(--maiz); }
.tan-portada__cifras { margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.78); }
.tan-portada__cifras strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ── Secciones ── */
.tan-seccion { padding: 64px 0; }
.tan-seccion--tinta { background: var(--monte); color: #fff; }
.tan-seccion--tinta h2 { color: #fff; }
.tan-seccion--niebla { background: var(--niebla); }
.tan-seccion__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.tan-seccion__cab h2 { margin: 0; }
.tan-seccion__cab a { font-weight: 600; text-decoration: none; }

.tan-pasos { list-style: none; counter-reset: paso; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tan-pasos li { counter-increment: paso; background: #fff; border-radius: var(--radio); padding: 22px 22px 22px 70px; position: relative; }
.tan-pasos li::before { content: counter(paso); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--hoja); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }

/* ── Páginas ── */
.tan-titular { background: var(--monte); color: #fff; padding: 48px 0 40px; }
.tan-titular h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.tan-pagina { padding-top: 36px; padding-bottom: 64px; }
.tan-pagina > p { max-width: 68ch; color: var(--gris); }
.tan-pagina h2 { margin-top: 1.6em; }
.tan-pagina--reserva { padding-top: 28px; }

/* ── Tarjetas del catálogo (yx-*) ── */
.yx-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.yx-card { background: #fff; border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--borde); transition: transform .2s ease, box-shadow .2s ease; }
.yx-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,48,42,.12); }
.yx-card__foto { position: relative; aspect-ratio: 4 / 3; background: var(--niebla); display: block; overflow: hidden; }
.yx-card__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* fotos verticales no estiran la tarjeta */
.yx-card__chip { position: absolute; left: 12px; top: 12px; background: var(--maiz); color: var(--tinta); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.yx-card__cuerpo { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.yx-card__lugar { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hoja); font-weight: 600; margin: 0 0 6px; }
.yx-card__titulo { margin: 0 0 8px; }
.yx-card__titulo a { color: var(--tinta); text-decoration: none; }
.yx-card__titulo a:hover { color: var(--hoja); }
.yx-card__texto { color: var(--gris); font-size: .95rem; margin-bottom: 16px; }
.yx-card__pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yx-card__precio { margin: 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.yx-card__precio span { font-weight: 400; font-size: .8rem; color: var(--gris); }

.yx-boton { display: inline-block; background: var(--hoja); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 999px; font-size: .95rem; border: 0; }
.yx-boton:hover { background: var(--monte); color: #fff; }
.yx-boton--grande { padding: 14px 26px; font-size: 1.05rem; background: var(--maiz); color: var(--tinta); }
.yx-boton--grande:hover { background: #fff; color: var(--tinta); }

.yx-municipios { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.yx-municipio { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: var(--radio); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.yx-municipio:hover { background: rgba(255,255,255,.16); color: #fff; }
.yx-municipio__nombre { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.yx-municipio__detalle { font-size: .88rem; color: var(--maiz); }
.yx-municipio--pronto .yx-municipio__detalle { color: rgba(255,255,255,.6); }
.tan-pagina .yx-municipio { background: var(--monte); }

.yx-vacio { background: var(--niebla); border-radius: var(--radio); padding: 22px; color: var(--gris); }
.yx-vacio p:last-child { margin-bottom: 0; }

/* ── Reserva ── */
.yx-reserva__cab { margin-bottom: 18px; }
.yx-reserva__cab h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.yx-widget { background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); overflow: hidden; }
.yx-widget iframe { display: block; width: 100%; height: 1150px; border: 0; }
@media (max-width: 640px) { .yx-widget iframe { height: 1300px; } }
.yx-nota { font-size: .86rem; color: var(--gris); margin-top: 14px; max-width: 72ch; }
.yx-volver { margin-top: 24px; }
.yx-estancias { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.yx-estancia { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--borde); background: #fff; color: var(--tinta); text-decoration: none; font-weight: 600; }
.yx-estancia span { font-weight: 400; font-size: .85rem; color: var(--gris); }
.yx-estancia.is-activa { border-color: var(--hoja); box-shadow: inset 0 0 0 1px var(--hoja); }

/* ── Pie ── */
.tan-pie { background: var(--tinta); color: rgba(255,255,255,.78); padding: 48px 0 24px; font-size: .94rem; }
.tan-pie a { color: #fff; }
.tan-pie__fila { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tan-pie__marca { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: .4em; }
.tan-pie__titulo { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--maiz); font-weight: 600; margin-bottom: .6em; }
.tan-pie__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (prefers-reduced-motion: reduce) { .yx-card { transition: none; } .yx-card:hover { transform: none; } }
