﻿/* ================================================================
   BARRA DE BÚSQUEDA HOME - CENTRADO VERTICAL HOME-SEARCH-BAR
   Inputs centrados y cuadro compacto
   ================================================================ */

/* ================================================================
   WRAPPER
   ================================================================ */

.search-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .search-wrapper .flex-grow-1 {
        flex: 1;
    }

/* ================================================================
   TABS BUSCADOR
   ================================================================ */

.nav-buscador-home {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 3px;
    display: inline-flex;
    gap: 3px;
    margin-bottom: 8px !important;
}
.btn-tab-buscador {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700; /* CAMBIADO de 600 a 700 (bold) */
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-transform: none;
}

    .btn-tab-buscador:hover {
        color: #495057;
        background: rgba(139, 29, 29, 0.05);
    }

    .btn-tab-buscador.active {
        background: white;
        color: #212529; /* CAMBIADO de #8B1D1D a negro */
        font-weight: 700; /* BOLD */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }

        .btn-tab-buscador.active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, #8B1D1D 0%, #D4AF37 100%);
            border-radius: 2px 2px 0 0;
        }

    .btn-tab-buscador i {
        font-size: 0.75rem;
    }

/* ================================================================
   CAJA DE BÚSQUEDA - CENTRADA VERTICALMENTE
   ================================================================ */

.search-premium-box,
.search-ia-box {
    background: white;
    transition: box-shadow 0.3s ease;
    padding: 4px 8px !important; /* Reducido de 5px a 4px */
    border-radius: 6px;
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
}

    .search-premium-box:hover,
    .search-ia-box:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    /* Form ocupa todo el ancho */
    .search-premium-box form,
    .search-ia-box form {
        width: 100%;
    }

    /* Row centrada verticalmente */
    .search-premium-box .row,
    .search-ia-box .row {
        margin: 0 !important;
        --bs-gutter-x: 0.25rem !important;
        display: flex;
        align-items: center; /* Centra verticalmente */
    }

        /* Columnas */
        .search-premium-box .row > [class*="col"],
        .search-ia-box .row > [class*="col"] {
            padding-left: calc(var(--bs-gutter-x) * 0.5);
            padding-right: calc(var(--bs-gutter-x) * 0.5);
            display: flex;
            align-items: center; /* Centra el input-group */
        }

    /* ================================================================
   INPUTS Y SELECTS - 28PX
   ================================================================ */

    .search-premium-box .input-group,
    .search-ia-box .input-group {
        height: 28px !important;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }

    .search-premium-box input[type="text"],
    .search-ia-box input[type="text"],
    .search-premium-box select,
    .search-premium-box .form-select {
        font-size: 0.75rem !important;
        height: 28px !important;
        padding: 4px 8px !important;
        line-height: 1.2;
        border: none !important;
        background: transparent !important;
    }

        .search-premium-box input[type="text"]::placeholder,
        .search-ia-box input[type="text"]::placeholder {
            color: #adb5bd;
            font-size: 0.75rem;
        }

        .search-premium-box input[type="text"]:focus,
        .search-ia-box input[type="text"]:focus,
        .search-premium-box select:focus,
        .search-premium-box .form-select:focus {
            outline: none !important;
            box-shadow: none !important;
        }

    /* SELECT */
    .search-premium-box select,
    .search-premium-box .form-select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0 center !important;
        background-size: 10px !important;
        color: #6c757d;
    }

        .search-premium-box select:focus,
        .search-premium-box .form-select:focus {
            color: #495057;
        }

    /* ICONOS */
    .search-premium-box .input-group-text,
    .search-ia-box .input-group-text {
        font-size: 0.75rem !important;
        padding: 4px 6px !important;
        background: transparent !important;
        border: none !important;
        display: flex;
        align-items: center;
    }

        .search-premium-box .input-group-text i,
        .search-ia-box .input-group-text i {
            font-size: 0.85rem !important;
        }

/* ================================================================
   BOTÓN BUSCAR - 28PX
   ================================================================ */

