/* ═══════════════════════════════════════════════════════════
   PORTADA, BARRA FLOTANTE Y BUSCADOR
   Se carga después de camping.css y reemplaza al hero viejo.
   ═══════════════════════════════════════════════════════════ */

/* ====== BARRA FLOTANTE ====== */

.navbar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: clamp(.9rem, 2vw, 1.5rem) clamp(.9rem, 3vw, 2rem);
    pointer-events: none;
}
.navbar__pill {
    pointer-events: auto;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(1rem, 3vw, 2.5rem);
    padding: .6rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 10px 40px -14px rgba(13, 26, 20, .35);
}

/* La marca ocupa la columna del medio: queda centrada en la píldora
   independientemente de cuántos enlaces haya a cada lado. */
.navbar__brand {
    grid-column: 2;
    display: flex; align-items: center; gap: .55rem;
    text-decoration: none; color: var(--espresso);
    font-weight: 600; letter-spacing: -.015em;
    white-space: nowrap; justify-self: center;
}
.navbar__brand img { height: 34px; width: auto; display: block; }
.navbar__mark {
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--espresso); color: var(--ivory);
    flex: none;
}
.navbar__mark svg { width: 17px; height: 17px; }
.navbar__name { font-size: 1rem; }

.navbar__menu { display: flex; gap: clamp(.8rem, 1.8vw, 1.7rem); align-items: center; }
.navbar__menu--izq { grid-column: 1; justify-content: flex-start; padding-left: .8rem; }
.navbar__menu--der { justify-content: flex-end; }
.navbar__menu a {
    text-decoration: none;
    font-size: .9rem;
    color: var(--color-text-muted);
    padding: .35rem 0;
    position: relative;
    transition: color .2s ease;
    white-space: nowrap;
}
.navbar__menu a:hover { color: var(--espresso); }
.navbar__menu a.is-active { color: var(--espresso); font-weight: 500; }
.navbar__menu a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; border-radius: 2px; background: var(--gold);
}

/* Columna derecha: menú + CTA + hamburguesa en una sola fila. */
.navbar__derecha {
    grid-column: 3;
    display: flex; align-items: center; justify-content: flex-end;
    gap: clamp(.7rem, 1.6vw, 1.3rem);
}
.navbar__cta {
    display: inline-flex; align-items: center;
    padding: .62rem 1.35rem; border-radius: 999px;
    background: var(--espresso); color: var(--ivory);
    font-size: .88rem; font-weight: 500; text-decoration: none;
    transition: background-color .25s ease, transform .25s ease;
    white-space: nowrap;
}
.navbar__cta:hover { background: var(--gold); transform: translateY(-1px); }

.navbar__burger {
    display: none; background: none; border: 0; cursor: pointer;
    width: 40px; height: 40px; padding: .6rem; border-radius: 50%;
    flex: none;
}
.navbar__burger span {
    display: block; height: 1.8px; border-radius: 2px;
    background: var(--espresso); margin: .32rem 0;
    transition: transform .25s ease, opacity .25s ease;
}

/* En escritorio manda el menú de texto: el ícono sobra. */
.navbar__ico-reservar { display: none; }

