/* ==========================================================
   Slider principal (home) — bloques/slider-home.php
   ========================================================== */

.hs {
    --hs-olive: #6c6539;        /* botones y acentos */
    --hs-olive-dark: #565029;   /* hover */
    --hs-olive-light: #d8cf94;  /* textos de acento sobre foto */
    --hs-ink: #1d1c12;
    position: relative;
    background: #1d1c12;
    font-family: "Work Sans", sans-serif;
}

/* ---------- Slide sólo imagen (como antes) ---------- */
.hs-item--foto img { display: block; width: 100%; height: auto; }

/* ---------- Slide con texto ---------- */
.hs-item--texto {
    position: relative;
    /* Alto según la pantalla: lo que queda debajo del header (~190px),
       entre 500 y 640px. Si el contenido necesita más, el slide crece. */
    min-height: clamp(500px, calc(100svh - 190px), 640px);
    /* y nunca menos que un banner 1600×600 (37.5vw), para que no "salte"
       al alternar con slides de sólo imagen */
    min-height: max(clamp(500px, calc(100svh - 190px), 640px), 37.5vw);
    display: flex;
    overflow: hidden;
}
.hs-item--texto:not(.active) { display: none; }
.hs-item--texto.active,
.hs-item--texto.carousel-item-next,
.hs-item--texto.carousel-item-prev { display: flex; }
.hs-bg, .hs-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-bg img { object-fit: cover; transform: scale(1.05); transition: transform 8s ease-out; }
.hs-item.active .hs-bg img { transform: scale(1); }

/* Capa oscura: fuerte del lado del texto + base inferior para indicadores */
.hs-shade { position: absolute; inset: 0; }
.hs-pos-izquierda .hs-shade {
    background:
        linear-gradient(90deg, rgba(18,17,10,.80) 0%, rgba(18,17,10,.55) 32%, rgba(18,17,10,.10) 62%, rgba(18,17,10,0) 75%),
        linear-gradient(0deg, rgba(18,17,10,.45) 0%, rgba(18,17,10,0) 30%);
}
.hs-pos-derecha .hs-shade {
    background:
        linear-gradient(270deg, rgba(18,17,10,.80) 0%, rgba(18,17,10,.55) 32%, rgba(18,17,10,.10) 62%, rgba(18,17,10,0) 75%),
        linear-gradient(0deg, rgba(18,17,10,.45) 0%, rgba(18,17,10,0) 30%);
}
.hs-pos-centro .hs-shade { background: radial-gradient(ellipse at center, rgba(18,17,10,.68) 0%, rgba(18,17,10,.30) 70%); }

/* Toda la foto clickeable; el contenido queda por encima */
.hs-cover-link { position: absolute; inset: 0; z-index: 1; }
.hs-container { position: relative; z-index: 2; flex: 1 1 auto; min-height: 100%; display: flex; align-items: center; pointer-events: none; }
.hs-container a, .hs-container button { pointer-events: auto; }
.hs-pos-derecha .hs-container { justify-content: flex-end; }
.hs-pos-centro  .hs-container { justify-content: center; text-align: center; }

