/* Avisos (panel → Avisos): icono de la cabecera (todas las páginas) y popup tipo «Stories» de la portada */
.hdr-avisos { position: relative; flex: none; margin-left: auto; text-decoration: none; }
.hdr-avisos:hover { color: var(--accent); }
.hdr-avisos + .lang { margin-left: 0; }
.hdr-avisos__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
@media (min-width: 1380px) { .hdr-avisos { order: 3; margin-left: 0; } }
/* Menú principal (escritorio): más aire entre botones y «Inicio» alineado con el borde izquierdo de los contenidos
   (contenedor de 1200px). La marca ocupa hasta ese borde; si la pantalla no da para tanto, el menú va tras el logo. */
@media (min-width: 1380px) {
  .main-nav > ul { gap: 2px 16px; }
  .site-header__inner > .brand { width: calc(50% - 604px); min-width: max-content; }
}
/* Galería de las fichas (alojamientos, Qué hacer…): el hueco entre fotos, del mismo color que el fondo de la web */
.ad-gallery { background: var(--bg); }

/* Popup vertical 9:16 */
.stories { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: #fff; overflow: hidden; }
.stories[open] { display: flex; align-items: center; justify-content: center; }
.stories::backdrop { background: rgb(8 16 13 / .88); }
.stories__frame { position: relative; width: 100vw; height: 100dvh; background: #0b1511; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (min-width: 700px) {
  .stories__frame { width: auto; height: min(90dvh, 860px); aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 24px 70px rgb(0 0 0 / .5); overflow: visible; }
  .stories__frame > .story { border-radius: 18px; overflow: hidden; }
}
.stories__bars { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; gap: 4px; padding: max(10px, env(safe-area-inset-top)) 10px 0; }
.stories__bar { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; }
.stories__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.stories__bar.is-done i { transform: scaleX(1); }
.stories__tools { position: absolute; z-index: 4; top: calc(max(10px, env(safe-area-inset-top)) + 10px); right: 8px; display: flex; gap: 2px; }
.stories__btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .28); color: #fff; display: grid; place-items: center; cursor: pointer; }
.stories__btn:hover { background: rgb(0 0 0 / .45); }
.stories__btn:focus-visible { box-shadow: 0 0 0 3px #fff; }
.stories__btn .ico-play, .stories__btn[aria-pressed="true"] .ico-pause, .stories__btn .ico-sound, .stories__btn[aria-pressed="true"] .ico-muted { display: none; }
.stories__btn[aria-pressed="true"] .ico-play, .stories__btn[aria-pressed="true"] .ico-sound { display: block; }
.story { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: #0b1511; }
.story__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__content { position: relative; z-index: 2; text-align: center; padding: 90px 22px max(28px, calc(env(safe-area-inset-bottom) + 18px)); background: linear-gradient(to top, rgb(0 0 0 / .78), rgb(0 0 0 / .35) 60%, transparent); }
.story__title { font-size: clamp(1.45rem, 6vw, 1.9rem); font-weight: 800; margin: 0 0 6px; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .45); }
.story__text { margin: 0 0 14px; font-size: 1.02rem; color: #f1f5f3; text-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.story__cta { position: relative; z-index: 3; }
.story--text { justify-content: center; text-align: center; }
.story--text .story__content { background: none; padding: 80px 28px; }
.story--text .story__title { font-size: clamp(1.8rem, 8vw, 2.4rem); text-shadow: none; }
.story--text .story__text { font-size: 1.15rem; text-shadow: none; }
.story--theme-verde { background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%); }
.story--theme-bosque { background: linear-gradient(160deg, #164a35 0%, var(--accent-deep) 70%); }
.story--theme-sol { background: linear-gradient(160deg, var(--sun) 0%, #e08a00 100%); }
.story--theme-sol .story__title, .story--theme-sol .story__text { text-shadow: var(--sun-shadow); }
.story--theme-sol .story__cta { background: var(--accent-deep); border-color: var(--accent-deep); text-shadow: none; }
.stories__nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--accent-deep); display: none; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.stories__nav:disabled { opacity: .35; cursor: default; }
.stories__nav:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent-deep); }
@media (min-width: 700px) {
  .stories__nav { display: grid; }
  .stories__nav--prev { left: -64px; }
  .stories__nav--next { right: -64px; }
}