.btn-buscar-unificado {
    background: linear-gradient(135deg, #8B1D1D 0%, #6d1717 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.75rem !important;
    padding: 5px 18px !important;
    height: 28px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: none;
    white-space: nowrap;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .btn-buscar-unificado:hover {
        background: linear-gradient(135deg, #6d1717 0%, #8B1D1D 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(139, 29, 29, 0.3);
        color: white;
    }

    .btn-buscar-unificado:active {
        transform: translateY(0);
    }

/* ================================================================
   FILTROS BREADCRUMB MÓVIL
   ================================================================ */

.mobile-filters-breadcrumb {
    display: none;
}

/* ================================================================
   HEADER STICKY
   ================================================================ */

.home-header-premium {
    position: sticky;
    top: 64px;
    z-index: 10;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    margin-top: -20px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

    .home-header-premium.scrolled {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */

@media (max-width: 991px) {
    .mobile-filters-breadcrumb {
        display: block !important;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e9ecef;
    }

    .filters-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.7rem;
    }

    .filter-item {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        position: relative;
        max-width: 140px;
    }

        .filter-item i.fas:not(.arrow-icon) {
            font-size: 0.65rem;
            color: #8B1D1D;
        }

        .filter-item:first-of-type i.fas:not(.arrow-icon) {
            color: #D4AF37;
        }

    .filter-select {
        border: none;
        background: transparent;
        color: #495057;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0;
        padding-right: 14px;
        cursor: pointer;
        appearance: none;
        outline: none;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .arrow-icon {
        font-size: 0.6rem;
        color: #6c757d;
        position: absolute;
        right: 0;
        pointer-events: none;
    }
}

/* ================================================================
   RESPONSIVE - MÓVIL
   ================================================================ */

@media (max-width: 768px) {
    .search-wrapper {
        display: block !important;
    }

    .home-header-premium {
        position: relative !important;
        top: auto !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

        .home-header-premium hr {
            display: none !important;
        }

        .home-header-premium .row {
            margin-bottom: 0.4rem !important;
        }

    .nav-buscador-home {
        width: 100%;
        justify-content: center;
        padding: 4px !important;
        margin-bottom: 8px !important;
    }

    .btn-tab-buscador {
        flex: 1;
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .d-flex.justify-content-center.mb-3 {
        margin-top: 0 !important;
        margin-bottom: 0.6rem !important;
    }

    .mobile-filters-breadcrumb {
        margin-bottom: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    .search-premium-box form,
    .search-ia-box form {
        position: relative;
    }

    .search-premium-box,
    .search-ia-box {
        padding: 0.6rem !important;
        margin-bottom: 0.6rem;
    }

        .search-premium-box input[type="text"],
        .search-ia-box input[type="text"] {
            padding: 0.5rem !important;
            padding-right: 50px !important;
            font-size: 0.85rem !important;
            height: 34px !important;
        }

    .search-wrapper .btn-buscar-unificado {
        width: 100%;
        height: 36px !important;
        font-size: 0.85rem !important;
        padding: 8px 20px !important;
    }
}

@media (max-width: 576px) {
    .btn-tab-buscador {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

        .btn-tab-buscador.active::after {
            bottom: -5px;
            height: 2px;
        }

    .search-premium-box,
    .search-ia-box {
        padding: 0.5rem !important;
    }
}
/* ================================================================
   CENTRADO VERTICAL REAL EN BUSCADOR
================================================================ */
/* ================================================================
   FIX FINAL: BUSCADOR COMPACTO Y CENTRADO VERTICAL
================================================================ */
/* FIX REAL BUSCADOR */
.search-premium-box,
.search-ia-box {
    padding: 3px 10px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
}

    .search-premium-box form,
    .search-ia-box form {
        width: 100%;
        margin: 0 !important;
    }

.search-fields-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    --bs-gutter-y: 0 !important;
    align-items: center !important;
}

    .search-fields-row > [class*="col"] {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

.search-premium-box .input-group,
.search-ia-box .input-group {
    height: 34px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.search-premium-box .input-group-text,
.search-ia-box .input-group-text,
.search-premium-box .form-control,
.search-ia-box .form-control,
.search-premium-box .form-select {
    height: 34px !important;
    min-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 34px !important;
    margin: 0 !important;
}

.search-premium-box .form-select {
    padding-right: 32px !important;
    background-position: right 12px center !important;
}
.nav-buscador-home.modo-turismo {
    justify-content: center;
}

    .nav-buscador-home.modo-turismo .btn-tab-buscador {
        min-width: 140px;
    }

.home-header-premium .campo-categoria-desktop.d-none,
.home-header-premium .campo-categoria-mobile.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .home-main-tabs:has(.home-tab-btn[data-tab="turismo"].active) ~ .home-tabs-subtitles ~ .container .campo-texto-busqueda,
    .home-main-tabs:has(.home-tab-btn[data-tab="turismo"].active) ~ .home-tabs-subtitles ~ .container .campo-localidad-desktop {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ============================================
   NAVEGACIÓN HOME - SEGMENTED CONTROL
   Mismo estilo que tienda-header
   ============================================ */

.home-nav-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: #e9ecef;
    border-radius: 10px;
    width: fit-content;
}

.home-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

    .home-nav-btn i {
        font-size: 0.875rem;
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }

    .home-nav-btn:hover:not(.active) {
        color: #495057;
    }

    .home-nav-btn.active {
        background: #fff;
        color: #1a1a1a;
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    }

        .home-nav-btn.active i {
            opacity: 1;
            color: #8B1D1D;
        }

/* Contenido de tabs */
.home-tab-content {
    position: relative;
}

.home-tab-section {
    display: none;
    animation: fadeInTabHome 0.3s ease;
}

    .home-tab-section.active {
        display: block;
    }

@keyframes fadeInTabHome {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .home-nav-buttons {
        width: 100%;
    }

    .home-nav-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        flex: 1;
        justify-content: center;
    }

        .home-nav-btn i {
            font-size: 0.8125rem;
        }

        .home-nav-btn span {
            font-size: 0.7rem;
        }
}

@media (max-width: 576px) {
    .home-nav-btn {
        padding: 0.5rem 0.625rem;
    }

        .home-nav-btn span {
            display: none;
        }
}
/* ================================================================
   WRAPPER PARA BUSCADOR DENTRO DEL HERO
   ================================================================ */

.home-search-wrapper {
    /* Sin estilos específicos, solo wrapper para mantener estructura */
}

/* Quitar sticky cuando está dentro del hero */
.hero-banner-with-search .home-header-premium {
    position: relative !important;
    top: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ================================================================
   GLASSMORPHISM PARA BUSCADOR DENTRO DEL HERO
   Solo aplica cuando está dentro de .hero-banner-with-search
   ================================================================ */

/* Tabs de búsqueda (Buscar / Buscar IA) */
.hero-banner-with-search .nav-buscador-home {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-banner-with-search .btn-tab-buscador {
    color: rgba(255, 255, 255, 0.85);
}

    .hero-banner-with-search .btn-tab-buscador:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #fff;
    }

    .hero-banner-with-search .btn-tab-buscador.active {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #8B1D1D !important;
    }

/* Caja de búsqueda principal */
.hero-banner-with-search .search-premium-box,
.hero-banner-with-search .search-ia-box {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

    .hero-banner-with-search .search-premium-box:hover,
    .hero-banner-with-search .search-ia-box:hover {
        background: rgba(255, 255, 255, 0.25) !important;
    }

    /* Inputs y selects - texto blanco */
    .hero-banner-with-search .search-premium-box input,
    .hero-banner-with-search .search-premium-box select,
    .hero-banner-with-search .search-ia-box input {
        color: rgba(255, 255, 255, 0.95) !important;
    }

        .hero-banner-with-search .search-premium-box input::placeholder,
        .hero-banner-with-search .search-ia-box input::placeholder {
            color: rgba(255, 255, 255, 0.6) !important;
        }

    /* Select con flecha blanca */
    .hero-banner-with-search .search-premium-box select {
        color: rgba(255, 255, 255, 0.85) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    }

/* Iconos blancos */
.hero-banner-with-search .input-group-text i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Botón buscar semi-transparente */
.hero-banner-with-search .btn-buscar-unificado {
    background: rgba(139, 29, 29, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

    .hero-banner-with-search .btn-buscar-unificado:hover {
        background: rgba(139, 29, 29, 1) !important;
        box-shadow: 0 6px 20px rgba(139, 29, 29, 0.5);
    }

/* Botón limpiar filtros */
.hero-banner-with-search .btn-limpiar-filtros {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
}

    .hero-banner-with-search .btn-limpiar-filtros:hover {
        background: rgba(139, 29, 29, 0.9) !important;
        color: #fff !important;
    }

/* HR separador */
.hero-banner-with-search hr {
    border-color: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.4;
}
/* ================================================================
   FILTROS SEPARADOS - DISEÑO MINIMALISTA
   ================================================================ */

/* Fila de filtros debajo del buscador */
.search-filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Grupo individual de filtro */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* Icono del filtro */
.filter-icon {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

/* Select de filtros */
.filter-select {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1.5rem 0.4rem 0;
    cursor: pointer;
    appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
    transition: all 0.2s ease;
}

    .filter-select:hover {
        border-bottom-color: rgba(255, 255, 255, 0.6);
    }

    .filter-select:focus {
        border-bottom-color: rgba(255, 255, 255, 0.9);
    }

    /* Opciones del select */
    .filter-select option {
        background: #2d2d2d;
        color: #fff;
    }

/* Botón limpiar filtros inline */
.btn-limpiar-filtros-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-limpiar-filtros-inline:hover {
        background: rgba(139, 29, 29, 0.9);
        border-color: rgba(139, 29, 29, 0.9);
        color: #fff;
        transform: translateY(-1px);
    }

    .btn-limpiar-filtros-inline i {
        font-size: 0.75rem;
    }

/* ================================================================
   BUSCADOR PRINCIPAL - GLASSMORPHISM
   ================================================================ */

.hero-banner-with-search .search-premium-box {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

    .hero-banner-with-search .search-premium-box:hover {
        background: rgba(255, 255, 255, 0.25) !important;
    }

    .hero-banner-with-search .search-premium-box input {
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 0.9rem;
    }

        .hero-banner-with-search .search-premium-box input::placeholder {
            color: rgba(255, 255, 255, 0.6) !important;
        }

.hero-banner-with-search .input-group-text i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .search-filters-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .btn-limpiar-filtros-inline {
        width: 100%;
        justify-content: center;
    }
}
/* ================================================================
   HERO SEARCH INTEGRADO A LA IMAGEN - GLASS PREMIUM
================================================================ */

/* =========================================================
   BUSCADOR HERO COMPACTO + EXPANDIBLE
========================================================= */

.hero-banner-with-search #pills-tradicional .search-wrapper {
    width: min(620px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .55rem;
    transition: width .35s ease;
}

    /* Al hacer clic/escribir, se expande */
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within {
        width: min(920px, 100%);
    }

/* Caja inicial compacta */
.hero-banner-with-search #pills-tradicional .search-premium-box {
    flex: 1;
    background: rgba(0,0,0,.05) !important;
    border: none !important;
    border-bottom: 2px solid rgba(255,255,255,.70) !important;
    border-radius: 8px !important;
    padding: .35rem .65rem !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: all .35s ease;
}

/* Al enfocar, recién aparece glass */
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .search-premium-box {
    background: rgba(0,0,0,.22) !important;
    border-bottom-color: rgba(255,255,255,.95) !important;
    padding: .55rem 1rem !important;
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;
}

/* Input compacto */
.hero-banner-with-search #pills-tradicional input[name="q"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    height: 34px !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    transition: all .35s ease;
}

/* Input expandido */
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within input[name="q"] {
    height: 42px !important;
    font-size: 1rem !important;
}

/* Placeholder compacto */
.hero-banner-with-search #pills-tradicional input[name="q"]::placeholder {
    color: rgba(255,255,255,.88) !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
}

/* Placeholder expandido */
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within input[name="q"]::placeholder {
    font-size: 1rem !important;
}

/* Icono compacto */
.hero-banner-with-search #pills-tradicional .input-group-text {
    background: transparent !important;
    border: none !important;
    padding: 0 .5rem 0 0 !important;
}

    .hero-banner-with-search #pills-tradicional .input-group-text i {
        color: #fff !important;
        font-size: .9rem !important;
        transition: font-size .35s ease;
    }

.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .input-group-text i {
    font-size: 1.2rem !important;
}

/* Botones a la derecha compactos */
.hero-banner-with-search #pills-tradicional .search-actions {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex-shrink: 0;
}

.hero-banner-with-search #pills-tradicional .btn-buscar-unificado,
.hero-banner-with-search #pills-tradicional .btn-toggle-filtros {
    height: 26px !important;
    min-height: 26px !important;
    padding: .25rem .8rem !important;
    font-size: .7rem !important;
    border-radius: 7px !important;
    transition: all .35s ease;
}

/* Botones un poco más presentes al escribir */
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .btn-buscar-unificado,
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .btn-toggle-filtros {
    height: 30px !important;
    min-height: 30px !important;
    padding: .35rem 1rem !important;
    font-size: .76rem !important;
}

/* Botón filtros */
.hero-banner-with-search #pills-tradicional .btn-toggle-filtros {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    color: rgba(255,255,255,.9) !important;
    backdrop-filter: blur(7px);
}

    .hero-banner-with-search #pills-tradicional .btn-toggle-filtros:hover,
    .hero-banner-with-search #pills-tradicional .btn-toggle-filtros.active {
        background: rgba(139,29,29,.86) !important;
        color: #fff !important;
    }

/* Mobile */
@media (max-width: 768px) {
    .hero-banner-with-search #pills-tradicional .search-wrapper,
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within {
        width: 100%;
        flex-direction: column;
    }

    .hero-banner-with-search #pills-tradicional .search-actions {
        width: 100%;
        flex-direction: row;
    }

    .hero-banner-with-search #pills-tradicional .btn-buscar-unificado,
    .hero-banner-with-search #pills-tradicional .btn-toggle-filtros {
        width: 100% !important;
    }
}
/* =========================================================
   RESTAURA ESTADO INICIAL DEL BUSCADOR COMPACTO
========================================================= */

.hero-banner-with-search #pills-tradicional .search-premium-box {
    background: rgba(0, 0, 0, .16) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-bottom: 2px solid rgba(255, 255, 255, .78) !important;
    border-radius: 12px !important;
    padding: .42rem .8rem !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

    .hero-banner-with-search #pills-tradicional .search-premium-box:hover {
        background: rgba(0, 0, 0, .20) !important;
        border-color: rgba(255,255,255,.30) !important;
    }

/* Mantiene el estado expandido al hacer clic */
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .search-premium-box {
    background: rgba(0,0,0,.28) !important;
    border-color: rgba(255,255,255,.32) !important;
    border-bottom-color: rgba(255,255,255,.95) !important;
    padding: .55rem 1rem !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
/* =========================================================
   RECUPERAR SUBTEXTOS DE TABS PRINCIPALES
========================================================= */

.hero-banner-with-search .home-tabs-subtitles {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(900px, 100%);
    margin: -8px auto 1.2rem auto !important;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.hero-banner-with-search .tab-subtitle-item {
    display: flex !important;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,.58) !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    text-align: center;
    min-height: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

    .hero-banner-with-search .tab-subtitle-item.active {
        color: #fff !important;
        font-weight: 900 !important;
        text-shadow: 0 3px 10px rgba(0,0,0,.35);
    }

/* =========================================================
   BUSCAR IA - MISMO ESTILO QUE BUSCADOR COMÚN
========================================================= */

.hero-banner-with-search #pills-ia .search-wrapper {
    width: min(620px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .55rem;
    transition: width .35s ease;
}

    .hero-banner-with-search #pills-ia .search-wrapper:focus-within {
        width: min(920px, 100%);
    }

.hero-banner-with-search #pills-ia .search-ia-box {
    flex: 1;
    background: rgba(0, 0, 0, .16) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-bottom: 2px solid rgba(255, 255, 255, .78) !important;
    border-radius: 12px !important;
    padding: .42rem .8rem !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.14) !important;
    transition: all .35s ease;
}

.hero-banner-with-search #pills-ia .search-wrapper:focus-within .search-ia-box {
    background: rgba(0,0,0,.28) !important;
    border-color: rgba(255,255,255,.32) !important;
    border-bottom-color: rgba(255,255,255,.95) !important;
    padding: .55rem 1rem !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.hero-banner-with-search #pills-ia .input-group,
.hero-banner-with-search #pills-ia .input-group-text {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-banner-with-search #pills-ia .input-group-text {
    padding: 0 .5rem 0 0 !important;
}

    .hero-banner-with-search #pills-ia .input-group-text i {
        color: #fff !important;
        font-size: .9rem !important;
        transition: font-size .35s ease;
    }