.hs-content { width: 100%; max-width: 760px; color: #fff; padding: 44px 0 64px; }
.hs-con-fotos .hs-content { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.hs-sub { max-width: 600px; }
.hs-pos-centro .hs-content { display: flex; flex-direction: column; align-items: center; }

/* Entrada escalonada del texto */
.hs-content > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hs-item.active .hs-content > * { opacity: 1; transform: none; }
.hs-item.active .hs-content > *:nth-child(2) { transition-delay: .08s; }
.hs-item.active .hs-content > *:nth-child(3) { transition-delay: .16s; }
.hs-item.active .hs-content > *:nth-child(4) { transition-delay: .24s; }
.hs-item.active .hs-content > *:nth-child(5) { transition-delay: .32s; }
.hs-item.active .hs-content > *:nth-child(6) { transition-delay: .40s; }

/* ==========================================================
   Bloque de información — estilo de los banners de la marca
   ========================================================== */

/* Textura gastada (máscara de ruido) para títulos y etiquetas */
.hs {
    --hs-grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -22 17.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hs-grunge,
.hs-title,
.hs-chips li {
    -webkit-mask-image: var(--hs-grunge);
            mask-image: var(--hs-grunge);
    -webkit-mask-size: 260px 260px;
            mask-size: 260px 260px;
}

/* Etiqueta suelta (sólo si no hay precio) */
.hs-tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--hs-olive);
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 14px;
    transform: rotate(-2deg);
}

/* Título grande, pesado y gastado */
.hs-title {
    font-family: "Rubik", sans-serif;
    font-size: clamp(46px, 6vw, 88px);
    font-weight: 900;
    line-height: .92;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
    text-wrap: balance;
}
.hs-title--l  { font-size: clamp(40px, 5vw, 72px); }
.hs-title--xl { font-size: clamp(34px, 4vw, 58px); line-height: .95; }

.hs-sub {
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    margin: -2px 0 16px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

/* Días / noches: etiquetas blancas inclinadas */
.hs-chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hs-pos-centro .hs-chips { justify-content: center; }
.hs-chips li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 22px 8px 16px;
    background: #fff;
    color: var(--hs-ink);
    font-family: "Rubik", sans-serif;
    font-size: 19px;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    transform: rotate(-1.5deg);
}
.hs-chips li:nth-child(2) { transform: rotate(-.5deg); }
.hs-chips i { color: var(--hs-olive); font-size: 18px; }

/* Salida: ícono calendario de línea + tipo + fecha */
.hs-salida { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hs-pos-centro .hs-salida { justify-content: center; text-align: left; }
.hs-salida > .hs-salida-ico {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 46px;
    line-height: 1;
    opacity: .95;
}
.hs-salida strong {
    display: block;
    font-family: "Rubik", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.hs-salida div > span {
    display: block;
    font-family: "Rubik", sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Precio: ticket blanco con cinta */
.hs-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.hs-pos-centro .hs-actions { justify-content: center; }
.hs-ticket {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 20px 9px;
    background: #fff;
    color: var(--hs-ink);
    font-family: "Rubik", sans-serif;
    line-height: 1.05;
    transform: rotate(-2deg);
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.hs-ticket strong { font-size: 30px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.hs-ticket > span:last-child { font-size: 12px; font-weight: 600; color: #55544a; margin-top: 2px; }
.hs-ribbon {
    position: absolute;
    left: 12px; top: -15px;
    background: var(--hs-olive);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 9px;
    transform: rotate(-3deg);
    white-space: nowrap;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hs-olive);
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 15px 26px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    transition: background .2s, gap .2s, transform .2s;
}
.hs-btn:hover { background: var(--hs-olive-dark); color: #fff; gap: 14px; transform: translateY(-1px); }

/* ---------- Sello "Adventure" ---------- */
.hs-sello {
    position: absolute;
    top: -70px; left: -60px;
    width: 240px; height: 240px;
    z-index: 1;
    opacity: .7;
    pointer-events: none;
    transform: rotate(-8deg);
}
.hs-con-sello.hs-pos-derecha .hs-sello,
.hs-con-sello.hs-pos-centro .hs-sello { left: auto; right: -60px; }
.hs-con-sello.hs-pos-izquierda .hs-content { padding-top: 84px; }

/* ---------- Fotos destacadas: tarjetas tipo postal ---------- */
.hs-con-fotos .hs-container { justify-content: space-between !important; gap: 40px; }
.hs-con-fotos.hs-pos-derecha .hs-container { flex-direction: row-reverse; }
.hs-side { position: relative; flex: 0 0 auto; width: 430px; height: 360px; }
.hs-circle {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    border: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    background: #ddd;
}
.hs-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-side--2 .hs-circle--1 { width: 220px; height: 280px; left: 0; top: 40px; --r: -6deg; z-index: 1; }
.hs-side--2 .hs-circle--2 { width: 220px; height: 280px; right: 10px; top: 0; --r: 5deg; }
.hs-side--1 .hs-circle--1 { width: 320px; height: 260px; left: 40px; top: 20px; --r: -3deg; }

.hs-price--side {
    position: absolute;
    left: 50%; bottom: 6px;
    z-index: 2;
    align-items: flex-start;
    min-width: 210px;
    --hs-tr: -2deg;
}
.hs-price--side strong { font-size: 32px; }

.hs-side .hs-circle, .hs-side .hs-price--side { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.hs-side .hs-circle { transform: rotate(var(--r)) translateY(24px); }
.hs-side .hs-price--side { transform: translate(-50%, 16px) rotate(-2deg); }
.hs-item.active .hs-side .hs-circle { opacity: 1; transform: rotate(var(--r)); }
.hs-item.active .hs-side .hs-circle--2 { transition-delay: .2s; }
.hs-item.active .hs-side .hs-price--side { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); transition-delay: .45s; }

/* Con fotos al costado, el precio va junto a las fotos */
@media (min-width: 992px) {
    .hs-con-fotos .hs-price--main { display: none; }
}
@media (max-width: 1199.98px) {
    .hs-side { width: 360px; height: 310px; }
    .hs-side--2 .hs-circle--1, .hs-side--2 .hs-circle--2 { width: 180px; height: 230px; }
    .hs-side--1 .hs-circle--1 { width: 270px; height: 220px; left: 40px; }
}
@media (max-width: 991.98px) {
    .hs-side { display: none; }
}

/* ---------- Indicadores con barra de progreso ---------- */
.hs-dots { margin-bottom: 20px; z-index: 3; }
.hs-dots [data-bs-target] {
    position: relative;
    width: 26px; height: 3px;
    margin: 0 4px;
    border: 0; border-radius: 2px;
    background: rgba(255,255,255,.4);
    opacity: 1;
    overflow: hidden;
    transition: width .3s;
}
.hs-dots [data-bs-target]::after { content: ""; position: absolute; inset: 0; width: 0; background: #fff; }
.hs-dots .active { width: 54px; }
.hs-dots .active::after { animation: hs-progress var(--hs-interval, 6500ms) linear forwards; }
.hs:hover .hs-dots .active::after { animation-play-state: paused; }
@keyframes hs-progress { from { width: 0; } to { width: 100%; } }

/* ---------- Flechas: discretas, aparecen al pasar el mouse ---------- */
.hs-arrow { width: 70px; opacity: 0; z-index: 3; transition: opacity .25s; }
.hs:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
.hs-arrow-ico {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.hs-arrow:hover .hs-arrow-ico { background: var(--hs-olive); border-color: var(--hs-olive); }

/* ---------- Mobile: texto abajo, sobre degradado ---------- */
@media (max-width: 768px) {
    .hs-item--texto { min-height: min(125vw, 600px); }
    .hs-item--texto .hs-shade { background: linear-gradient(0deg, rgba(18,17,10,.88) 0%, rgba(18,17,10,.55) 45%, rgba(18,17,10,0) 72%) !important; }
    .hs-container { align-items: flex-end; justify-content: flex-start !important; text-align: left !important; }
    .hs-content { padding: 0 0 48px !important; align-items: flex-start !important; }
    .hs-title { font-size: 46px; }
    .hs-title--l  { font-size: 38px; }
    .hs-title--xl { font-size: 31px; }
    .hs-sub { font-size: 15px; margin-bottom: 12px; }
    .hs-chips { margin-bottom: 14px; justify-content: flex-start !important; }
    .hs-chips li { font-size: 15px; padding: 6px 18px 6px 12px; }
    .hs-chips i { font-size: 15px; }
    .hs-salida { margin-bottom: 20px; gap: 10px; justify-content: flex-start !important; }
    .hs-salida > .hs-salida-ico { font-size: 36px; }
    .hs-salida strong { font-size: 19px; }
    .hs-salida div > span { font-size: 16px; }
    .hs-actions { gap: 14px; justify-content: flex-start !important; }
    .hs-ticket strong { font-size: 24px; }
    .hs-btn { padding: 13px 18px; font-size: 13px; }
    .hs-arrow { display: none; }
    .hs-sello { width: 160px; height: 160px; top: -36px; left: -36px !important; right: auto !important; }
    .hs-con-sello .hs-content { padding-top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-bg img, .hs-content > *, .hs-side * { transition: none !important; transform: none !important; }
    .hs-dots .active::after { animation: none; width: 100%; }
}

/* La entrada animada no debe borrar la inclinación de la etiqueta */
.hs-item.active .hs-content > .hs-tag { transform: rotate(-2deg); }

/* ---------- Espacio para las flechas (tablet y escritorio) ----------
   El texto nunca arranca a menos de 110px del borde, así no queda pegado
   a las flechas; en pantallas anchas sigue alineado con el contenido (1296px). */
@media (min-width: 769px) {
    .hs .hs-container {
        width: 100%;
        max-width: none;
        padding-left:  max(110px, calc((100% - 1296px) / 2));
        padding-right: max(110px, calc((100% - 1296px) / 2));
    }
    .hs-arrow { width: 92px; }
    .hs-arrow.carousel-control-prev { justify-content: flex-start; padding-left: 24px; }
    .hs-arrow.carousel-control-next { justify-content: flex-end;   padding-right: 24px; }
    .hs-arrow-ico { width: 42px; height: 42px; }
}
