.cf-alojamientos-hub-page {
    --cf-hub-border: rgba(15, 23, 42, 0.10);
    --cf-hub-surface: var(--bs-body-bg, #ffffff);
    --cf-hub-soft: rgba(255, 122, 0, 0.07);
    --cf-hub-text: var(--bs-body-color, #212529);
    --cf-hub-secondary: #53606f;
}

.cf-alojamientos-hub-page .cf-hub-hero {
    padding: 34px 12px 12px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 122, 0, 0.065), transparent 55%);
}

/* Encabezado de marca, limitado al hub público. */
.cf-alojamientos-hub-page .cf-hub-hero > .container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4vw, 52px);
    border-radius: 34px;
    background:
        radial-gradient(ellipse at 100% 10%, rgba(255, 122, 0, 0.13), transparent 48%),
        linear-gradient(125deg, #001b2e 0%, #062438 100%);
    box-shadow: 0 24px 58px rgba(0, 27, 46, 0.14);
    color: #ffffff;
}

.cf-alojamientos-hub-page .cf-hub-hero > .container::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -65px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 38px solid rgba(255, 122, 0, 0.065);
    border-radius: 50%;
    pointer-events: none;
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-copy h1 {
    color: #ffffff !important;
    font-size: clamp(2.1rem, 4.5vw, 3.9rem);
    line-height: 1.12;
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-copy > p,
.cf-alojamientos-hub-page .cf-hub-hero .breadcrumb-item,
.cf-alojamientos-hub-page .cf-hub-hero .breadcrumb-item::before {
    color: #d4e1eb !important;
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-kicker,
.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-breadcrumb a {
    color: #ff9c42 !important;
}

.cf-alojamientos-hub-page .cf-hub-hero .btn-primary {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #001b2e;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(255, 122, 0, 0.16);
}

.cf-alojamientos-hub-page .cf-hub-hero .btn-primary:hover {
    background: #ff9636;
    border-color: #ff9636;
}

.cf-alojamientos-hub-page .cf-hub-hero .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.cf-alojamientos-hub-page .cf-hub-hero .btn-outline-primary:hover {
    color: #ffffff;
    border-color: #ff9c42;
    background: rgba(255, 122, 0, 0.12);
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-stat {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-stat strong {
    color: #ffffff !important;
}

.cf-alojamientos-hub-page .cf-hub-hero .cf-hub-stat span {
    color: #d4e1eb !important;
}

.cf-alojamientos-hub-page .cf-hub-breadcrumb {
    margin-bottom: 32px;
}

.cf-alojamientos-hub-page .cf-hub-breadcrumb a {
    text-decoration: none;
}

.cf-alojamientos-hub-page .cf-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 48px;
    align-items: center;
}

.cf-alojamientos-hub-page .cf-hub-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.cf-alojamientos-hub-page .cf-hub-copy h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.cf-alojamientos-hub-page .cf-hub-copy > p {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.75;
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cf-alojamientos-hub-page .cf-hub-stats {
    display: grid;
    gap: 14px;
}

.cf-alojamientos-hub-page .cf-hub-stat {
    padding: 22px 24px;
    border: 1px solid var(--cf-hub-border);
    border-radius: 20px;
    background: var(--cf-hub-surface);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.cf-alojamientos-hub-page .cf-hub-stat strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.cf-alojamientos-hub-page .cf-hub-stat span {
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-destinos,
.cf-alojamientos-hub-page .cf-hub-how {
    padding: 64px 0;
}

.cf-alojamientos-hub-page .cf-hub-section-head {
    max-width: 820px;
    margin-bottom: 28px;
}

.cf-alojamientos-hub-page .cf-hub-section-head-centered {
    margin-inline: auto;
    text-align: center;
}

.cf-alojamientos-hub-page .cf-hub-section-head h2 {
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.cf-alojamientos-hub-page .cf-hub-section-head p {
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--cf-hub-secondary);
}

/*
 * Hub escalable: las 36 páginas de destino siguen presentes como enlaces HTML
 * rastreables, pero la navegación se compacta por provincia mediante <details>.
 */
.cf-alojamientos-hub-page .cf-hub-provincias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.cf-alojamientos-hub-page .cf-hub-provincia {
    overflow: hidden;
    border: 1px solid var(--cf-hub-border);
    border-radius: 20px;
    background: var(--cf-hub-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cf-alojamientos-hub-page .cf-hub-provincia[open] {
    border-color: rgba(255, 122, 0, 0.24);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 20px 22px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary::-webkit-details-marker {
    display: none;
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary::marker {
    display: none;
    content: "";
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary:hover,
.cf-alojamientos-hub-page .cf-hub-provincia-summary:focus-visible {
    background: rgba(255, 122, 0, 0.035);
    outline: none;
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary-main,
.cf-alojamientos-hub-page .cf-hub-provincia-summary-side {
    display: flex;
    align-items: center;
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary-main {
    min-width: 0;
    gap: 14px;
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary-side {
    flex: 0 0 auto;
    gap: 12px;
}

.cf-alojamientos-hub-page .cf-hub-provincia-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--cf-hub-soft);
    color: var(--bs-primary);
    font-size: 1.05rem;
}

.cf-alojamientos-hub-page .cf-hub-provincia-copy {
    min-width: 0;
}

.cf-alojamientos-hub-page .cf-hub-provincia-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-provincia-copy strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--cf-hub-text);
}

.cf-alojamientos-hub-page .cf-hub-provincia-total {
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-provincia-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--cf-hub-border);
    border-radius: 50%;
    color: var(--bs-primary);
    transition: transform 180ms ease, background 180ms ease;
}

.cf-alojamientos-hub-page .cf-hub-provincia[open] .cf-hub-provincia-toggle {
    transform: rotate(180deg);
    background: var(--cf-hub-soft);
}

.cf-alojamientos-hub-page .cf-hub-provincia-body {
    padding: 0 22px 22px;
    border-top: 1px solid var(--cf-hub-border);
}

.cf-alojamientos-hub-page .cf-hub-destinos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
}

.cf-alojamientos-hub-page .cf-hub-destino-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--cf-hub-border);
    border-radius: 16px;
    color: var(--cf-hub-text);
    text-decoration: none;
    background: var(--cf-hub-surface);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cf-alojamientos-hub-page .cf-hub-destino-card:hover,
.cf-alojamientos-hub-page .cf-hub-destino-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 0, 0.40);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    outline: none;
}

.cf-alojamientos-hub-page .cf-hub-destino-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cf-hub-soft);
    color: var(--bs-primary);
    font-size: 1rem;
}

.cf-alojamientos-hub-page .cf-hub-destino-copy {
    min-width: 0;
}

.cf-alojamientos-hub-page .cf-hub-destino-copy strong,
.cf-alojamientos-hub-page .cf-hub-destino-copy span {
    display: block;
}

.cf-alojamientos-hub-page .cf-hub-destino-copy strong {
    margin-bottom: 1px;
    font-family: "Poppins", sans-serif;
    font-size: 0.98rem;
}

.cf-alojamientos-hub-page .cf-hub-destino-copy span {
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-destino-arrow {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.cf-alojamientos-hub-page .cf-hub-how {
    background:
        radial-gradient(ellipse at 0% 60%, rgba(255, 122, 0, 0.055), transparent 58%),
        linear-gradient(135deg, rgba(0, 27, 46, 0.025), rgba(255, 122, 0, 0.025));
}

.cf-alojamientos-hub-page .cf-hub-destinos {
    scroll-margin-top: 100px;
    background: radial-gradient(ellipse at 100% 35%, rgba(255, 122, 0, 0.035), transparent 55%);
}

.cf-alojamientos-hub-page .cf-hub-provincia-summary:focus-visible,
.cf-alojamientos-hub-page .cf-hub-destino-card:focus-visible {
    outline: 3px solid #b85400;
    outline-offset: -3px;
}

.cf-alojamientos-hub-page .cf-hub-actions .btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.cf-alojamientos-hub-page .cf-hub-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cf-alojamientos-hub-page .cf-hub-how-card {
    padding: 28px;
    border: 1px solid var(--cf-hub-border);
    border-radius: 22px;
    background: var(--cf-hub-surface);
}

.cf-alojamientos-hub-page .cf-hub-how-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

.cf-alojamientos-hub-page .cf-hub-how-card h3 {
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
}

.cf-alojamientos-hub-page .cf-hub-how-card p {
    margin-bottom: 0;
    line-height: 1.65;
    color: var(--cf-hub-secondary);
}

.cf-alojamientos-hub-page .cf-hub-empty {
    padding: 52px 28px;
    border: 1px dashed var(--cf-hub-border);
    border-radius: 24px;
    text-align: center;
}

.cf-alojamientos-hub-page .cf-hub-empty i {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
    color: var(--bs-primary);
}

.cf-alojamientos-hub-page .cf-hub-cta {
    padding: 64px 0 76px;
}

.cf-alojamientos-hub-page .cf-hub-cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    padding: 34px;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 122, 0, 0.17), transparent 60%),
        linear-gradient(125deg, #001b2e, #062438);
    box-shadow: 0 18px 44px rgba(0, 27, 46, 0.10);
    color: #fff;
}

.cf-alojamientos-hub-page .cf-hub-cta .cf-hub-kicker {
    color: #fff;
    opacity: 0.85;
}

.cf-alojamientos-hub-page .cf-hub-cta h2 {
    color: #ffffff !important;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

.cf-alojamientos-hub-page .cf-hub-cta p {
    color: #d4e1eb;
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.65;
}

@media (max-width: 1199.98px) {
    .cf-alojamientos-hub-page .cf-hub-provincias {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .cf-alojamientos-hub-page .cf-hub-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cf-alojamientos-hub-page .cf-hub-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cf-alojamientos-hub-page .cf-hub-how-grid {
        grid-template-columns: 1fr;
    }

    .cf-alojamientos-hub-page .cf-hub-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .cf-alojamientos-hub-page .cf-hub-hero {
        padding: 22px 12px 8px;
    }

    .cf-alojamientos-hub-page .cf-hub-breadcrumb {
        margin-bottom: 24px;
    }

    .cf-alojamientos-hub-page .cf-hub-actions .btn {
        flex: 1 1 100%;
    }

    .cf-alojamientos-hub-page .cf-hub-stats {
        grid-template-columns: 1fr;
    }

    .cf-alojamientos-hub-page .cf-hub-destinos,
    .cf-alojamientos-hub-page .cf-hub-how {
        padding: 48px 0;
    }

    .cf-alojamientos-hub-page .cf-hub-provincia-summary {
        align-items: flex-start;
        min-height: 0;
        padding: 18px;
    }

    .cf-alojamientos-hub-page .cf-hub-provincia-summary-side {
        align-items: flex-end;
        flex-direction: column;
        gap: 8px;
    }

    .cf-alojamientos-hub-page .cf-hub-provincia-total {
        font-size: 0.82rem;
    }

    .cf-alojamientos-hub-page .cf-hub-provincia-body {
        padding: 0 18px 18px;
    }

    .cf-alojamientos-hub-page .cf-hub-destinos-grid {
        grid-template-columns: 1fr;
    }

    .cf-alojamientos-hub-page .cf-hub-cta {
        padding: 48px 0 60px;
    }

    .cf-alojamientos-hub-page .cf-hub-cta-inner {
        padding: 26px 22px;
        border-radius: 22px;
    }
}

@media (max-width: 420px) {
    .cf-alojamientos-hub-page .cf-hub-provincia-summary {
        gap: 10px;
    }

    .cf-alojamientos-hub-page .cf-hub-provincia-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .cf-alojamientos-hub-page .cf-hub-hero > .container {
        border-radius: 24px;
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cf-alojamientos-hub-page .cf-hub-provincia,
    .cf-alojamientos-hub-page .cf-hub-provincia-toggle,
    .cf-alojamientos-hub-page .cf-hub-destino-card {
        transition: none;
    }
}

/* =========================================================
   Directorio nacional de alojamientos
   Ajuste visual del desplegable por provincia.
   Mantiene todos los enlaces HTML rastreables existentes.
   ========================================================= */

/* Al abrir una provincia del directorio nacional, ocupa todo el ancho. */
.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia[open] {
    grid-column: 1 / -1;
}

/* Cuerpo más claro y aprovechando el ancho disponible. */
.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.012);
}

/* Cada localidad funciona como bloque independiente. */
.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body > section {
    min-width: 0;
    margin-bottom: 0 !important;
    padding: 18px;
    border: 1px solid var(--cf-hub-border);
    border-radius: 16px;
    background: var(--cf-hub-surface);
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body > section > h3 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cf-hub-border);
    font-family: "Poppins", sans-serif;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--cf-hub-text);
}

/* Dentro de cada localidad, una lista vertical compacta y legible. */
.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body > section > .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body > section > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a {
    min-height: 38px;
    padding: 7px 9px !important;
    border-radius: 10px;
    color: var(--cf-hub-text) !important;
    font-size: 0.92rem;
    font-weight: 600 !important;
    line-height: 1.35;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a i {
    flex: 0 0 auto;
    color: var(--bs-primary);
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a:hover,
.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a:focus-visible {
    background: var(--cf-hub-soft);
    color: var(--cf-hub-text) !important;
    transform: translateX(2px);
    outline: none;
}

.cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a:focus-visible {
    box-shadow: 0 0 0 2px rgba(184, 84, 0, 0.45);
}

@media (max-width: 1199.98px) {
    .cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body > section {
        padding: 14px;
    }

    .cf-alojamientos-hub-page #directorio-alojamientos .cf-hub-provincia-body a {
        min-height: 40px;
        font-size: 0.9rem;
    }
}
