/* ===========================================
   directorium.css - Estilos propios de Directorium
   Overrides sobre la plantilla TownHub
   =========================================== */

/* --- Fix: icono de categoría centrado en el círculo rosa (tarjetas de empresas) --- */
.listing-item-category {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   CARDS DE EMPRESAS - Homogéneas y compactas
   =========================================== */

/* Grid uniforme para resultados de búsqueda */
.listing-item-container .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .listing-item-container .container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .listing-item-container .container {
        grid-template-columns: 1fr;
    }
}

/* ── Página de búsqueda / sector: NO hay mapa ──
   El tema original deja .col-list-wrap como columna flotante sin anchura
   (la width:850px viene comentada) porque esperaba un mapa ocupando el resto.
   Sin mapa, ese float colapsa cuando hay pocos/0 resultados y la página se
   ve "en blanco". Forzamos que la lista ocupe todo el ancho. */
.col-list-wrap {
    width: 100% !important;
    float: none !important;
}
.list-main-wrap-header {
    width: 100% !important;
}
/* Estado vacío / error: que ocupe toda la fila del grid y quede centrado */
#results-grid-container > div[style*="text-align:center"],
.listing-item-container .container > div[style*="text-align:center"] {
    grid-column: 1 / -1;
}

/* Reset de propiedades del tema base que interfieren con el grid CSS */
.listing-item-container .listing-item {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Cards verticales: imagen arriba, contenido abajo */
.listing-item-container .geodir-category-listing {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.listing-item-container .geodir-category-img {
    float: none !important;
    width: 100% !important;
}
.listing-item-container .geodir-category-img-wrap {
    height: 200px !important;
    border-radius: 10px 10px 0 0;
}
.listing-item-container .geodir-category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px !important;
    width: auto !important;
}
.listing-item-container .geodir-category-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px !important;
    margin-top: 12px !important;
}

/* Imagen de la card: tamaño fijo y recortada */
.geodir-category-img-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.geodir-category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.geodir-category-img-wrap:hover img {
    transform: scale(1.05);
}

/* Contenido de la card: compacto */
.geodir-category-content {
    padding: 15px !important;
}
.geodir-category-content-title-item h3 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.geodir-category-location {
    margin-top: 2px !important;
    font-size: 13px;
}
.geodir-category-footer {
    padding-top: 10px !important;
    margin-top: 10px !important;
    border-top: 1px solid #f0f0f0;
}

/* Card completa: sombra suave y bordes */
.geodir-category-listing {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.geodir-category-listing:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Carrusel del home: altura uniforme para todas las slides */
.listing-slider .listing-item {
    margin-bottom: 0;
}
.listing-slider .swiper-slide {
    height: auto !important;
    display: flex;
    flex-direction: column;
}
.listing-slider .listing-slider-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.listing-slider .listing-item,
.listing-slider .listing_carditem,
.listing-slider .geodir-category-listing {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Imagen del slider: altura fija uniforme */
.listing-slider .geodir-category-img {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.listing-slider .geodir-category-img-wrap {
    height: 100% !important;
    display: block;
    cursor: pointer;
}
.listing-slider .geodir-category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Overlay de info sobre la imagen del slider */
.listing-slider .geodir-category-opt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30,40,80,0.92) 0%, rgba(30,40,80,0.5) 60%, transparent 100%);
    padding: 20px 15px 15px;
    color: #fff;
    pointer-events: none;
}
.listing-slider .geodir-category-opt_title h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-slider .geodir-category-opt_title h4 a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}
.listing-slider .geodir-category-location a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    pointer-events: auto;
    margin-right: 10px;
}
.listing-slider .listing_carditem_footer {
    margin-top: 8px;
    pointer-events: auto;
}
.listing-slider .listing_carditem_footer .listing-item-category-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    pointer-events: auto;
}
.listing-slider .listing_carditem_footer span {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}
/* Borde y sombra de card del slider */
.listing-slider .geodir-category-listing {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.listing-slider .geodir-category-listing:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    transform: translateY(-2px);
}

/* ===========================================
   FICHA DETALLE - Eliminar espacio vacío
   =========================================== */

/* Reducir espacio entre secciones */
.list-single-main-item {
    margin-bottom: 15px !important;
    padding: 20px !important;
}

