/* VisitOriente · ajustes propios del tema WordPress (lo que no estaba en el prototipo). */

/* Galería con una sola foto y galería con 1–2 fotos */
.eo-galeria--una, .eo-galeria:has(> figure:only-child) { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.eo-galeria:has(> figure:nth-child(2):last-child) > :first-child { grid-row: 1 / 3; }

/* Compartir */
.eo-compartir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eo-compartir .eo-btn-icono.is-copiado { background: var(--eo-verde-suave); border-color: #9CCB7E; }

/* Artículo */
.eo-articulo { max-width: 760px; margin-inline: auto; }
.eo-articulo__foto { margin: 24px 0 0; }
.eo-articulo__foto img { width: 100%; height: auto; border-radius: var(--eo-r-bloque, 24px); }

/* Galería del municipio: fotos clicables (visor) */
.eo-galeria-municipal figure { margin: 0; }
.eo-galeria-municipal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; cursor: zoom-in; }

/* Visor de imágenes */
.eo-visor { border: 0; padding: 0; background: transparent; max-width: min(1200px, 96vw); max-height: 94vh; overflow: visible; }
.eo-visor::backdrop { background: rgba(10, 20, 30, .88); }
.eo-visor figure { margin: 0; }
.eo-visor img { display: block; max-width: 100%; max-height: 86vh; border-radius: 12px; margin-inline: auto; }
.eo-visor figcaption { color: #fff; text-align: center; font-size: 14px; margin-top: 10px; }
.eo-visor__cerrar { position: absolute; top: -14px; right: -14px; z-index: 2; font-size: 22px; line-height: 1; }

/* Reel en video propio (no embebido) */
.eo-reel--video { aspect-ratio: 9 / 16; max-width: 360px; border-radius: 20px; overflow: hidden; background: #000; }
.eo-reel--video .wp-video, .eo-reel--video video { width: 100% !important; height: 100% !important; object-fit: cover; }

/* Marcadores numerados de ruta */
.eo-paso-mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--eo-azul, #0090C2); color: #fff; border: 2.5px solid #fff; font: 700 14px/1 'Outfit', sans-serif; box-shadow: 0 3px 10px rgba(26,43,64,.35); }

/* Minimapas en fichas */
.eo-minimapa { position: relative; border-radius: 20px; overflow: hidden; width: 100%; z-index: 0; }
.eo-minimapa .leaflet-overlay-pane svg { width: auto; height: auto; }
.eo-minimapa.eo-mx-mapa { position: relative; inset: auto; }
.eo-minimapa.is-error::after { content: 'No pudimos cargar el mapa.'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

/* Contenido del editor de WordPress */
.eo-prosa img { max-width: 100%; height: auto; border-radius: 14px; }
.eo-prosa .wp-block-image figcaption, .wp-caption-text { font-size: 13px; color: var(--eo-pizarra); }
.alignwide { max-width: 1100px; } .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra de administración: el mapa a pantalla completa descuenta su alto */
.admin-bar .eo-mapa-app { height: calc(100vh - 104px); }

/* Fichas: textos largos (fuentes con URL) no deben ensanchar la columna */
.eo-ficha > * { min-width: 0; }
.eo-prosa, .eo-fuente, .eo-lista-def dd { overflow-wrap: anywhere; }
.eo-minimapa .eo-mx-relieve { opacity: 1; }

/* Reels en la portada */
.eo-reels__fila { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.eo-reels__item { margin: 0; flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
.eo-reels__item video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #0A2A33; }
.eo-reels__item figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.35; }
.eo-reels__item figcaption a { font: 600 17px 'Outfit', sans-serif; color: var(--eo-monte); text-decoration: none; }
.eo-ag--pasado { opacity: .62; } .eo-ag--pasado:hover { opacity: 1; }

/* =====================================================================
   Rediseño 1-dic · fotos naturales, color del manual y más movimiento
   ===================================================================== */

/* 1. Fotos naturales: fuera los velos marinos (se veían azulados/morados).
      Solo una sombra neutra abajo, lo justo para leer el texto. */
.eo-h::after { background: linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.22) 32%, rgba(0,0,0,0) 58%), linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 50%); }
.eo-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%), linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 50%); }
.eo-puerta::after, .eo-tarjeta-f::after { background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.15) 42%, rgba(0,0,0,0) 62%); }
.eo-pueblo::after, .eo-muni::after, .eo-reel::after, .eo-panoramica::after { background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 48%); }
.eo-circulos { background: url('../assets/img/mapa/sello-generico.jpg') center / cover; }
.eo-h__slide img, .eo-puerta > img, .eo-pueblo > img, .eo-tarjeta-f > img, .eo-hist img, .eo-muni img, .eo-galeria img, .eo-galeria-municipal img, .eo-ag__img img, .eo-hero img, .eo-articulo__foto img, .eo-reels__item video { filter: saturate(1.14) contrast(1.04) brightness(1.03); }
.eo-ag__img::before { filter: blur(16px) saturate(1.25) brightness(1.05); }
.eo-h h1, .eo-h__lead, .eo-puerta h3, .eo-pueblo h3, .eo-tarjeta-f h3, .eo-h__cifras { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.eo-h__credito, .eo-puerta__pie, .eo-credito-galeria { background: rgba(0,0,0,.38); }
.eo-cab { background: rgba(255,255,255,.95); }

/* 2. Color del manual: lima, sol, azul, naranja y verde logo, en uso real */
:root { --eo-c1: var(--eo-verde); --eo-c2: var(--eo-sol); --eo-c3: var(--eo-azul); --eo-c4: var(--eo-zocalo); --eo-c5: var(--eo-verde-logo); }
body { background: #fff; }
.eo-h h1 em { color: var(--eo-sol); }
.eo-h__lugar.is-activa::before { background: var(--eo-sol); }
.eo-cinta { display: grid; grid-template-columns: 3fr 2fr 2fr 1fr 2fr; height: 8px; }
.eo-cinta i:nth-child(1) { background: var(--eo-verde); } .eo-cinta i:nth-child(2) { background: var(--eo-sol); } .eo-cinta i:nth-child(3) { background: var(--eo-azul); } .eo-cinta i:nth-child(4) { background: var(--eo-zocalo); } .eo-cinta i:nth-child(5) { background: var(--eo-verde-logo); }
.eo-s__cab h2 { position: relative; }
.eo-s__cab h2::after { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; margin-top: 14px; background: linear-gradient(90deg, var(--eo-verde) 0 40%, var(--eo-sol) 40% 70%, var(--eo-azul) 70% 100%); transform-origin: left; }
.eo-etiqueta { display: inline-flex; align-items: center; gap: 8px; }
.eo-etiqueta::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--eo-verde); }
.eo-etiqueta--azul::before { background: var(--eo-azul); }
.eo-etiqueta--zocalo::before { background: var(--eo-zocalo); }
.eo-enlace { border-bottom-color: var(--eo-sol); }
.eo-enlace:hover { background: var(--eo-sol); border-radius: 6px; }

