/* ==================================================
   VARIABLES Y COLORES GLOBALES
   ================================================== */
:root {
    --primary: #ffffff;
    --secondary: #f8fafc;
    --surface: #ffffff;
    --brand-navy: #27243c;
    --accent: #1982a8;
    --accent-bright: #3499bb;
    --accent-soft: rgba(25, 130, 168, 0.10);
    --highlight: #e94560;
    --highlight-hover: #d63550;
    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;
    --text-light: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
}

/* ==================================================
   ESTILOS GENERALES
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: auto;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* ==================================================
   HEADER Y NAVEGACIÓN
   ================================================== */
#main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    margin-bottom: 14px;
}

.logo a:hover {
    opacity: 0.88;
}

.logo span {
    display: block;
    font-size: 0.58rem;
    color: var(--accent);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-top: -2px;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.btn-primary):not(.btn-whatsapp)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.15s ease;
}

.nav-links a:not(.btn-primary):not(.btn-whatsapp):hover::after,
.nav-links a.active-link:not(.btn-primary)::after {
    width: 100%;
}

.nav-links a.active-link {
    color: var(--accent);
}

/* Buscador compacto en el header */
.header-search-wrap {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.header-search-wrap .search-suggestions {
    width: 360px;
    max-width: 92vw;
    left: auto;
    right: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 6px 12px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-search-form:focus-within {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 130, 168, 0.16);
}

.header-search-form i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-right: 8px;
}

.header-search-form input {
    background: transparent;
    border: none;
    color: var(--brand-navy);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.header-search-form input::placeholder {
    color: var(--text-muted);
}

.mobile-menu-btn {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--brand-navy);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==================================================
   BOTONES
   ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--highlight) !important;
    color: white !important;
    border: 2px solid var(--highlight) !important;
}

.btn-primary:hover {
    background: var(--highlight-hover) !important;
    border-color: var(--highlight-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(233, 69, 96, 0.35);
}

.btn-outline {
    background: #ffffff;
    color: var(--brand-navy);
    border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0f9ff;
}

.hero-slider .btn-outline {
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.hero-slider .btn-outline:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: #ffffff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    filter: brightness(1.05);
}

/* ==================================================
   HERO SLIDER MULTI-FOTO + BUSCADOR ACTIVO
   ================================================== */
.hero-slider {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 45px;
}

.hero-slides-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.36) 0%, rgba(15, 23, 42, 0.54) 60%, rgba(15, 23, 42, 0.78) 100%);
}

.hero-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.hero-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 64px 0 56px;
}

.hero-text-box {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    animation: slideUp 0.32s ease forwards;
}

.hero-text-box h1 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
}

.hero-text-box p {
    font-size: 1.15rem;
    margin-bottom: 26px;
    color: rgba(241, 245, 249, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-slide-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 36, 60, 0.72);
    border: 1px solid rgba(52, 153, 187, 0.55);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.hero-nav-btn:hover {
    background: var(--highlight);
    border-color: var(--highlight);
}

.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 28px;
    background: var(--accent-bright);
}

.badge {
    display: inline-block;
    background: var(--highlight);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buscador Inteligente Activo en el Hero */
.hero-search-wrapper {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    z-index: 50;
}

.search-box-glass {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 8px 10px 8px 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box-glass:focus-within {
    border-color: var(--accent-bright);
    box-shadow: 0 22px 55px rgba(25, 130, 168, 0.30);
}

.search-box-glass .search-icon {
    color: var(--accent);
    font-size: 1.15rem;
}

.search-box-glass input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--brand-navy);
    font-size: 1.04rem;
    padding: 10px 6px;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.search-box-glass input::placeholder {
    color: #64748b;
}

.search-clear-btn {
    background: #f1f5f9;
    border: none;
    color: #475569;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.search-clear-btn.visible {
    display: inline-flex;
}

.search-clear-btn:hover {
    background: rgba(233, 69, 96, 0.7);
    color: #fff;
}

.search-submit-btn {
    padding: 12px 22px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Dropdown de Autocompletado en Vivo */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    text-align: left;
    z-index: 200;
}

.search-suggestions.open {
    display: block;
}

.suggest-section-title {
    padding: 10px 16px 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    font-weight: 700;
    border-top: 1px solid #f1f5f9;
}

.suggest-section-title:first-child {
    border-top: none;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-light);
    transition: background 0.18s ease;
}