/* Si no hay descripción, no dejar espacio vacío */
.list-single-main-item_content:empty {
    display: none;
}
.list-single-main-item_content p:empty {
    display: none;
}

/* Sidebar más compacto */
.box-widget-item-header {
    padding: 12px 15px !important;
}
.box-widget-content {
    padding: 15px !important;
}

/* Imagen default: centrada con fondo gris suave */
.geodir-category-img-wrap img[src*="default_empresa"] {
    object-fit: contain;
    background: #f0f4f8;
    padding: 20px;
}

/* --- Fix: icono de lupa centrado en el botón de búsqueda del header --- */
.header-search_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.header-search_btn i {
    margin: 0;
}

/* --- Grid para formularios (alta de empresa) --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    width: 100%;
    float: left;
}
.form-grid .form-full {
    grid-column: 1 / -1;
}
.form-grid .form-third {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Selects estilizados en formularios --- */
.form-grid select {
    float: left;
    border: 1px solid #e5e7f2;
    background: #f9f9f9;
    width: 100%;
    padding: 15px 20px;
    border-radius: 4px;
    color: #7d93b2;
    font-size: 12px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    margin-bottom: 20px;
    font-family: 'Roboto';
    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='%237d93b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}
.form-grid select:focus {
    background-color: #fff;
    box-shadow: 0px 10px 14px 0px rgba(12, 0, 46, 0.06);
}

/* --- Sección título dentro del formulario --- */
.form-section-title {
    grid-column: 1 / -1;
    text-align: left;
    padding: 15px 0 5px;
    margin-top: 10px;
    border-bottom: 1px solid #e5e7f2;
    margin-bottom: 15px;
}
.form-section-title h5 {
    color: #566985;
    font-size: 14px;
    font-weight: 600;
}
.form-section-title h5 i {
    margin-right: 8px;
    color: #7d93b2;
}

/* --- Botón de envío del formulario --- */
.form-grid .form-submit {
    grid-column: 1 / -1;
    padding-top: 15px;
}

/* ============================================================
   FORMULARIO DE ALTA — diseño simplificado
   ============================================================ */

/* Texto intro sobre el form */
.dir-alta-intro {
    font-size: 15px;
    color: #7d93b2;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1f8;
}

/* Botón toggle "Añadir más detalles" */
.dir-alta-extras-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 24px 0 0;
    padding: 14px 20px;
    background: #f4f8ff;
    border: 1.5px dashed #b8d0f0;
    border-radius: 8px;
    color: #4DB7FE;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}
.dir-alta-extras-toggle:hover {
    background: #e8f3ff;
    border-color: #4DB7FE;
}
.dir-alta-extras-toggle i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Contenedor colapsable de extras — altura controlada por JS */
.dir-alta-extras {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.3s ease;
}
.dir-alta-extras .form-grid {
    padding-top: 20px;
    border-top: 1px solid #eef1f8;
    margin-top: 20px;
}

/* Bloque de envío */
.dir-alta-submit {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eef1f8;
    text-align: center;
}
.dir-alta-btn {
    width: auto !important;
    padding: 16px 44px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
}
.dir-alta-legal-note {
    margin-top: 14px;
    font-size: 12px;
    color: #aab5c8;
}
.dir-alta-legal-note i {
    margin-right: 4px;
}

/* --- Mensajes de notificación --- */
.form-notification {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    width: 100%;
    float: left;
}
.form-notification.success {
    background: #e2efda;
    color: #548235;
}
.form-notification.error {
    background: #fbe5d6;
    color: #c00000;
}

/* --- Bloque de aviso (no logueado, sin resultados) --- */
.info-block {
    text-align: center;
    padding: 60px 0;
}
.info-block h3 {
    margin-bottom: 15px;
    color: #566985;
}
.info-block p {
    color: #7d93b2;
    margin-bottom: 25px;
}

/* --- Fix: botón usuario en header cuando hay sesión activa --- */
#logged {
    cursor: pointer;
}

