/* Guía turística — estilos propios (comparte paleta, header, botones y footer con styles.css) */
:root { --forest: #0d5c3f; --earth: #8a6a3d; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.guia-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 2rem 1.25rem 2.25rem; color: #fff; background: radial-gradient(120% 140% at 90% 0%, rgba(254, 187, 2, .3), transparent 45%), linear-gradient(135deg, var(--navy-deep), var(--navy) 50%, var(--forest)); box-shadow: 0 24px 48px -28px rgba(0, 34, 79, .6); }
.guia-hero h1 { margin: .9rem 0 .6rem; font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.guia-hero p { max-width: 58ch; line-height: 1.65; color: rgba(255, 255, 255, .9); }
@media (min-width: 768px) { .guia-hero { padding: 3rem 2.5rem; } }

.aviso-general, .aviso { background: #fff8e1; border: 1px solid var(--yellow); border-radius: 12px; font-size: .85rem; color: #3d3d3d; }
.aviso-general { padding: .75rem 1rem; margin-bottom: 1.25rem; }

.toolbar { display: grid; gap: .75rem; }
.buscador { width: 100%; min-height: 3rem; padding: .7rem 1rem; font: inherit; font-size: 1rem; background: #fff; border: 1.5px solid #cfd8e3; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.buscador:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 194, .2); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.chip { flex-shrink: 0; padding: .5rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--navy); background: var(--tint); border: 1.5px solid transparent; transition: background .2s, color .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }

#map { height: 340px; border-radius: 16px; border: 1px solid #d6e2f0; background: #dfe9f5; isolation: isolate; z-index: 0; }
@media (min-width: 768px) { #map { height: 460px; } }
.map-fallback { padding: 2rem 1rem; text-align: center; color: var(--blue-dark); font-weight: 600; }
.leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .6rem; font-size: .8rem; color: #5b6b7d; }
.pin { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .8rem; font-weight: 800; color: #fff; background: var(--navy); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 34, 79, .45); }
.pin-aprox { background: #fff; color: var(--navy); border: 3px dashed var(--blue); }
.pin-casa { background: var(--yellow); color: var(--navy-deep); }
.leyenda .pin { width: 24px; height: 24px; font-size: .7rem; border-width: 2px; }

.lugares-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lugares-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lugares-grid { grid-template-columns: repeat(3, 1fr); } }
.lugar { display: flex; flex-direction: column; background: #fff; border: 1px solid #d6e2f0; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 36px -26px rgba(0, 34, 79, .45); }
.lugar-img { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.lugar-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--forest), #1b8a5f); }
.ph-termales { background: linear-gradient(135deg, #0a4b9e, #2fa4c8); }
.ph-aventura { background: linear-gradient(135deg, #6b4f2a, var(--earth) 55%, #b98f4f); }
.ph-fauna { background: linear-gradient(135deg, #14532d, #6b8f2a); }
.ph-txt { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lugar-n { position: absolute; top: .6rem; left: .6rem; z-index: 1; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 800; }
.lugar-cat { position: absolute; left: .6rem; bottom: .6rem; z-index: 1; max-width: calc(100% - 1.2rem); padding: .25rem .65rem; border-radius: 999px; background: rgba(0, 34, 79, .78); color: #fff; font-size: .72rem; font-weight: 700; }
.lugar-body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1rem; }
.lugar-body h3 { font-size: 1.1rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--navy-deep); }
.actividad { font-size: .9rem; line-height: 1.5; color: #3d3d3d; }
.credito { font-size: .7rem; color: #6b6b6b; }
.datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.dato { padding: .5rem .55rem; background: #f6f9fd; border-radius: 10px; }
.dato span { display: block; font-size: .68rem; color: #6b6b6b; }
.dato b { font-size: .8rem; color: var(--navy-deep); overflow-wrap: anywhere; }
.dato.pend b { font-weight: 600; color: #9a6b00; }
.consejos { padding-left: 1.1rem; list-style: disc; font-size: .85rem; color: #3d3d3d; }
.aviso { margin-top: auto; padding: .6rem .8rem; font-size: .78rem; line-height: 1.45; }
.aviso li + li { margin-top: .25rem; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.btn-sec { padding: .55rem 1rem; border: 1.5px solid var(--blue); border-radius: 10px; font-size: .875rem; font-weight: 700; color: var(--blue); transition: background .2s, color .2s; }
.btn-sec:hover { background: var(--blue); color: #fff; }
.ruta-pend { font-size: .8rem; font-weight: 600; color: #6b6b6b; }

.tips { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tip { display: flex; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid #d6e2f0; border-radius: 14px; }
.tip svg { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: #e6f4e6; color: var(--green); flex-shrink: 0; }
.tip b { color: var(--navy-deep); }
.tip p { margin-top: .2rem; font-size: .9rem; line-height: 1.5; color: #3d3d3d; }

/* Nota de distancia, popup del mapa y modal de información */
.datos-nota { margin-top: -.35rem; font-size: .7rem; color: #6b6b6b; }
#ley-aprox { display: inline-flex; align-items: center; gap: .5rem; }
#ley-aprox[hidden] { display: none; }
.pop-acc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.leaflet-popup-content .pop-ruta, .leaflet-popup-content .pop-info { padding: .4rem .8rem; border-radius: 8px; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.leaflet-popup-content .pop-ruta { background: var(--blue); color: #fff; }
.leaflet-popup-content .pop-info { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; }
.modal[hidden] { display: none; }
.modal-fondo { position: absolute; inset: 0; background: rgba(0, 20, 50, .6); }
.modal-caja { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); outline: none; animation: modal-sube .25s ease-out; }
.modal-x { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; color: var(--navy-deep); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
@keyframes modal-sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .modal { align-items: center; } .modal-caja { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .modal-caja { animation: none; } }
