/* ============================================================
   TURISMO AEFIP — Revista Digital · Edición Invierno 2026
   Rediseño visual: gradientes, glass, micro-interacciones
   ============================================================ */

:root {
    /* Marca */
    --azul-aefip: #071b9d;
    --celeste-aefip: #4dc8f4;
    --azul-deep: #040e55;
    --navy: #020729;
    --cyan-soft: #7ee8ff;

    --grad-brand: linear-gradient(135deg, #071b9d 0%, #2440d8 48%, #4dc8f4 100%);
    --grad-cover: radial-gradient(120% 140% at 15% 10%, #2440d8 0%, #071b9d 45%, #030a3f 100%);

    /* Tema claro */
    --bg: #e9eef7;
    --page: #ffffff;
    --ink: #071b9d;
    --text: #3a4256;
    --muted: #69718a;
    --chip-bg: #eef4ff;
    --chip-border: #d9e6ff;
    --line: #e7ebf3;
    --row-alt: #f6f9ff;
    --card-shadow: 0 24px 60px -18px rgba(4, 14, 85, 0.35);

    --transicion: all 0.3s cubic-bezier(.4, 0, .2, 1);
    --nav-space: 92px;
}

body.dark-mode {
    --bg: #06080f;
    --page: #12151f;
    --ink: #ffffff;
    --text: #c8cedd;
    --muted: #98a1b8;
    --chip-bg: #1b2032;
    --chip-border: #2b3350;
    --line: #252b3f;
    --row-alt: #171b29;
    --card-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8);
}

* { -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.5s ease;
    overflow: hidden;
}

/* ------------------------------------------------------------
   FONDO AMBIENTAL (blobs flotantes detrás de la revista)
   ------------------------------------------------------------ */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}

.ambient span:nth-child(1) {
    width: 46vw; height: 46vw;
    top: -18vw; left: -12vw;
    background: #4dc8f4;
    animation: drift 26s ease-in-out infinite alternate;
}

.ambient span:nth-child(2) {
    width: 40vw; height: 40vw;
    bottom: -16vw; right: -10vw;
    background: #2440d8;
    animation: drift 32s ease-in-out infinite alternate-reverse;
}

.ambient span:nth-child(3) {
    width: 24vw; height: 24vw;
    top: 50%; left: 58%;
    background: #7ee8ff;
    opacity: 0.3;
    animation: drift 38s ease-in-out infinite alternate;
}

body.dark-mode .ambient span { opacity: 0.16; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vw, -4vh) scale(1.12); }
    100% { transform: translate(-4vw, 5vh) scale(0.94); }
}

/* ------------------------------------------------------------
   PRELOADER
   ------------------------------------------------------------ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--grad-cover);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader img {
    width: min(180px, 46vw);
    animation: logoPulse 1.6s ease-in-out infinite;
}

.preloader-bar {
    width: min(220px, 55vw);
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4dc8f4, #7ee8ff);
    animation: loadSlide 1.1s ease-in-out infinite;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.06); opacity: 0.85; }
}

@keyframes loadSlide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(280%); }
}

/* ------------------------------------------------------------
   CONTENEDOR REVISTA
   ------------------------------------------------------------ */
.magazine-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px;
    box-sizing: border-box;
    transition: padding-bottom 0.3s ease;
}

body.nav-visible .magazine-wrapper {
    padding-bottom: var(--nav-space);
}

#magazine {
    width: min(calc(100vw - 24px), calc((100vh - 24px) * 1.25), 1400px);
    width: min(calc(100vw - 24px), calc((100dvh - 24px) * 1.25), 1400px);
    height: min(calc(100vh - 24px), calc((100vw - 24px) / 1.25), 980px);
    height: min(calc(100dvh - 24px), calc((100vw - 24px) / 1.25), 980px);
    box-shadow: var(--card-shadow);
    border-radius: 6px;
    transition: height 0.3s ease, width 0.3s ease;
}

body.nav-visible #magazine {
    width: min(calc(100vw - 24px), calc((100vh - var(--nav-space) - 24px) * 1.25), 1400px);
    width: min(calc(100vw - 24px), calc((100dvh - var(--nav-space) - 24px) * 1.25), 1400px);
    height: min(calc(100vh - var(--nav-space) - 24px), calc((100vw - 24px) / 1.25), 980px);
    height: min(calc(100dvh - var(--nav-space) - 24px), calc((100vw - 24px) / 1.25), 980px);
}

.page {
    background-color: var(--page);
}