/* --- Iconos del hero quick-search: fondo circular semitransparente --- */
.hero-categories li a i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: background 0.25s, border-color 0.25s;
    font-size: 22px !important;
}
.hero-categories li a:hover i {
    background: rgba(255, 255, 255, 0.30) !important;
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- Fix: ocultar texto fantasma de fondo en secciones (plantilla TownHub) --- */
.section-title .section-subtitle {
    display: none;
}

/* --- Fix: horario - quitar / suelta al final --- */
.opening-hours li span:last-child {
    text-align: right;
}

/* --- Tabla de información en ficha de empresa --- */
.detalle-tabla {
    width: 100%;
    border-collapse: collapse;
}
.detalle-tabla tr {
    border-bottom: 1px solid #f0f0f0;
}
.detalle-tabla tr:last-child {
    border-bottom: none;
}
.detalle-tabla td {
    padding: 12px 8px;
    font-size: 14px;
    vertical-align: top;
}
.detalle-label {
    color: #7d93b2;
    white-space: nowrap;
    width: 160px;
    font-weight: 500;
}
.detalle-label i {
    color: #4DB7FE;
    width: 22px;
    text-align: center;
    margin-right: 8px;
}
.detalle-valor {
    color: #566985;
    font-weight: 600;
}

/* --- Responsive: tabla de detalle en móvil --- */
@media (max-width: 767px) {
    .detalle-label {
        width: auto;
        display: block;
        padding-bottom: 2px;
    }
    .detalle-valor {
        display: block;
        padding-top: 0;
    }
}

/* ===========================================
   MEJORAS GLOBALES DE UX
   =========================================== */

/* Tipografía base más limpia y legible */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* FIX OPACIDAD: asegurar que #main sea visible tras loader */
#main {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}
/* Loader: ocultar tras animación de forma fiable */
.loader-wrap {
    transition: opacity 0.4s ease;
}

/* Contraste mejorado para texto sobre fondo oscuro */
.hero-section h1,
.hero-section h2,
.hero-section p,
.parallax-section h1,
.parallax-section h2,
.parallax-section p,
.section-title h2 span {
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Overlay más oscuro en hero para mejor contraste */
.hero-section .overlay,
.parallax-section .overlay {
    background: rgba(0,0,0,0.45) !important;
}

/* Links del menú: hover claro */
.main-menu a:hover,
.nav-holder .main-menu a:hover {
    color: #4DB7FE !important;
    transition: color 0.2s ease;
}

/* Botones (CTAs) modernos y consistentes */
.btn,
.btn.color2-bg,
a.btn {
    border-radius: 6px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px !important;
}
.btn:hover,
.btn.color2-bg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Iconografía consistente: solo usar fa-light (fal) */
.fal, .fas, .far {
    font-family: 'Font Awesome 5 Pro' !important;
}

/* Espaciado uniforme entre secciones — compacto */
section {
    padding: 30px 0 !important;
}
section + section {
    padding-top: 10px !important;
}
/* Respiración vertical entre secciones del homepage */
#wrapper .content > section,
#wrapper .content > div > section {
    padding-top: 70px;
    padding-bottom: 70px;
}
/* Slider de empresas: el tema ya añade padding propio, ajustamos sin exceso */
.slw-sec {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
/* Sectores: mantener el ritmo pero sin exceso bajo el hero */
#sec-sectores {
    padding-top: 70px;
    padding-bottom: 60px;
}
/* CTA ya tiene su padding propio (90px), no duplicar */
.dir-cta-section {
    margin: 0;
}
@media (max-width: 768px) {
    #wrapper .content > section,
    #wrapper .content > div > section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .slw-sec {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Contenedores con padding mínimo para evitar texto pegado a bordes */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===========================================
   BREADCRUMBS - Saber dónde estás
   =========================================== */
.breadcrumbs,
.dir-breadcrumb {
    font-size: 13px;
    color: #7d93b2;
    padding: 10px 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumbs a,
.dir-breadcrumb a {
    color: #4DB7FE;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover,
.dir-breadcrumb a:hover {
    color: #2590d8;
    text-decoration: underline;
}
.breadcrumbs span,
.dir-breadcrumb span.current {
    color: #566985;
    font-weight: 600;
}
.dir-breadcrumb .sep {
    color: #bcc8d8;
    font-size: 12px;
}

/* Indicador de página activa en menú de navegación */
.main-menu a.act-link {
    color: #4DB7FE !important;
    font-weight: 700;
}
.main-menu a.act-link::after {
    content: '';
    display: block;
    height: 2px;
    background: #4DB7FE;
    border-radius: 2px;
    margin-top: 2px;
}

/* Cabecera de resultados: título + filtros activos */
.list-main-wrap-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.list-main-wrap-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #384F95;
    margin: 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.list-main-wrap-title h2 #results-count {
    font-size: 14px;
    color: #7d93b2;
    font-weight: 400;
}
.dir-active-filters-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}
.dir-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dir-filter-pill {
    background: #eef7ff;
    border: 1px solid #c8e8ff;
    color: #2590d8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.clear-filters {
    color: #4b5a72;
    background: #f4f7fb;
    border: 1px solid #dde7f0;
    border-radius: 22px;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.clear-filters:hover {
    background: #eef7ff;
    border-color: #c8e8ff;
    color: #2573ad;
}

/* --- Grid de tarjetas de sector (reemplaza pills) --- */
.dir-sector-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 16px !important;
    padding: 10px 0;
    float: none !important;
    width: 100% !important;
}
.dir-sector-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 28px 12px 22px !important;
    background: #fff !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 14px;
    color: #566985 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.3;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    float: none !important;
    width: auto !important;
}
.dir-sector-card:hover {
    border-color: #4DB7FE !important;
    color: #4DB7FE !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(77,183,254,0.15) !important;
    text-decoration: none !important;
}
.dir-sector-card-icon {
    width: 62px !important;
    height: 62px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4ff 0%, #cce8ff 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 14px !important;
    font-size: 24px !important;
    color: #4DB7FE !important;
    transition: all 0.25s ease;
    float: none !important;
}
.dir-sector-card:hover .dir-sector-card-icon {
    background: linear-gradient(135deg, #4DB7FE 0%, #1a7bd0 100%) !important;
    color: #fff !important;
}

/* --- Barra de estadísticas bajo el hero --- */
.dir-stats-bar {
    background: #fff;
    border-bottom: 1px solid #eef1f8;
    padding: 0;
    overflow: hidden;
}
.dir-stats-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    float: none !important;
}
.dir-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 22px 48px;
    gap: 2px;
    float: none !important;
}
.dir-stat-num {
    font-size: 28px !important;
    font-weight: 800;
    color: #2c3e68;
    line-height: 1;
    display: block !important;
}
.dir-stat-label {
    font-size: 12px;
    color: #96a7be;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block !important;
}
.dir-stat-sep {
    width: 1px;
    background: #eef1f8;
    margin: 16px 0;
    align-self: stretch;
    float: none !important;
}
@media (max-width: 767px) {
    .dir-stat { padding: 16px 22px; }
    .dir-stat-num { font-size: 22px !important; }
    .dir-stat-sep { display: none !important; }
    .dir-sector-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 10px !important; }
    .dir-sector-card { padding: 18px 8px 14px !important; }
    .dir-sector-card-icon { width: 50px !important; height: 50px !important; font-size: 20px !important; }
}

