/* ============================================================
   HOTELES.CSS — QariQari 2025
   ============================================================ */

:root {
    --verde-profundo: #0a2e1c;
    --verde-selva:    #1a5a3a;
    --verde-claro:    #e0f0e6;
    --naranja:        #e76f51;
    --naranja-claro:  #f4a261;
    --fondo:          #f0f0ec;
    --card:           #ffffff;
    --texto:          #1a1a1a;
    --texto-sec:      #888888;
    --borde:          #e8e8e8;
    --blanco:         #ffffff;
    --sans:           'Inter', system-ui, sans-serif;
    --serif:          'Playfair Display', Georgia, serif;
    --radio:          14px;
    --radio-lg:       20px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:      0 6px 20px rgba(0,0,0,0.10);
    --transition:     all 0.28s ease;
    --max-w:          1200px;
}

/* ================================================================
   HERO
================================================================ */
.hoteles-hero {
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-selva) 100%);
    padding: 52px 0 44px;
    text-align: center;
    color: var(--blanco);
}

.hoteles-hero h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 10px;
}

.hoteles-hero p {
    font-size: 1rem;
    opacity: 0.82;
    max-width: 520px;
    margin: 0 auto;
}

/* ================================================================
   TOOLBAR (filtros pills)
================================================================ */
.hoteles-toolbar {
    background: var(--card);
    padding: 16px 0;
    border-bottom: 1px solid var(--borde);
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hoteles-toolbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hoteles-filter-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--texto-sec);
    text-align: center;
    margin: 0 0 10px;
    letter-spacing: .02em;
}

.hoteles-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hoteles-search-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.hoteles-search-input {
    width: 100%;
    max-width: 460px;
    padding: 11px 20px;
    border: 1.5px solid var(--borde);
    border-radius: 50px;
    font-size: .875rem;
    font-family: var(--sans);
    background: #fafafa;
    color: var(--texto);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.hoteles-search-input:focus {
    border-color: var(--verde-selva);
    box-shadow: 0 0 0 3px rgba(26,90,58,.08);
    background: #fff;
}

.filtro-hotel-btn {
    background: var(--fondo);
    border: 1px solid var(--borde);
    color: var(--texto);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--sans);
}

.filtro-hotel-btn:hover {
    border-color: var(--verde-selva);
    color: var(--verde-selva);
}

.filtro-hotel-btn.active {
    background: var(--verde-selva);
    border-color: var(--verde-selva);
    color: var(--blanco);
}

/* ================================================================
   HOTELES LAYOUT
================================================================ */
.hoteles-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 20px 64px;
}

/* Grid uniforme */
.hoteles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Hotel Card ── */
.hotel-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
}

/* Imagen */
.hotel-card-img {
    position: relative;
    height: 210px;
    background: #dceee4;
    overflow: hidden;
    flex-shrink: 0;
}

.hotel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-card-img img {
    transform: scale(1.05);
}

/* Badge Más Vendido */
.badge-popular {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--naranja);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Cuerpo */
.hotel-card-body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hotel-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
    margin: 0;
}