.suggest-item:hover,
.suggest-item.active {
    background: #f0f9ff;
}

.suggest-thumb {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.suggest-info {
    flex: 1;
    min-width: 0;
}

.suggest-title {
    font-weight: 600;
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-title mark {
    background: rgba(52, 153, 187, 0.22);
    color: var(--brand-navy);
    border-radius: 2px;
    padding: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.suggest-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.suggest-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    white-space: nowrap;
}

.quick-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.quick-tag {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.quick-tag:hover,
.quick-tag.active {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: #ffffff;
    font-weight: 700;
}

/* ==================================================
   CARRUSEL VISUAL DE DESTINOS Y BARRA DE FILTROS
   ================================================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    color: var(--brand-navy);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.destinations-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(25, 130, 168, 0.35) transparent;
}

.dest-chip-card {
    flex: 0 0 auto;
    width: 175px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
}

.dest-chip-card:hover,
.dest-chip-card.active {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(25, 130, 168, 0.18);
}

.dest-chip-card.active {
    background: #f0f9ff;
}

.dest-chip-card img {
    width: 100%;
    height: 98px;
    object-fit: cover;
    display: block;
}

.dest-chip-meta {
    padding: 10px 12px;
}

.dest-chip-name {
    font-weight: 600;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dest-chip-region {
    font-size: 0.72rem;
    color: var(--accent);
}

.filter-toolbar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.filter-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.region-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.region-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--brand-navy);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.region-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.region-pill.active {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #fff;
    box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
}

.pill-count {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.region-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.filter-controls-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: center;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--brand-navy);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--accent);
}

.featured-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--brand-navy);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-toggle-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--brand-navy);
}

.active-filters-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    border: 1px solid rgba(25, 130, 168, 0.35);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-chip button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ==================================================
   GRID DE DESTINOS Y TARJETAS MULTI-FOTO
   ================================================== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
    transition: opacity 0.2s ease;
}

.destinations-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.destination-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    height: 390px;
    background: #0f172a;
    border: 1px solid #e2e8f0;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.destination-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-bright);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}

.card-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, opacity 0.2s ease;
    display: block;
}

.card-media img.is-swapping {
    opacity: 0.3;
}

.card-photo-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 8px;
}

.card-photo-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-photo-dot.active {
    width: 18px;
    background: var(--accent);
}

.destination-card:hover .card-media img {
    transform: scale(1.07);
}

/* Controles rápidos de galería dentro de la tarjeta */
.card-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.card-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.region-badge {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.featured-badge {
    background: var(--accent-bright);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.photo-count-badge {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-photo-switchers {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.destination-card:hover .card-photo-switchers {
    opacity: 1;
}

.card-photo-arrow {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.card-photo-arrow:hover {
    background: var(--accent-bright);
    color: #ffffff;
}

/* Overlay siempre legible con transición suave en hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.38) 45%, rgba(15, 23, 42, 0.96) 100%);
    display: flex;
    align-items: flex-end;
    padding: 22px;
    z-index: 3;
    transition: background 0.3s ease;
}

.destination-card:hover .card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.62) 40%, rgba(15, 23, 42, 0.98) 100%);
}

.card-overlay-inner {
    color: white;
    width: 100%;
}

.card-overlay h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
}

.card-dest-loc {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-dest-loc i {
    color: var(--accent);
}

.card-snippet {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.destination-card:hover .card-snippet {
    max-height: 44px;
    opacity: 0.9;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-tag {
    background: var(--highlight);
    color: #fff;
    display: inline-block;
    padding: 7px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.08rem;
}

.card-mini-actions {
    display: flex;
    gap: 8px;
}

.card-action-wa {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-action-wa:hover {
    transform: scale(1.08);
    background: var(--whatsapp-dark);
}

.card-action-view {
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.card-action-view:hover {
    background: var(--accent-bright);
    color: #ffffff;
    border-color: var(--accent-bright);
}

/* Estado vacío inteligente */
.empty-results-box {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 55px 28px;
    margin-bottom: 60px;
    color: var(--brand-navy);
}

.empty-results-box i.empty-icon {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ==================================================
   PÁGINA DE PLAN & GALERÍA INTERACTIVA + LIGHTBOX
   ================================================== */
.plan-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.plan-card-panel {
    background: #ffffff;
    padding: 36px;
    border-radius: 22px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

.plan-card-panel h2 {
    margin-bottom: 18px;
    color: var(--brand-navy);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card-panel h2 i {
    color: var(--accent);
}

.plan-gallery-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    background: #0b1120;
    cursor: zoom-in;
}

.plan-gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.plan-gallery-stage img.is-swapping {
    opacity: 0.25;
}

.plan-gallery-stage:hover img {
    transform: scale(1.02);
}

.gallery-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    background: linear-gradient(transparent, rgba(9, 14, 26, 0.9));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.gallery-stage-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery-stage-btn:hover {
    background: var(--highlight);
}

.gallery-stage-prev { left: 14px; }
.gallery-stage-next { right: 14px; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.gallery-thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    height: 78px;
    cursor: pointer;
    background: none;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
    opacity: 1;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-sidebar-card {
    position: sticky;
    top: 96px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 34px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    color: var(--brand-navy);
}

/* Lightbox Fullscreen */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.94);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-modal .gallery-stage-btn {
    z-index: 3020;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3030;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.lightbox-img-wrap {
    max-width: 1040px;
    max-height: 76vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 74vh;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 0.98rem;
    text-align: center;
}

/* ==================================================
   BOTÓN FLOTANTE WHATSAPP Y MODAL DE COTIZACIÓN
   ================================================== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
    color: #fff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float.whatsapp-float-compact {
    width: 52px;
    height: 52px;
    padding: 0;
}

.whatsapp-float.whatsapp-float-compact span {
    display: none;
}

.whatsapp-float i {
    font-size: 1.35rem;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 22, 0.78);
    backdrop-filter: blur(6px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.quote-modal {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
    position: relative;
    color: var(--brand-navy);
}

.quote-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: var(--brand-navy);
    cursor: pointer;
}

/* ==================================================
   FOOTER
   ================================================== */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 50px 0 24px;
    margin-top: 80px;
    color: var(--text-body);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}

.footer-section h4 {
    color: var(--brand-navy);
    margin-bottom: 15px;
    font-size: 1.15rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==================================================
   FORMULARIOS
   ================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-navy);
    font-size: 0.96rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.form-control option {
    background: #ffffff;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 130, 168, 0.16);
}

@keyframes slideUp {
    from {
        opacity: 0.45;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 992px) {
    .plan-detail-grid {
        grid-template-columns: 1fr;
    }

    .header-search-wrap {
        width: 190px;
    }
}

@media (hover: none) {
    .card-photo-switchers {
        opacity: 0.88;
    }
}

@media (max-width: 820px) {
    .card-photo-switchers {
        opacity: 0.9;
    }

    .brand-logo-img {
        height: 34px;
        max-width: 190px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 14px;
    }

    nav {
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
        border-top: 1px solid var(--glass-border);
    }

    nav.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .header-search-wrap {
        width: 100%;
    }

    .header-search-wrap .search-suggestions {
        width: 100%;
        left: 0;
        right: 0;
    }

    .hero-text-box h1 {
        font-size: 2.3rem;
    }

    .search-box-glass {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .search-submit-btn {
        width: 100%;
    }

    .hero-nav-btn {
        display: none;
    }

    .plan-gallery-stage {
        height: 290px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        padding: 0;
        right: 14px;
        bottom: 14px;
    }

    body {
        padding-bottom: 56px;
    }
}

@media (max-width: 480px) {
    .hero-text-box h1 {
        font-size: 1.85rem;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .destination-card {
        height: 340px;
    }
}