/* --- Sección "Cómo funciona" con iconos visibles --- */
.process-wrap ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    align-items: start;
}
@media (max-width: 992px) {
    .process-wrap ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Reset base-theme width:33.3% que en un grid cell resulta en ~11% del contenedor */
.process-wrap ul li {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    text-align: center;
}
.process-item {
    background: #f9fbff;
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    padding: 28px 18px;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.process-count {
    display: block;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 auto 16px !important;
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    text-align: center !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #e1e8f2 !important;
    color: #4DB7FE !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(77,183,254,0.16) !important;
}
.process-item .time-line-icon {
    position: relative !important;
    margin-bottom: 15px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-image: none !important;
    color: #4DB7FE !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #4DB7FE !important;
    font-size: 0 !important;
}
.process-item .time-line-icon i {
    font-size: 28px !important;
    color: #4DB7FE !important;
}
.process-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #566985;
    margin-bottom: 10px;
}
.process-item p {
    font-size: 13px;
    color: #7d93b2;
    line-height: 1.7;
}
.pr-dec {
    display: none;
}
.process-end {
    text-align: center;
    margin-top: 30px;
}
.process-end i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* --- Paginación de resultados --- */
.dir-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e1e8f2;
    border-radius: 6px;
    background: #fff;
    color: #566985;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dir-page-btn:hover {
    border-color: #4DB7FE;
    color: #4DB7FE;
}
.dir-page-btn--active {
    background: #384F95;
    border-color: #384F95;
    color: #fff;
    cursor: default;
}
.dir-page-btn--active:hover {
    background: #384F95;
    color: #fff;
}