@media (max-width: 1080px) {
    .navbar__menu { display: none; }
    .navbar__burger { display: block; }
    .navbar__pill { grid-template-columns: 44px 1fr 44px; padding: .55rem .8rem; }
    .navbar__menu--izq { padding-left: 0; }

    .navbar__ico-reservar {
        grid-column: 1;
        display: inline-flex; align-items: center; gap: .4rem;
        justify-self: start;
        height: 2.4rem; padding: 0 .7rem;
        border-radius: var(--radius-pill);
        color: var(--espresso);
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .2s ease, color .2s ease;
    }
    .navbar__ico-reservar svg { width: 19px; height: 19px; flex: none; }
    .navbar__ico-reservar span { font-size: .8rem; font-weight: 500; }
    .navbar__ico-reservar:hover,
    .navbar__ico-reservar:focus-visible { background: var(--espresso); color: var(--ivory); }

    /* Columnas laterales iguales y la marca al medio: así el logo queda
       centrado sin importar cuánto ocupe la etiqueta de la izquierda. */
    .navbar__pill { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .navbar__derecha { justify-self: end; }
}
@media (max-width: 620px) {
    .navbar__cta { display: none; }
}
/* Bajo este ancho la etiqueta empuja el logo fuera del centro: queda el ícono. */
@media (max-width: 430px) {
    .navbar__ico-reservar span { display: none; }
    .navbar__ico-reservar { padding: 0; width: 2.4rem; justify-content: center; border-radius: 50%; }
}

/* ====== PORTADA ====== */

.portada {
    position: relative;
    min-height: clamp(38rem, 92vh, 56rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(7rem, 14vh, 10rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.portada__media { position: absolute; inset: 0; }
.portada__slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s ease;
    transform: scale(1.04);
}
.portada__slide.is-active { opacity: 1; }
.portada__velo {
    position: absolute; inset: 0;
    background:
        radial-gradient(68% 56% at 50% 40%, rgba(13, 26, 20, .62) 0%, rgba(13, 26, 20, 0) 100%),
        linear-gradient(180deg, rgba(13, 26, 20, .66) 0%, rgba(13, 26, 20, .38) 40%, rgba(13, 26, 20, .88) 100%);
}

.portada__inner { position: relative; max-width: 62rem; width: 100%; }

.portada__chip {
    display: inline-flex; align-items: center; gap: .55rem;
    margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
    padding: .5rem 1.1rem .5rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .82rem; letter-spacing: .01em;
}
.portada__punto-luz {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; flex: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}

.portada__titular {
    color: #fff;                       /* gana al h1 global de base.css */
    font-family: var(--camping-display);
    font-size: clamp(2.6rem, 7.2vw, 5.6rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
    text-wrap: balance;
    text-shadow: 0 2px 40px rgba(13, 26, 20, .35);
}

.portada__bajada {
    max-width: 46ch;
    margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}

/* ====== PRUEBA SOCIAL ====== */

.portada__prueba {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: .9rem;
    margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}
.portada__avatares { display: flex; }
.portada__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; flex: none;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 14px -4px rgba(13, 26, 20, .5);
    margin-left: -12px;
}
.portada__avatar:first-child { margin-left: 0; }
.portada__avatar img { width: 100%; height: 100%; object-fit: cover; }
.portada__avatar--conteo {
    display: grid; place-items: center;
    background: var(--gold); color: #fff;
    font-size: .74rem; font-weight: 600; letter-spacing: -.01em;
}
.portada__prueba-texto {
    margin: 0; font-size: .88rem;
    color: rgba(255, 255, 255, .82);
}

/* ====== BUSCADOR ====== */

.portada__buscador { position: relative; width: 100%; max-width: 62rem; }

.buscador {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: .55rem .55rem .55rem 0;
    box-shadow: 0 24px 60px -22px rgba(13, 26, 20, .55);
    text-align: left;
}
.buscador__campo {
    display: flex; align-items: center; gap: .7rem;
    padding: .75rem 1rem;
    border-right: 1px solid var(--color-border);
    min-width: 0;
}
.buscador__campo:first-child { padding-left: 1.4rem; }
.buscador__campo:last-of-type { border-right: 0; }
.buscador__ico { width: 20px; height: 20px; color: var(--gold); flex: none; }
.buscador__campo > div { min-width: 0; flex: 1; }
.buscador label {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--espresso);
    margin-bottom: .1rem;
}
.buscador input,
.buscador select {
    width: 100%;
    border: 0; padding: 0; margin: 0;
    background: transparent;
    font-family: inherit;
    font-size: .88rem;
    color: var(--color-text-muted);
    appearance: none;
    cursor: pointer;
}
.buscador input:focus, .buscador select:focus { outline: none; color: var(--espresso); }
.buscador__par { display: flex; gap: .5rem; }
.buscador__par select { flex: 1; }

.buscador__submit {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 0; cursor: pointer;
    padding: 0 1.6rem;
    border-radius: calc(var(--radius-xl) - 6px);
    background: var(--espresso); color: var(--ivory);
    font-family: inherit; font-size: .9rem; font-weight: 500;
    transition: background-color .25s ease;
}
.buscador__submit svg { width: 18px; height: 18px; }
.buscador__submit:hover { background: var(--gold); }

.portada__pie {
    margin: 1.4rem 0 0;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    text-align: center;
}

/* ====== PUNTOS DEL CARRUSEL ====== */

.portada__puntos {
    position: absolute; left: 50%; bottom: 1.2rem;
    transform: translateX(-50%);
    display: flex; gap: .5rem; z-index: 3;
}
.portada__punto {
    width: 8px; height: 8px; padding: 0; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .7);
    background: transparent; cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}
.portada__punto.is-active { background: #fff; width: 26px; }

/* ====== RESPONSIVE ====== */

@media (max-width: 980px) {
    .buscador { grid-template-columns: 1fr 1fr; padding: .6rem; row-gap: .2rem; }
    .buscador__campo { border-right: 0; border-bottom: 1px solid var(--color-border); }
    .buscador__campo:first-child { padding-left: 1rem; }
    .buscador__campo:nth-last-child(2), .buscador__campo:nth-last-child(3) { border-bottom: 0; }
    .buscador__submit { grid-column: 1 / -1; padding: .95rem; margin-top: .4rem; }
}
@media (max-width: 560px) {
    .buscador { grid-template-columns: 1fr; }
    .buscador__campo { border-bottom: 1px solid var(--color-border); }
    .buscador__campo:nth-last-child(2) { border-bottom: 1px solid var(--color-border); }
    .portada__prueba { gap: .7rem; }
    .portada__prueba-texto { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .portada__slide { transition: none; }
    .navbar__cta:hover { transform: none; }
}

/* ====== PÁGINAS INTERIORES BAJO LA BARRA FLOTANTE ====== */

/* La barra va en position:absolute sobre la portada. En el resto de las
   páginas no hay foto detrás, así que el contenido necesita despejarla. */
body:not(.tiene-portada) .page-head,
body:not(.tiene-portada) .page--prose,
body:not(.tiene-portada) .content,
body:not(.tiene-portada) .confirm-hero {
    padding-top: clamp(6.5rem, 12vh, 8.5rem);
}
body:not(.tiene-portada) .navbar { position: absolute; }
body:not(.tiene-portada) .navbar__pill {
    background: rgba(255, 255, 255, .92);
    border-color: var(--color-border);
}

.page-head { position: relative; }
.sitios-search-bar { position: relative; z-index: 2; }