.page-content {
    width: 100%;
    height: 100%;
    background: var(--page);
    color: var(--text);
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ------------------------------------------------------------
   ANIMACIONES DE ENTRADA (se disparan al dar vuelta la página)
   ------------------------------------------------------------ */
.anim {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(.22, .8, .3, 1), transform 0.65s cubic-bezier(.22, .8, .3, 1);
    transition-delay: var(--d, 0s);
}

.page-active .anim {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   PORTADA Y CONTRATAPA
   ------------------------------------------------------------ */
.page-content.cover {
    background: var(--grad-cover);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* textura de grano sutil */
.page-content.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cover-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.cover-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.cover-orbs .o1 {
    width: 240px; height: 240px;
    top: -70px; right: -70px;
    background: #4dc8f4;
    animation: orbFloat 11s ease-in-out infinite alternate;
}

.cover-orbs .o2 {
    width: 300px; height: 300px;
    bottom: -110px; left: -100px;
    background: #2440d8;
    animation: orbFloat 14s ease-in-out infinite alternate-reverse;
}

.cover-orbs .o3 {
    width: 130px; height: 130px;
    top: 55%; left: 70%;
    background: #7ee8ff;
    opacity: 0.35;
    animation: orbFloat 9s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-28px, 26px) scale(1.18); }
}

/* nieve (edición invierno) */
.snow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.snow span {
    position: absolute;
    top: -12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    filter: blur(0.5px);
    animation: snowFall linear infinite;
}

@keyframes snowFall {
    0%   { transform: translate3d(0, -4vh, 0); opacity: 0; }
    12%  { opacity: 0.9; }
    100% { transform: translate3d(var(--sway, 30px), 108vh, 0); opacity: 0.15; }
}

.cover-inner {
    position: relative;
    z-index: 2;
    padding: 0 28px;
}

.cover-logo {
    display: block;
    height: auto;
    margin: 0 auto 22px;
    max-width: min(210px, 58%);
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.cover-kicker {
    letter-spacing: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.85);
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 6vw, 3.4rem);
    line-height: 1.05;
    margin: 14px 0;
    background: linear-gradient(100deg, #ffffff 20%, #7ee8ff 45%, #ffffff 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.cover-divider {
    width: 64px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #4dc8f4, #7ee8ff);
    margin: 22px auto;
    box-shadow: 0 0 18px rgba(77, 200, 244, 0.8);
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.cover-badge i {
    color: var(--cyan-soft);
    animation: spinSlow 9s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.cover-hint {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.cover-hint i {
    animation: nudge 1.4s ease-in-out infinite;
    color: var(--celeste-aefip);
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50%      { transform: translateX(7px); opacity: 1; }
}

/* ------------------------------------------------------------
   PÁGINA EDITORIAL
   ------------------------------------------------------------ */
.editorial {
    display: flex;
    align-items: center;
    padding: clamp(32px, 6vw, 56px);
    position: relative;
    overflow: hidden;
}

/* Gradientes ambientales de fondo */
.editorial::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 55% at 92% 8%,  rgba(77, 200, 244, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 45% 45% at 6%  92%,  rgba(7,  27,  157, 0.08) 0%, transparent 60%);
}

/* Comilla decorativa gigante de fondo */
.editorial::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    position: absolute;
    right: -16px;
    bottom: -70px;
    font-size: clamp(14rem, 30vw, 22rem);
    line-height: 1;
    color: var(--chip-border);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

body.dark-mode .editorial::before { color: rgba(255, 255, 255, 0.04); }

.editorial-inner {
    position: relative;
    z-index: 1;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--celeste-aefip), var(--azul-aefip)) 1;
    padding-left: clamp(20px, 4vw, 30px);
}

.editorial-quote-mark {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 9vw, 6rem);
    line-height: 0.6;
    color: var(--celeste-aefip);
    margin-bottom: 18px;
    opacity: 0.9;
}

.editorial-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 20px;
}

.editorial-body {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.65;
    color: var(--text);
    margin: 0;
}

.editorial-sign {
    margin-top: 30px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
}

.editorial-sign span {
    color: var(--celeste-aefip);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

/* ------------------------------------------------------------
   SWIPER / GALERÍA con Ken Burns
   ------------------------------------------------------------ */
.mySwiper {
    width: 100%;
    height: clamp(190px, 35%, 340px);
    background: #0a1030;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.mySwiper::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(2, 7, 41, 0.45));
    pointer-events: none;
}

.mySwiper .swiper-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(.22, .8, .3, 1);
    width: 100%;
}

.mySwiper .swiper-slide {
    flex: 0 0 100%;
    height: 100%;
    min-width: 100%;
    overflow: hidden;
}

.mySwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: kenburns 14s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1.5%, 1.5%); }
}

.mySwiper img.img-focus-cabanas {
    object-position: center 38%;
}

.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    z-index: 4;
    transition: var(--transicion);
}

.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
    background: var(--celeste-aefip);
    border-color: var(--celeste-aefip);
    box-shadow: 0 0 20px rgba(77, 200, 244, 0.7);
}

.mySwiper .swiper-button-prev { left: 12px; }
.mySwiper .swiper-button-next { right: 12px; }

.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
    font-size: 0.85rem;
    font-weight: 800;
}

.mySwiper .swiper-button-prev::after { content: none; }
.mySwiper .swiper-button-next::after { content: none; }

.mySwiper .swiper-button-prev i,
.mySwiper .swiper-button-next i {
    font-size: 0.85rem;
    pointer-events: none;
    line-height: 1;
}

.mySwiper .swiper-button-next:focus-visible,
.mySwiper .swiper-button-prev:focus-visible,
.mySwiper .swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--celeste-aefip);
    outline-offset: 3px;
}

.mySwiper .swiper-pagination-bullet {
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    height: 7px;
    padding: 0;
    width: 7px;
    transition: var(--transicion);
}

.mySwiper .swiper-pagination-bullet-active {
    background: var(--celeste-aefip);
    width: 22px;
    box-shadow: 0 0 12px rgba(77, 200, 244, 0.9);
}

.mySwiper .swiper-pagination {
    align-items: center;
    bottom: 12px;
    display: flex;
    gap: 7px;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 3;
}

.mySwiper.single-slide .swiper-button-next,
.mySwiper.single-slide .swiper-button-prev,
.mySwiper.single-slide .swiper-pagination {
    display: none;
}

.gallery-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #eef4ff, #dbe8f5);
    color: var(--azul-aefip);
    display: flex;
    font-size: 0.85rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   INFO HOTEL
   ------------------------------------------------------------ */
.hotel-info {
    padding: clamp(16px, 3vw, 28px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul-aefip);
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.dark-mode .location-tag { color: var(--cyan-soft); }

.location-tag::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--celeste-aefip);
    box-shadow: 0 0 0 0 rgba(77, 200, 244, 0.7);
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(77, 200, 244, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(77, 200, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 200, 244, 0); }
}

.hotel-info h2 {
    color: var(--ink);
    margin: 12px 0 5px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    position: relative;
    display: inline-block;
}

.hotel-info h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 3px;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--celeste-aefip), transparent);
    transition: width 0.8s cubic-bezier(.22, .8, .3, 1) 0.45s;
}

.page-active .hotel-info h2::after { width: 100%; }

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.stars i {
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--grad-brand);
    background-size: 160% 100%;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 9px 18px;
    border-radius: 99px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px -8px rgba(7, 27, 157, 0.6);
    transition: var(--transicion);
}

.btn-mapa:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(7, 27, 157, 0.75);
}

.hotel-resena {
    font-size: clamp(0.82rem, 1.55vw, 1rem);
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

/* --- AMENITIES (chips) --- */
.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.amenity-item {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    padding: 7px 13px;
    transition: var(--transicion);
}

.amenity-item:hover {
    transform: translateY(-2px);
    border-color: var(--celeste-aefip);
    box-shadow: 0 6px 14px -6px rgba(77, 200, 244, 0.6);
}

.amenity-item i {
    color: var(--celeste-aefip);
    font-size: 0.85rem;
}

/* --- TABLAS DE PRECIOS --- */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.72rem, 1.35vw, 0.9rem);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px -16px rgba(4, 14, 85, 0.3);
}

.price-table th {
    background: var(--grad-brand);
    color: white;
    padding: 11px 10px;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.92em;
}

.price-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    transition: background-color 0.25s ease;
}

.price-table tr:nth-child(odd) td { background: var(--row-alt); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--chip-bg); }

.price-val {
    font-weight: 800;
    color: var(--ink);
}

/* ------------------------------------------------------------
   ÍNDICE DE DESTINOS
   ------------------------------------------------------------ */
.index-page {
    padding: clamp(28px, 5vw, 56px);
}

.index-header {
    text-align: center;
    margin-bottom: clamp(22px, 4vw, 40px);
}

.index-header span {
    color: var(--celeste-aefip);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.index-header h2 {
    color: var(--ink);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin: 8px 0 14px;
}

.index-header p {
    color: var(--muted);
    font-size: clamp(0.82rem, 1.35vw, 0.95rem);
    line-height: 1.45;
    margin: 0 auto;
    max-width: 360px;
}

.destination-index {
    display: grid;
    gap: 12px;
}

.index-item {
    position: relative;
    width: 100%;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--page);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    isolation: isolate;
    transition: var(--transicion);
}