.hero-banner-with-search #pills-ia .search-wrapper:focus-within .input-group-text i {
    font-size: 1.2rem !important;
}

.hero-banner-with-search #pills-ia input[name="preguntaIa"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    height: 34px !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    transition: all .35s ease;
}

.hero-banner-with-search #pills-ia .search-wrapper:focus-within input[name="preguntaIa"] {
    height: 42px !important;
    font-size: 1rem !important;
}

.hero-banner-with-search #pills-ia input[name="preguntaIa"]::placeholder {
    color: rgba(255,255,255,.88) !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
}

.hero-banner-with-search #pills-ia .search-wrapper:focus-within input[name="preguntaIa"]::placeholder {
    font-size: 1rem !important;
}

.hero-banner-with-search #pills-ia .btn-buscar-unificado {
    height: 30px !important;
    min-height: 30px !important;
    padding: .35rem 1rem !important;
    font-size: .76rem !important;
    border-radius: 7px !important;
}
/* =========================================================
   FIJAR BUSCADOR EN TAMAÑO COMPACTO (SIN EXPANDIR)
========================================================= */

/* Wrapper: ancho fijo, no se expande al focus */
.hero-banner-with-search #pills-tradicional .search-wrapper,
.hero-banner-with-search #pills-tradicional .search-wrapper:focus-within,
.hero-banner-with-search #pills-ia .search-wrapper,
.hero-banner-with-search #pills-ia .search-wrapper:focus-within {
    width: min(620px, 100%) !important;
}

    /* Caja: mismo padding/estilo en focus que en normal */
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .search-premium-box,
    .hero-banner-with-search #pills-ia .search-wrapper:focus-within .search-ia-box {
        padding: .42rem .8rem !important;
    }

    /* Input: mismo alto y font en focus que en normal */
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within input[name="q"],
    .hero-banner-with-search #pills-ia .search-wrapper:focus-within input[name="preguntaIa"] {
        height: 34px !important;
        font-size: .82rem !important;
    }

        /* Placeholder: mismo tamaño en focus */
        .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within input[name="q"]::placeholder,
        .hero-banner-with-search #pills-ia .search-wrapper:focus-within input[name="preguntaIa"]::placeholder {
            font-size: .82rem !important;
        }

    /* Icono: mismo tamaño en focus */
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .input-group-text i,
    .hero-banner-with-search #pills-ia .search-wrapper:focus-within .input-group-text i {
        font-size: .9rem !important;
    }

    /* Botones: mismo tamaño en focus */
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .btn-buscar-unificado,
    .hero-banner-with-search #pills-tradicional .search-wrapper:focus-within .btn-toggle-filtros {
        height: 26px !important;
        min-height: 26px !important;
        padding: .25rem .8rem !important;
        font-size: .7rem !important;
    }