/* Banda de color para los siete pueblos */
.eo-s--siete { background: linear-gradient(180deg, var(--eo-verde-suave) 0%, #fff 100%); padding-bottom: 72px; margin-top: 0; }
.eo-pueblo { box-shadow: 0 10px 24px rgba(26,43,64,.12); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.eo-pueblo:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 40px rgba(26,43,64,.2); }
.eo-pueblo__chip { position: absolute; top: 14px; left: 14px; font: 800 11px 'Nunito Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--eo-monte); background: var(--eo-c1); }
.eo-pueblo:nth-child(5n+2) .eo-pueblo__chip { background: var(--eo-c2); }
.eo-pueblo:nth-child(5n+3) .eo-pueblo__chip { background: var(--eo-c3); }
.eo-pueblo:nth-child(5n+4) .eo-pueblo__chip { background: var(--eo-c4); color: #fff; }
.eo-pueblo:nth-child(5n+5) .eo-pueblo__chip { background: var(--eo-c5); color: #fff; }
.eo-pueblo::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1; background: var(--eo-c1); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.eo-pueblo:nth-child(5n+2)::before { background: var(--eo-c2); } .eo-pueblo:nth-child(5n+3)::before { background: var(--eo-c3); } .eo-pueblo:nth-child(5n+4)::before { background: var(--eo-c4); } .eo-pueblo:nth-child(5n+5)::before { background: var(--eo-c5); }
.eo-pueblo:hover::before { transform: scaleX(1); }
.eo-siete { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.eo-pueblo--grande { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1000px) { .eo-siete { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 640px) { .eo-siete { grid-auto-rows: 180px; } }

/* Líneas del Plan 2040: cada puerta con su color */
.eo-puerta:nth-child(1) .eo-puerta__tipos span { background: var(--eo-verde); color: var(--eo-monte); border-color: transparent; }
.eo-puerta:nth-child(2) .eo-puerta__tipos span { background: var(--eo-zocalo); border-color: transparent; }
.eo-puerta:nth-child(3) .eo-puerta__tipos span { background: var(--eo-azul); color: var(--eo-monte); border-color: transparent; }
.eo-puerta { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.eo-puerta:hover { transform: translateY(-6px); }

/* 360°: de marino plano a un cielo azul vivo */
.eo-firma { background: linear-gradient(135deg, #0B6E9A 0%, #1597CF 45%, #32BDEF 100%); }
.eo-firma::before { background: radial-gradient(circle, rgba(253,200,0,.45), rgba(253,200,0,0) 62%); }
.eo-firma::after { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%; left: -240px; bottom: -380px; background: radial-gradient(circle, rgba(174,201,11,.5), rgba(174,201,11,0) 62%); pointer-events: none; }
.eo-firma .eo-etiqueta { color: var(--eo-sol); } .eo-firma .eo-etiqueta::before { background: var(--eo-sol); }
.eo-firma .eo-s__cab p { color: rgba(255,255,255,.92); }
.eo-orbita__bola { box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 20px 40px rgba(0,40,70,.35); }

/* Tarjetas con foto: etiqueta de color y elevación al pasar */
.eo-tarjeta-f { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.eo-tarjeta-f:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(26,43,64,.2); }
.eo-tipo--naranja { color: #fff; }

/* Mapa: tarjeta con acento de color */
.eo-mapa-r { background: var(--eo-azul-suave); }
.eo-mapa-r__tarj { border-top: 8px solid var(--eo-azul); }
.eo-mapa-r__datos div:nth-child(1) b { color: var(--eo-verde-logo); } .eo-mapa-r__datos div:nth-child(2) b { color: var(--eo-azul-texto, #0A7FB0); } .eo-mapa-r__datos div:nth-child(3) b { color: var(--eo-zocalo); } .eo-mapa-r__datos div:nth-child(4) b { color: var(--eo-monte); }
.eo-pin { animation: eo-flotar 3.6s ease-in-out infinite; }
.eo-pin:nth-of-type(2n) { animation-delay: -1.8s; }
.eo-pin i { background: var(--eo-zocalo); box-shadow: 0 0 0 2px var(--eo-zocalo), 0 0 0 0 rgba(238,125,0,.6); animation: eo-pulso 2.2s infinite; }
@keyframes eo-flotar { 50% { transform: translateY(-5px); } }
@keyframes eo-pulso { 70% { box-shadow: 0 0 0 2px var(--eo-zocalo), 0 0 0 12px rgba(238,125,0,0); } 100% { box-shadow: 0 0 0 2px var(--eo-zocalo), 0 0 0 0 rgba(238,125,0,0); } }

/* Planea tu viaje: tres bloques de color */
.eo-planea { background: none; box-shadow: none; gap: 20px; }
.eo-planea > div { border: 0 !important; border-radius: var(--eo-r-tarjeta); transition: transform .3s; }
.eo-planea > div:nth-child(1) { background: var(--eo-azul-suave); } .eo-planea > div:nth-child(2) { background: var(--eo-zocalo-suave); } .eo-planea > div:nth-child(3) { background: var(--eo-verde-suave); }
.eo-planea > div:hover { transform: translateY(-4px); }
.eo-planea__ic { background: #fff !important; }

/* Historias */
.eo-hist a { transition: transform .3s, box-shadow .3s; }
.eo-hist a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(26,43,64,.16); }
.eo-hist a:nth-child(1) .eo-etiqueta { color: var(--eo-zocalo-texto); } .eo-hist a:nth-child(1) .eo-etiqueta::before { background: var(--eo-zocalo); }

/* Agenda: imagen genérica con la paleta cuando el evento no tiene foto */
.eo-ag__img--gen { background: var(--eo-g, var(--eo-verde)); display: grid; place-items: center; overflow: hidden; }
.eo-ag__img--gen::before { content: none; }
.eo-ag__img--gen .eo-ag__gen { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px 16px 18px 76px; }
.eo-ag__gen svg { position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px; opacity: .22; }
.eo-ag__gen b { position: relative; font: 700 19px/1.1 'Outfit', sans-serif; color: var(--eo-gt, var(--eo-monte)); text-wrap: balance; }
.eo-ag__gen::before, .eo-ag__gen::after { content: ''; position: absolute; border-radius: 50%; }
.eo-ag__gen::before { width: 140px; height: 140px; left: -40px; top: -50px; background: rgba(255,255,255,.22); }
.eo-ag__gen::after { width: 70px; height: 70px; right: 30px; top: 14px; background: rgba(255,255,255,.16); }
.eo-ag { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .2s; }
.eo-ag:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(26,43,64,.14); border-color: transparent; }
.eo-ag .eo-fecha { background: var(--eo-sol); color: var(--eo-monte); }
.eo-s--agenda { background: linear-gradient(180deg, #fff 0%, var(--eo-zocalo-suave) 100%); padding-bottom: 72px; margin-top: 96px; padding-top: 72px; }

/* Reels: los 7 espacios, aunque falte el video */
.eo-s--reels { background: var(--eo-monte); color: #fff; margin-top: 96px; padding: 80px 0; position: relative; overflow: hidden; }
.eo-s--reels::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -300px; background: radial-gradient(circle, rgba(238,125,0,.35), rgba(238,125,0,0) 62%); }
.eo-s--reels .eo-s__cab h2, .eo-s--reels figcaption a { color: #fff; }
.eo-s--reels .eo-s__cab p, .eo-s--reels .u-gris { color: rgba(255,255,255,.78); }
.eo-s--reels .eo-etiqueta { color: var(--eo-zocalo); } .eo-s--reels .eo-etiqueta::before { background: var(--eo-zocalo); }
.eo-reels__fila { position: relative; scrollbar-color: rgba(255,255,255,.3) transparent; padding-bottom: 14px; }
.eo-reels__item { flex: 0 0 min(250px, 70vw); }
.eo-reels__item video { box-shadow: 0 0 0 4px var(--eo-zocalo), 0 18px 40px rgba(0,0,0,.35); }
.eo-reels__prox { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.eo-reels__prox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.1); transition: transform .8s; }
.eo-reels__item:hover .eo-reels__prox img { transform: scale(1.06); }
.eo-reels__prox::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.25) 100%); }
.eo-reels__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.8); backdrop-filter: blur(4px); }
.eo-reels__play::before { content: ''; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.eo-reels__estado { position: absolute; top: 12px; left: 12px; font: 800 11px 'Nunito Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--eo-sol); color: var(--eo-monte); }
.eo-reels__dur { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; }
.eo-reels__dur::after { content: ''; display: block; height: 100%; width: 30%; background: var(--eo-sol); animation: eo-barra 4s ease-in-out infinite; }
@keyframes eo-barra { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* 3. Movimiento: aparición suave al bajar (solo si hay JS y el usuario no pidió menos movimiento) */
.js-anim .eo-rev { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js-anim .eo-rev.is-visto { opacity: 1; transform: none; }
.js-anim .eo-s__cab h2::after { transform: scaleX(0); transition: transform .8s .2s cubic-bezier(.2,.8,.2,1); }
.js-anim .is-visto .eo-s__cab h2::after, .js-anim .eo-s__cab.is-visto h2::after { transform: scaleX(1); }
.eo-h .eo-contenedor > * { animation: eo-subir .9s cubic-bezier(.2,.8,.2,1) both; }
.eo-h .eo-contenedor > :nth-child(2) { animation-delay: .1s; } .eo-h .eo-contenedor > :nth-child(3) { animation-delay: .2s; } .eo-h .eo-contenedor > :nth-child(4) { animation-delay: .3s; } .eo-h .eo-contenedor > :nth-child(5) { animation-delay: .4s; } .eo-h .eo-contenedor > :nth-child(6) { animation-delay: .5s; }
@keyframes eo-subir { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .js-anim .eo-rev { opacity: 1; transform: none; transition: none; }
  .eo-pin, .eo-pin i, .eo-reels__dur::after, .eo-h .eo-contenedor > * { animation: none; }
}
.eo-reels__prox { display: block; }
.eo-s--reels + .eo-firma { margin-top: 0; }
.eo-siete > .eo-pueblo:nth-child(6):nth-last-child(2), .eo-siete > .eo-pueblo:nth-child(7):last-child { grid-column: span 2; }
@media (max-width: 1000px) { .eo-siete > .eo-pueblo:nth-child(6):nth-last-child(2), .eo-siete > .eo-pueblo:nth-child(7):last-child { grid-column: auto; } .eo-siete > .eo-pueblo:nth-child(7):last-child { grid-column: 1 / -1; } }
/* Seis pueblos con foto: 3 columnas, el primero grande */
.eo-siete { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.eo-siete > .eo-pueblo:nth-child(6):nth-last-child(2), .eo-siete > .eo-pueblo:nth-child(7):last-child { grid-column: auto; }
@media (max-width: 1000px) { .eo-siete { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } .eo-pueblo--grande { grid-row: span 1; } }
.eo-reels__prox:not(:has(img)) { background: linear-gradient(160deg, var(--eo-verde-logo) 0%, var(--eo-azul) 100%); }
.eo-reels__item:nth-child(3n) .eo-reels__prox:not(:has(img)) { background: linear-gradient(160deg, var(--eo-zocalo), var(--eo-sol)); }

/* Filtro suave de fotos (pedido 1-dic): atenúa un poco brillo y contraste sin quitar color */
:root { --eo-foto-filtro: saturate(1.04) contrast(.94) brightness(.94); }
.eo-h__slide img, .eo-puerta > img, .eo-pueblo > img, .eo-tarjeta-f > img, .eo-hist img, .eo-muni img, .eo-galeria img, .eo-galeria-municipal img, .eo-ag__img img, .eo-hero img, .eo-articulo__foto img, .eo-reels__item video, .eo-reels__prox img, .eo-orbita__bola img { filter: var(--eo-foto-filtro); }