/* --- Dropdowns del buscador: respaldo si chosen-select no carga --- */
.main-search-input-item select {
    width: 100%;
    height: 50px;
    border: none;
    background: #fff;
    color: #566985;
    font-size: 14px;
    padding: 0 15px;
    appearance: auto;
    cursor: pointer;
}

/* ===========================================
   FIX CRÍTICO: Barra de búsqueda en buscar.php
   TownHub oculta .lws_mobile por defecto con display:none
   Forzar visibilidad y layout horizontal en desktop
   =========================================== */
.listsearch-input-wrap.lws_mobile {
    display: block !important;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}
.listsearch-input-wrap.lws_mobile .main-search-input {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding-right: 170px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e1e8f2;
    overflow: hidden;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item {
    float: none !important;
    width: auto !important;
    flex: 1;
    border-right: 1px solid #eee;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    min-width: 0;
    position: relative;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item:last-of-type {
    border-right: none;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item input {
    height: 52px;
    border: none;
    width: 100%;
    padding-left: 36px;
    font-size: 14px;
    color: #4b5a72;
    background: transparent;
    outline: none;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #7d93b2;
    font-size: 14px;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item select {
    height: 52px;
    border: none;
    font-size: 13px;
    color: #4b5a72;
    background: transparent;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
.listsearch-input-wrap.lws_mobile .main-search-input-item select::-ms-expand {
    display: none;
}
.listsearch-input-wrap.lws_mobile .main-search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 52px;
    width: 170px;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (max-width: 768px) {
    .listsearch-input-wrap.lws_mobile .main-search-input {
        flex-wrap: wrap;
        padding: 0;
        border-radius: 8px;
    }
    .listsearch-input-wrap.lws_mobile .main-search-input-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .listsearch-input-wrap.lws_mobile .main-search-button {
        position: static;
        width: 100%;
        border-radius: 0 0 8px 8px;
        height: 48px;
    }
}

/* --- Carrusel de empresas: fix tamaño (sin ancho fijo que choca con slidesPerView) --- */
.listing-slider .swiper-slide {
    max-width: 90vw;
    height: auto;
}

/* --- Autocomplete dropdown --- */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
}

/* ===========================================
   RESPONSIVE MÓVIL
   =========================================== */

@media (max-width: 768px) {

    /* --- Secciones más compactas en móvil --- */
    section {
        padding: 25px 0 !important;
    }

    /* --- Botones mínimo 44px para ser tocables --- */
    .btn,
    .btn.color2-bg,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        font-size: 14px;
    }

    /* --- Botones de acción en detalle: scroll horizontal --- */
    .detalle-acciones {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .detalle-accion {
        white-space: nowrap;
        padding: 8px 14px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }

    /* --- Ficha detalle: columnas a una sola --- */
    .detalle-stat {
        padding: 10px 8px !important;
    }
    .detalle-stat-numero {
        font-size: 18px !important;
    }

    /* --- Mapa más pequeño en móvil --- */
    .mapa-container iframe {
        height: 200px !important;
    }

    /* --- Sectores: pills más compactos --- */
    .listing-filters.gallery-filters {
        gap: 6px;
        padding: 5px 0;
    }
    .listing-filters .gallery-filter {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* --- Carrusel: ancho completo en móvil --- */
    .listing-slider .swiper-slide {
        width: 85vw !important;
    }

    /* --- Mi Perfil: card empresa vinculada --- */
    .list-single-main-item_content > div[style*="display:flex"] {
        flex-direction: column;
        text-align: center;
    }

    /* --- Horario en sidebar: texto más pequeño --- */
    .horario-lista li {
        font-size: 12px !important;
    }

    /* --- Propietario box --- */
    .propietario-box {
        margin-top: 10px !important;
        padding: 14px !important;
    }

    /* --- Editor de horarios en editar empresa --- */
    .scheduler-day-row {
        flex-direction: column;
        gap: 8px;
    }
    .scheduler-day-row .day-label {
        min-width: auto;
    }
    .scheduler-day-row .hours-inputs {
        flex-wrap: wrap;
        gap: 4px;
    }
    .scheduler-day-row .hours-inputs input[type="time"] {
        width: 80px;
        font-size: 12px;
    }

    /* --- Menú móvil: agregar Mi Perfil --- */
    .nav-holder.main-menu ul li a[href="/mi-perfil.php"] {
        display: block;
    }
}

/* --- Scheduler estilos base (alta y editar empresa) --- */
.scheduler-container {
    border: 1px solid #e5e7f2;
    border-radius: 6px;
    padding: 15px;
    background: #f9fbff;
}
.scheduler-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.scheduler-day-row:last-of-type {
    border-bottom: none;
}
.scheduler-day-row .day-label {
    font-weight: 600;
    color: #566985;
    font-size: 13px;
    min-width: 90px;
    text-transform: capitalize;
}
.scheduler-day-row .hours-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.scheduler-day-row .hours-inputs input[type="time"] {
    padding: 6px 8px;
    border: 1px solid #e1e8f2;
    border-radius: 4px;
    font-size: 13px;
    color: #566985;
}
.scheduler-day-row .hours-sep {
    color: #7d93b2;
    font-size: 12px;
}
.scheduler-day-row .day-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #27ae60;
    cursor: pointer;
}
.scheduler-day-row.day-closed .hours-inputs {
    opacity: 0.3;
    pointer-events: none;
}
.scheduler-day-row.day-closed .day-status span {
    color: #e74c3c;
}
.copy-hours-btn {
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: #fff;
    border: 1px dashed #4DB7FE;
    border-radius: 4px;
    color: #4DB7FE;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.copy-hours-btn:hover {
    background: #f0f8ff;
}

/* ===========================================
   PÁGINA 404
   =========================================== */
.dir-404-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.dir-404-inner {
    text-align: center;
    max-width: 520px;
}
.dir-404-number {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: #e1e8f2;
    letter-spacing: -6px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #384F95, #4DB7FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dir-404-title {
    font-size: 26px;
    font-weight: 700;
    color: #384F95;
    margin: 0 0 14px;
}
.dir-404-text {
    font-size: 15px;
    color: #7d93b2;
    line-height: 1.7;
    margin: 0 0 36px;
}
.dir-404-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.dir-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dir-404-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.dir-404-btn--primary {
    background: linear-gradient(135deg, #384F95, #4DB7FE);
    color: #fff;
}
.dir-404-btn--secondary {
    background: #f4f7fd;
    color: #384F95;
    border: 1px solid #d6e0f0;
}
.dir-404-btn--secondary:hover { color: #384F95; }

/* ===========================================
   CTA SECTION - Registrar empresa
   =========================================== */
.dir-cta-section {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(135deg, #1a2f72 0%, #384F95 45%, #4a9fd4 100%);
    overflow: hidden;
    text-align: center;
}

/* Formas decorativas de fondo */
.dir-cta-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.dir-cta-shape--1 {
    width: 500px; height: 500px;
    top: -180px; left: -120px;
    background: rgba(255,255,255,0.05);
}
.dir-cta-shape--2 {
    width: 320px; height: 320px;
    bottom: -120px; right: -80px;
    background: rgba(255,255,255,0.06);
}
.dir-cta-shape--3 {
    width: 160px; height: 160px;
    top: 30px; right: 15%;
    background: rgba(255,255,255,0.04);
}

.dir-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dir-cta-icon-wrap {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.dir-cta-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 14px;
    max-width: 620px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.dir-cta-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0 0 36px;
    max-width: 500px;
    line-height: 1.6;
}

.dir-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: #fff;
    color: #384F95;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}
.dir-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
    color: #1a2f72;
}

.dir-cta-trust {
    display: flex;
    gap: 28px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.dir-cta-trust li {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.dir-cta-trust li i {
    color: #7dd3fc;
    font-size: 12px;
}

@media (max-width: 768px) {
    .dir-cta-section { padding: 70px 0; }
    .dir-cta-title { font-size: 26px; }
    .dir-cta-subtitle { font-size: 15px; }
}
@media (max-width: 480px) {
    .dir-cta-title { font-size: 22px; }
    .dir-cta-trust { gap: 14px; font-size: 12px; }
    .dir-cta-btn { padding: 14px 28px; font-size: 15px; }
}