/* ================================================================
   BOTÓN LIMPIAR TEXTO (X dentro del input)
================================================================ */

.btn-limpiar-texto {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-right: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .btn-limpiar-texto:hover {
        background: rgba(139, 29, 29, 0.85);
        color: #fff;
        transform: scale(1.1);
    }

    .btn-limpiar-texto:active {
        transform: scale(0.95);
    }

    .btn-limpiar-texto i {
        font-size: 0.65rem;
    }

/* Cuando el buscador está fuera del hero (caso menos común), versión oscura */
.home-search-wrapper:not(.hero-banner-with-search .home-search-wrapper) .btn-limpiar-texto {
    background: rgba(0, 0, 0, 0.08);
    color: #6c757d;
}

    .home-search-wrapper:not(.hero-banner-with-search .home-search-wrapper) .btn-limpiar-texto:hover {
        background: #8B1D1D;
        color: #fff;
    }
/* ================================================================
   HOME MAIN TABS - VERSIÓN MINIMALISTA + BORDE ROTATIVO ANIMADO
================================================================ */

.hero-banner-with-search .home-main-tabs-mini {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto 1.5rem auto !important;
    width: fit-content;
}

    .hero-banner-with-search .home-main-tabs-mini .home-tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 1.2rem !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.65) !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        border-radius: 10px;
        cursor: pointer;
        transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        position: relative;
        z-index: 1;
    }

        .hero-banner-with-search .home-main-tabs-mini .home-tab-btn i {
            font-size: 0.95rem !important;
            opacity: 0.85;
            transition: all 0.25s ease;
        }

        .hero-banner-with-search .home-main-tabs-mini .home-tab-btn:hover {
            color: rgba(255, 255, 255, 0.95) !important;
            background: rgba(255, 255, 255, 0.06) !important;
        }

        /* ============================================
       TAB ACTIVO - más grande + borde rotativo
       ============================================ */
        .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active {
            color: #fff !important;
            font-weight: 800 !important;
            font-size: 0.98rem !important;
            padding: 0.65rem 1.4rem !important;
            background: rgba(0, 0, 0, 0.35) !important;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
            transform: scale(1.05);
        }

            .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active i {
                opacity: 1;
                color: #D4AF37 !important;
                font-size: 1rem !important;
            }

            /* ✨ BORDE ROTATIVO - capa de fondo con gradiente cónico */
            /* ✨ BORDE ROTATIVO - capa de fondo con gradiente cónico */
        /* ✨ GUSANITO DE LUZ corriendo sobre el borde */
        .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active {
            /* Borde base sutil dorado */
            box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, 0.5);
        }

            .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active::before {
                content: '';
                position: absolute;
                inset: 0;
                border-radius: 10px;
                padding: 2px;
                background: conic-gradient( from var(--angle, 0deg), transparent 0%, transparent 70%, #D4AF37 82%, #fff7d6 88%, #8B1D1D 94%, transparent 100% );
                -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask-composite: exclude;
                animation: gusanito-rotate 2.5s linear infinite;
                pointer-events: none;
            }

/* Registramos la propiedad --angle para que se pueda animar */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes gusanito-rotate {
    to {
        --angle: 360deg;
    }
}

/* Separador entre los 2 tabs */
.hero-banner-with-search .home-tabs-separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.2rem;
    user-select: none;
    pointer-events: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .hero-banner-with-search .home-main-tabs-mini {
        gap: 0.4rem;
        margin-bottom: 1rem !important;
    }

        .hero-banner-with-search .home-main-tabs-mini .home-tab-btn {
            padding: 0.45rem 0.85rem !important;
            font-size: 0.82rem !important;
        }

            .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active {
                padding: 0.55rem 1rem !important;
                font-size: 0.88rem !important;
                transform: scale(1.03);
            }

            .hero-banner-with-search .home-main-tabs-mini .home-tab-btn i {
                font-size: 0.85rem !important;
            }

            .hero-banner-with-search .home-main-tabs-mini .home-tab-btn.active i {
                font-size: 0.9rem !important;
            }
}