/* barrido de gradiente al hover */
.index-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad-brand);
    opacity: 0;
    transform: translateX(-12%);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.22, .8, .3, 1);
}

.index-item:hover,
.index-item:focus-visible {
    border-color: transparent;
    color: white;
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(7, 27, 157, 0.6);
}

.index-item:hover::before,
.index-item:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}

.index-number {
    color: var(--celeste-aefip);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.index-item > i:first-of-type {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--chip-bg);
    color: var(--azul-aefip);
    font-size: 1.1rem;
    transition: var(--transicion);
}

body.dark-mode .index-item > i:first-of-type { color: var(--cyan-soft); }

.index-item:hover > i:first-of-type,
.index-item:focus-visible > i:first-of-type {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: scale(1.1) rotate(-6deg);
}

.index-item > i:last-of-type {
    transition: transform 0.3s ease;
}

.index-item:hover > i:last-of-type,
.index-item:focus-visible > i:last-of-type {
    transform: translateX(5px);
    color: var(--cyan-soft);
}

/* Miniaturas reales de hotel en el índice */
.index-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--chip-border);
    display: block;
    transition: var(--transicion);
}

.index-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.index-item:hover .index-thumb,
.index-item:focus-visible .index-thumb {
    border-color: rgba(255, 255, 255, 0.35);
}

.index-item:hover .index-thumb img,
.index-item:focus-visible .index-thumb img {
    transform: scale(1.12);
    filter: brightness(1.15) saturate(1.2);
}

.index-copy { min-width: 0; }

.index-copy strong,
.index-copy small { display: block; }

.index-copy strong {
    font-size: clamp(0.86rem, 1.4vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
    transition: color 0.3s ease;
}

.index-item:hover .index-copy small,
.index-item:focus-visible .index-copy small {
    color: rgba(255, 255, 255, 0.85);
}

/* legacy */
.btn-destino {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transicion);
    font-family: 'Montserrat', sans-serif;
    min-height: 92px;
    text-align: center;
}
.btn-destino i { font-size: 1.5rem; color: var(--azul-aefip); margin-bottom: 5px; }
.btn-destino strong { font-size: 0.7rem; }
.btn-destino span { font-size: 0.7rem; line-height: 1.25; }
.btn-destino:hover { background: var(--azul-aefip); color: white; }
.btn-destino:hover i { color: white; }

/* ------------------------------------------------------------
   CONTRATAPA / CONTACTO
   ------------------------------------------------------------ */
.contact-cover {
    padding: clamp(30px, 5vw, 52px);
}

.contact-panel {
    width: min(100%, 330px);
    text-align: left;
    position: relative;
    z-index: 2;
}

.contact-panel > span {
    color: var(--celeste-aefip);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-panel h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    line-height: 1.1;
    margin: 0 0 22px;
    font-family: 'Playfair Display', serif;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.contact-list a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: white;
    display: grid;
    font-size: clamp(0.86rem, 1.45vw, 0.98rem);
    font-weight: 700;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 48px;
    padding: 8px 12px;
    text-decoration: none;
    transition: var(--transicion);
}

.contact-list a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--celeste-aefip);
    transform: translateX(5px);
    box-shadow: 0 8px 22px -10px rgba(77, 200, 244, 0.7);
}

.page-content.cover .contact-list a i {
    color: var(--celeste-aefip);
    font-size: 1.15rem;
    margin: 0;
    text-align: center;
}

.contact-list a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    line-height: 1.45;
    margin: 0 0 24px;
}

.contact-home {
    background: white;
    border: none;
    border-radius: 99px;
    color: var(--azul-aefip);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 12px 22px;
    transition: var(--transicion);
}

.contact-home:hover {
    background: var(--celeste-aefip);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(77, 200, 244, 0.8);
}

/* ------------------------------------------------------------
   WATERMARK LOGO EN CONTRATAPA
   ------------------------------------------------------------ */
.contact-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.contact-watermark img {
    width: 150px;
    filter: brightness(0) invert(1);
    display: block;
}

/* ------------------------------------------------------------
   NAV INFERIOR (glass)
   ------------------------------------------------------------ */
.footer-nav {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 10px 18px;
    border-radius: 99px;
    display: flex;
    gap: 6px;
    box-shadow: 0 18px 40px -14px rgba(4, 14, 85, 0.45);
    transition: bottom 0.5s cubic-bezier(.22, .8, .3, 1), background-color 0.4s ease;
    z-index: 1000;
}