.hotel-card-body .hotel-ubicacion {
    font-size: 0.8rem;
    color: var(--texto-sec);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.hotel-estrellas {
    font-size: 0.78rem;
    color: var(--texto-sec);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.hotel-estrellas span {
    font-size: 0.74rem;
}

/* Chips de habitaciones */
.hotel-hab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.hab-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0ebe0;
    color: #4a3a20;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Chips de amenidades */
.hotel-am-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.am-chip {
    display: inline-block;
    background: #e8f4ee;
    color: var(--verde-selva);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Botones de acción */
.hotel-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-hotel-det,
.btn-hotel-res {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--sans);
    white-space: nowrap;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.22s ease;
    letter-spacing: 0.01em;
}

.btn-hotel-det {
    background: #f4f4f0;
    border: none;
    color: var(--verde-profundo);
}

.btn-hotel-det:hover {
    background: #e4ede8;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(10,46,28,0.12);
}

.btn-hotel-res {
    background: var(--verde-profundo);
    border: none;
    color: #fff;
    box-shadow: 0 3px 12px rgba(10,46,28,0.25);
}

.btn-hotel-res:hover {
    background: #0d3d24;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10,46,28,0.35);
}

@media (max-width: 640px) {
    .hoteles-grid { grid-template-columns: 1fr; }
    .hotel-card-img { height: 180px; }
}

/* ================================================================
   MODAL HOTEL — carrusel + tabs
================================================================ */
.modal-hotel-detail {
    max-width: 620px;
    padding: 0;
    border-radius: 22px;
    border-top: none;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow: hidden;
}

/* Carrusel de imágenes */
.hm-carousel {
    position: relative;
    height: 260px;
    background: #e4e4e0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-carousel-empty { background: #eaeae6; }

.hm-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hm-slide.active { opacity: 1; }

.hm-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(4px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 3;
    transition: background .2s;
}
.hm-arr:hover { background: #fff; }
.hm-arr-prev { left: 14px; }
.hm-arr-next { right: 14px; }

.hm-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.hm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .25s;
}
.hm-dot.active {
    background: var(--naranja);
    width: 22px;
    border-radius: 4px;
}

/* Botón cerrar */
.modal-hotel-detail .close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

/* Área scrollable */
#hotelModalBody {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Título + ubicación */
.hm-info {
    padding: 18px 22px 12px;
}
.hm-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--texto);
    margin: 0 0 6px;
    line-height: 1.3;
}
.hm-ubicacion {
    font-size: .82rem;
    color: var(--texto-sec);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tabs — dos filas */
.hm-tabs-wrap {
    padding: 4px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hm-tabs {
    display: flex;
    gap: 4px;
    background: #f0f0ec;
    border-radius: 13px;
    padding: 4px;
}
.hm-tab {
    flex: 1;
    padding: 9px 4px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sans);
    color: var(--texto-sec);
    transition: background .2s, color .2s;
    white-space: nowrap;
    line-height: 1.2;
}
.hm-tab.active {
    background: var(--verde-profundo);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,46,28,.2);
}
.hm-tab:not(.active):hover { background: #e4e4e0; color: var(--texto); }

/* Contenido de tabs */
.hm-content {
    padding: 16px 20px 8px;
    min-height: 120px;
}
.hm-panel { display: none; }
.hm-panel.active { display: block; }

.hm-desc {
    font-size: .875rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* Amenidades — grid 2 col */
.hm-amen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hm-amen-card {
    background: #e8f4ee;
    border: 1px solid #c8e8d8;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: #1a4a30;
    line-height: 1.4;
}

/* Habitaciones */
.hm-hab-card {
    background: #ede8dc;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.hm-hab-card:last-child { margin-bottom: 0; }
.hm-hab-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
    margin-bottom: 4px;
}
.hm-hab-pers {
    font-size: .82rem;
    color: #666;
    margin-bottom: 10px;
}
.hm-hab-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hm-hab-pill {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .78rem;
    color: #333;
    font-weight: 500;
}

/* Amenidades */
.hm-amenidades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Listas incluye / no incluye / recomendaciones */
.hm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hm-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ec;
    font-size: .875rem;
    color: #444;
    line-height: 1.4;
}
.hm-list li:last-child { border-bottom: none; }
.hm-list li span:first-child { flex-shrink: 0; font-size: 1rem; }

.hm-empty {
    color: #aaa;
    font-size: .85rem;
    margin: 0;
    padding: 8px 0;
}

/* ── Single-scroll layout (no tabs) ── */
.hm-body {
    padding: 20px 22px 24px;
}

.hm-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--texto);
    margin: 0 0 6px;
    line-height: 1.3;
}

.hm-sec {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0ec;
}

.hm-sec-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--verde-profundo);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.amenidad-tag {
    display: inline-block;
    background: #e8f4ee;
    color: var(--verde-selva);
    font-size: .78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #c8e8d8;
}

/* Botones de acción */
.hm-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px 20px;
    border-top: 1px solid var(--borde);
}
.hm-btn-wa,
.hm-btn-cerrar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: .22s;
    cursor: pointer;
    border: none;
    font-family: var(--sans);
}
.hm-btn-wa      { background: #25D366; color: #fff; }
.hm-btn-wa:hover { background: #1daa54; }
.hm-btn-cerrar  { background: #f0f0ec; color: var(--texto); }
.hm-btn-cerrar:hover { background: #e4e4e0; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 640px) {
    .hoteles-grid { grid-template-columns: 1fr; }
    .hotel-card-img { height: 180px; }
    .hm-carousel { height: 200px; }
    .hm-tab { font-size: .66rem; padding: 8px 2px; }
    .hm-amen-grid { grid-template-columns: 1fr; }
    .hm-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .hoteles-section { padding: 20px 14px 48px; }
    .modal-hotel-detail { border-radius: 16px 16px 0 0; }
}