/* ================================================================
   BARRA STICKY - aparece al hacer scroll pasado el hero
================================================================ */

#barra-busqueda-sticky {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: -100px !important;
    z-index: 99999 !important;
    background: rgba(20, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 8px 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: top 0.3s ease;
}

    #barra-busqueda-sticky.visible {
        top: 45px !important;
    }

    #barra-busqueda-sticky.visible {
        transform: translateY(0);
    }

    #barra-busqueda-sticky .sticky-inner {
        max-width: 860px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Input sticky */
    #barra-busqueda-sticky .sticky-input-box {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 5px 12px;
        height: 36px;
    }

        #barra-busqueda-sticky .sticky-input-box i {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        #barra-busqueda-sticky .sticky-input-box input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 0.82rem;
            font-weight: 500;
        }

            #barra-busqueda-sticky .sticky-input-box input::placeholder {
                color: rgba(255, 255, 255, 0.5);
            }

    /* Botón buscar sticky */
    #barra-busqueda-sticky .btn-sticky-buscar {
        background: linear-gradient(135deg, #8B1D1D, #6d1717);
        border: none;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 0 16px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: background 0.2s ease;
    }

        #barra-busqueda-sticky .btn-sticky-buscar:hover {
            background: linear-gradient(135deg, #6d1717, #8B1D1D);
        }

    /* Botón filtros sticky */
    #barra-busqueda-sticky .btn-sticky-filtros {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.78rem;
        font-weight: 500;
        padding: 0 14px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }

        #barra-busqueda-sticky .btn-sticky-filtros:hover {
            background: rgba(139, 29, 29, 0.8);
            border-color: transparent;
            color: #fff;
        }

/* Mobile: sin botón filtros, solo input + buscar */
/* Mobile: sin botón filtros, solo input + buscar */
@media (max-width: 768px) {
    #barra-busqueda-sticky {
        top: -100px !important;
    }

        #barra-busqueda-sticky.visible {
            top: 52px !important;
        }

        #barra-busqueda-sticky .btn-sticky-filtros {
            display: none;
        }
}