.footer-nav.show { bottom: 20px; }

.footer-nav button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--azul-aefip);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 12px;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transicion);
}

.footer-nav button:hover {
    background: rgba(77, 200, 244, 0.16);
    transform: translateY(-2px);
}

.footer-nav button.active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(7, 27, 157, 0.8);
}

.footer-nav button i { font-size: 0.95rem; }
.footer-nav button span { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.5px; }

/* ------------------------------------------------------------
   FLOTANTES (WA y FORM)
   ------------------------------------------------------------ */
.btn-float-wa {
    align-items: center;
    background: linear-gradient(135deg, #2bdf70, #1fae53);
    border-radius: 50%;
    bottom: 20px;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.8);
    color: white;
    display: flex;
    font-size: 25px;
    height: 55px;
    justify-content: center;
    position: fixed;
    right: 20px;
    text-decoration: none;
    width: 55px;
    z-index: 1000;
    transition: var(--transicion);
}

.btn-float-wa::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.7);
    animation: waPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0%   { transform: scale(0.9); opacity: 1; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

.btn-float-wa:hover {
    transform: scale(1.1) rotate(8deg);
}

.btn-float-form {
    align-items: center;
    background: var(--grad-brand);
    background-size: 180% 100%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 99px;
    box-shadow: 0 10px 26px -8px rgba(7, 27, 157, 0.7);
    color: white;
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.5px;
    overflow: hidden;
    padding: 12px 18px;
    position: fixed;
    right: 20px;
    text-decoration: none;
    text-transform: uppercase;
    top: 20px;
    z-index: 1000;
    transition: var(--transicion);
}

/* destello que recorre el botón */
.btn-float-form::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: shine 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 60% { left: -80%; }
    100%    { left: 160%; }
}

.btn-float-form:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
}

/* ------------------------------------------------------------
   BOTÓN MODO OSCURO
   ------------------------------------------------------------ */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 85px;
    z-index: 1000;
    background: var(--grad-brand);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px -8px rgba(7, 27, 157, 0.7);
    transition: var(--transicion);
}

.dark-mode-toggle:hover {
    transform: rotate(35deg) scale(1.08);
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #ffd76a, #ff9d2e);
    color: #2a1c00;
    box-shadow: 0 10px 26px -8px rgba(255, 170, 60, 0.6);
}

/* ------------------------------------------------------------
   MODO OSCURO — ajustes puntuales
   ------------------------------------------------------------ */
body.dark-mode .page-content.cover {
    background: radial-gradient(120% 140% at 15% 10%, #131c66 0%, #0a1040 45%, #02061f 100%);
}

body.dark-mode .footer-nav {
    background: rgba(18, 21, 31, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .footer-nav button { color: #e8ecf8; }

body.dark-mode .gallery-placeholder {
    background: linear-gradient(135deg, #242424, #333333);
    color: #ffffff;
}

body.dark-mode .btn-destino {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}

body.dark-mode .btn-destino strong,
body.dark-mode .btn-destino i { color: #fff; }

/* ------------------------------------------------------------
   ACCESIBILIDAD: respetar reduce-motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }

    .anim { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */
@media (max-width: 760px) {
    body {
        overflow: auto;
    }

    .magazine-wrapper {
        align-items: flex-start;
        padding: 72px 8px 96px;
    }

    body.nav-visible .magazine-wrapper {
        padding-bottom: 110px;
    }

    #magazine {
        width: min(calc(100vw - 16px), calc((100dvh - 168px) * 0.625));
        height: min(calc(100dvh - 168px), calc((100vw - 16px) / 0.625));
        min-width: 300px;
        min-height: 480px;
    }

    body.nav-visible #magazine {
        width: min(calc(100vw - 16px), calc((100dvh - 182px) * 0.625));
        height: min(calc(100dvh - 182px), calc((100vw - 16px) / 0.625));
    }

    .footer-nav {
        max-width: calc(100vw - 24px);
        gap: 2px;
        padding: 8px 10px;
        overflow-x: auto;
    }

    .footer-nav button { padding: 6px 9px; }

    .btn-float-form {
        left: 10px;
        right: auto;
        top: 10px;
        max-width: calc(100vw - 20px);
        white-space: nowrap;
    }

    .btn-float-wa {
        bottom: 18px;
        right: 18px;
    }

    .dark-mode-toggle {
        bottom: 18px;
        right: 84px;
    }

    .ambient span { filter: blur(60px); }
}
