
:root{--et-dir-navy:#09284f;--et-dir-blue:#0d4d8f;--et-dir-green:#2f8f46;--et-dir-green-dark:#237338;--et-dir-border:#e4e9ef;--et-dir-muted:#687385;--et-dir-soft:#f7f9fb}
.et-directory-page{background:#fff;color:#10213a}.et-dir-hero-search{background:linear-gradient(112deg,#071e3d 0%,#0c3f78 68%,#0e5e9f 100%);padding:42px 0 30px;position:relative;overflow:visible}.et-dir-hero-search:after{content:"";position:absolute;inset:0;background-image:linear-gradient(135deg,transparent 0 62%,rgba(255,255,255,.025) 62% 63%,transparent 63%);background-size:96px 96px;pointer-events:none}.et-dir-hero-copy{position:relative;z-index:2;text-align:center;max-width:760px;margin:0 auto 24px}.et-dir-hero-title{color:#fff;font-size:clamp(27px,3vw,42px);font-weight:800;letter-spacing:-.035em;margin:0 0 8px}.et-dir-hero-sub{color:rgba(255,255,255,.86);font-size:14px;line-height:1.55;margin:0 auto;max-width:650px}.et-hero-search-shell{position:relative;z-index:20;max-width:1040px;margin:auto;background:#fff;border-radius:10px;padding:8px;box-shadow:0 13px 36px rgba(0,0,0,.2);display:flex;gap:8px;align-items:center}.et-hero-search-shell .et-pill-filter-bar{margin:0!important;flex:1}.et-hero-search-shell .et-pill-filter-bar>.d-flex{flex-wrap:nowrap!important}.et-hero-search-shell .et-cat-autocomplete{flex:1;min-width:0}.et-hero-search-shell .et-cat-ac-wrap{height:48px;border:1px solid #dfe5eb;border-radius:7px;background:#fff}.et-hero-search-shell .et-cat-ac-icon{font-size:0}.et-hero-search-shell .et-cat-ac-icon:before{content:"\f002";font-family:"Font Awesome 6 Free";font-weight:900;font-size:14px;color:#657184}.et-hero-search-shell .et-cat-ac-input{font-size:14px;font-weight:600;color:#17233a}.et-hero-search-shell .et-pill-select{height:48px;border:1px solid #dfe5eb!important;border-radius:7px!important;background:#fff;min-width:165px;padding:0 35px 0 14px}.et-hero-search-shell .ms-auto{margin-left:0!important}.et-hero-search-shell .ms-auto>span{display:none}.et-hero-search-shell #filter-orderby{display:none}.et-hero-search-btn{height:48px;min-width:145px;border:0;border-radius:7px;background:var(--et-dir-green);color:#fff;align-items:center;justify-content:center;gap:8px;font-weight:800;text-transform:uppercase;font-size:14px;letter-spacing:.03em;transition:.18s}.et-hero-search-btn:hover{background:var(--et-dir-green-dark);transform:translateY(-1px)}
.et-dir-results-area{padding:34px 0 52px}.et-results-heading-row{display:flex;justify-content:space-between;align-items:end;gap:20px}.et-results-eyebrow{font-size:14px;letter-spacing:.13em;font-weight:800;color:var(--et-dir-green);margin-bottom:5px}.et-results-query-title{font-size:24px;font-weight:800;letter-spacing:-.025em;color:#12213b;margin:0}.et-results-sort-slot{font-size:14px;color:#6d7584;gap:8px;align-items:center}.et-results-sort-slot #et-sort-label{border:1px solid var(--et-dir-border);padding:9px 13px;border-radius:7px;color:#22324c;font-weight:700;background:#fff}.et-results-tabs{display:flex;gap:30px;border-bottom:1px solid var(--et-dir-border);margin-top:18px;margin-bottom:24px}.et-result-tab{appearance:none;background:none;border:0;border-bottom:3px solid transparent;padding:12px 4px 11px;font-size:14px;font-weight:700;color:#657184;cursor:pointer}.et-result-tab.is-active{color:var(--et-dir-green);border-bottom-color:var(--et-dir-green)}.et-tab-count{font-size:14px;padding:2px 6px;border-radius:20px;background:#eef2f5;color:#526071;margin-left:4px}.et-result-tab.is-active .et-tab-count{background:#e5f4e9;color:var(--et-dir-green-dark)}
.et-filter-sidebar{position:sticky;top:96px;border:1px solid var(--et-dir-border);border-radius:10px;background:#fff;padding:18px}.et-filter-sidebar-title{text-transform:uppercase;font-size:14px;font-weight:800;color:#20324f;padding-bottom:13px;border-bottom:1px solid var(--et-dir-border)}.et-filter-sidebar-group{padding:17px 0;border-bottom:1px solid var(--et-dir-border)}.et-filter-sidebar-group h3{font-size:14px;font-weight:800;color:#213453;margin:0 0 11px}.et-side-filter{width:100%;border:0;background:none;display:flex;justify-content:space-between;gap:8px;text-align:left;padding:7px 3px;color:#667181;font-size:14px;border-radius:5px}.et-side-filter:hover,.et-side-filter.is-active{color:var(--et-dir-green-dark);font-weight:700;background:#f4faf5}.et-side-filter small{font-size:14px;color:#9199a5}.et-filter-help{font-size:14px;line-height:1.5;color:#7c8694;margin:0}.et-sidebar-reset{width:100%;margin-top:18px;height:40px;border:1px solid var(--et-dir-green);border-radius:6px;background:#fff;color:var(--et-dir-green-dark);font-size:14px;text-transform:uppercase;font-weight:800}.et-sidebar-reset:hover{background:#eef8f0}
.et-result-section{scroll-margin-top:100px;margin-bottom:34px}.et-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.et-section-heading>div{display:flex;align-items:center;gap:9px}.et-section-heading i{color:#0c3f78;font-size:17px}.et-section-heading h2{font-size:19px;color:#142746;font-weight:800;margin:0;letter-spacing:-.02em}.et-section-hint,.et-results-count{font-size:14px;color:#77818e}.et-prod-dir-card{position:relative;display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--et-dir-border);border-radius:9px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s,border-color .18s}.et-prod-dir-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,34,63,.1);border-color:#cbd5df;color:inherit}.et-prod-match-badge{position:absolute;z-index:2;left:10px;top:10px;background:var(--et-dir-green);color:#fff;border-radius:4px;padding:4px 7px;font-size:14px;font-weight:800}.et-prod-dir-img{width:100%;aspect-ratio:1.15/1;background:#f8f9fb;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px}.et-prod-dir-img img{width:100%;height:100%;object-fit:contain}.et-prod-dir-noimg{font-size:40px;color:#ccd4dd}.et-prod-dir-body{padding:13px;display:flex;flex-direction:column;gap:5px;flex:1}.et-prod-dir-nombre{font-size:14px;line-height:1.32;color:#12305d;font-weight:800;text-transform:uppercase;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px}.et-prod-dir-desc{font-size:14px;line-height:1.45;color:#6e7885;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.et-prod-dir-empresa{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:9px;border-top:1px solid #eef1f4}.et-prod-dir-logo{width:18px;height:18px;object-fit:contain;border:1px solid #e3e8ed;border-radius:4px}.et-prod-dir-empresa-nombre{font-size:14px;color:#25599a;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.et-company-results-section{margin-top:32px}.et-results-company-list>.col-12{margin-bottom:0}.et-lcard.et-lcard-search-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:116px;border:1px solid var(--et-dir-border)!important;border-left:1px solid var(--et-dir-border)!important;border-radius:9px;padding:14px 16px;background:#fff;box-shadow:none}.et-lcard.et-lcard-search-row:hover{transform:none;box-shadow:0 8px 24px rgba(18,39,70,.08);border-color:#ccd6e0!important}.et-lcard-search-row .et-lcard-logo{width:64px;height:64px;min-width:64px;border:1px solid #e5e9ee;border-radius:8px;padding:5px;background:#fff;margin:0}.et-lcard-search-row .et-lcard-logo img{width:100%;height:100%;object-fit:contain}.et-lcard-search-row .et-lcard-name{font-size:14px;font-weight:800;color:#133461;text-decoration:none}.et-lcard-search-row .et-lcard-cat{font-size:14px;margin:2px 0;color:var(--et-dir-green);font-weight:700}.et-lcard-search-row .et-lcard-excerpt{font-size:14px;line-height:1.45;color:#6c7684;margin:3px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:630px}.et-lcard-search-row .et-lcard-badges{margin:1px 0}.et-lcard-search-row .et-lcard-loc{font-size:14px;margin:4px 0 0;color:#788290}.et-lcard-search-row .et-lcard-actions{display:none}.et-lcard-search-cta{padding-left:12px}.et-company-profile-btn{display:inline-flex;align-items:center;justify-content:center;min-width:100px;height:39px;padding:0 14px;border-radius:6px;background:var(--et-dir-green);color:#fff;text-decoration:none;text-transform:uppercase;font-size:14px;font-weight:800}.et-company-profile-btn:hover{background:var(--et-dir-green-dark);color:#fff}.et-lcard-search-row .et-lcard-dest-badge{display:none}.et-empty-results{text-align:center;border:1px dashed #d7dde4;border-radius:10px;padding:44px 20px;color:#788290}.et-empty-results i{font-size:28px;color:#c3cbd4}.et-empty-results h3{font-size:16px;color:#243650;margin:10px 0 4px}.et-empty-results p{font-size:14px;margin:0}
.et-search-pagination{margin-top:26px}.et-search-pagination-links{display:flex;justify-content:center;gap:5px}.et-search-pagination-links .page-numbers{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--et-dir-border);border-radius:6px;color:#243b5d;text-decoration:none;font-size:14px;background:#fff}.et-search-pagination-links .current{background:var(--et-dir-navy);color:#fff;border-color:var(--et-dir-navy)}.et-search-pagination-status{text-align:center;font-size:14px;color:#8b94a1;margin-top:8px}
.et-hero-search-shell .et-cat-ac-list{top:56px;z-index:9999;box-shadow:0 14px 38px rgba(11,34,67,.18);border-radius:8px}.et-hero-search-shell .et-filter-mobile-bar{margin:0!important;width:100%}.et-hero-search-shell .et-filter-mobile-trigger{background:#fff;border:0}.et-hero-search-shell .et-filter-sort-inline{background:#fff}
@media(max-width:991.98px){.et-dir-hero-search{padding:28px 0 18px}.et-dir-hero-title{font-size:26px}.et-dir-hero-sub{font-size:14px}.et-hero-search-shell{display:block;padding:6px}.et-results-heading-row{align-items:flex-start}.et-results-query-title{font-size:20px}.et-results-tabs{overflow:auto;white-space:nowrap;gap:20px}.et-results-layout{margin-top:0}.et-section-heading{align-items:flex-start}.et-section-hint{display:none}.et-lcard.et-lcard-search-row{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:12px}.et-lcard-search-row .et-lcard-logo{width:52px;height:52px;min-width:52px}.et-lcard-search-cta{grid-column:1/-1;padding:0}.et-company-profile-btn{width:100%;height:36px}.et-prod-dir-img{aspect-ratio:1.25/1}.et-dir-results-area{padding-top:26px}.et-company-results-section{margin-top:26px}}
@media(max-width:575.98px){.et-dir-hero-copy{margin-bottom:15px}.et-dir-hero-title{font-size:23px}.et-results-query-title{font-size:18px}.et-result-tab{font-size:14px}.et-section-heading h2{font-size:16px}.et-prod-dir-nombre{font-size:14px}.et-prod-dir-desc{font-size:14px}.et-prod-match-badge{font-size:14px}.et-results-company-list{--bs-gutter-y:.65rem}}


.et-category-search-hero .et-dir-hero-copy{max-width:820px}
.et-category-hero-eyebrow{margin-bottom:8px;font-size:14px;font-weight:800;letter-spacing:.12em;color:#86d398;text-transform:uppercase}
.et-category-results-intro{max-width:720px;margin:8px 0 0;color:#758091;font-size:14px;line-height:1.55}
.et-category-heading-row{align-items:center;padding-bottom:18px;border-bottom:1px solid #e7ebf0}
.et-category-total-pill{display:flex;align-items:baseline;gap:6px;padding:11px 15px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb;color:#697586;white-space:nowrap}
.et-category-total-pill strong{font-family:'Montserrat',sans-serif;font-size:22px;line-height:1;color:#123461}
.et-category-total-pill span{font-size:14px;font-weight:700}
.et-category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0 2px}
.et-category-current-chip{display:flex;align-items:center;gap:10px;min-width:0;color:#31435c}
.et-category-current-label{font-size:14px;color:#7a8593}
.et-category-current-chip strong{font-size:14px;color:#2f8f46;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.et-category-results-layout{margin-top:16px}
.et-category-filter-sidebar{top:96px}
.et-side-filter-link{text-decoration:none!important}
.et-category-filter-sidebar .et-side-filter{min-height:42px}
.et-category-filter-sidebar .et-side-filter.is-active{border-color:#bcdcc4;background:#edf8f0;color:#237338}
.et-category-sidebar-note{margin-top:18px;padding-top:18px;border-top:1px solid #e8edf1}
.et-category-sidebar-note strong{display:block;margin-bottom:5px;font-size:14px;color:#18345c}
.et-category-sidebar-note p{margin:0;font-size:14px;line-height:1.5;color:#7b8592}
.et-category-company-section{margin-top:0}
.et-category-company-section .et-section-heading{padding-bottom:12px;border-bottom:1px solid #eef1f4}
.et-category-company-section .et-section-heading h2{font-size:20px}
.et-category-footer-cta{margin-top:28px;padding:18px 20px;border:1px solid #dfe7e2;border-radius:10px;background:#f6faf7;display:flex;align-items:center;justify-content:space-between;gap:18px}
.et-category-footer-cta div{display:flex;flex-direction:column;gap:3px;min-width:0}
.et-category-footer-cta strong{font-size:15px;color:#17375f}
.et-category-footer-cta span{font-size:14px;color:#738090}
.et-category-footer-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:7px;background:#2f8f46;color:#fff;text-decoration:none;font-size:14px;font-weight:800;white-space:nowrap}
.et-category-footer-cta a:hover{background:#237338;color:#fff}

@media(max-width:991.98px){
  .et-category-search-hero .et-dir-hero-copy{text-align:left}
  .et-category-heading-row{align-items:flex-start;gap:14px}
  .et-category-toolbar{padding-top:12px}
  .et-category-current-chip{flex-direction:column;align-items:flex-start;gap:2px}
  .et-category-total-pill{padding:9px 12px}
  .et-category-total-pill strong{font-size:20px}
  .et-category-results-layout{margin-top:10px}
}

@media(max-width:575.98px){
  .et-category-search-hero .et-dir-hero-title{font-size:27px!important}
  .et-category-search-hero .et-dir-hero-sub{font-size:14px!important;line-height:1.5}
  .et-category-heading-row{display:block}
  .et-category-total-pill{display:inline-flex;margin-top:14px}
  .et-category-toolbar{display:none}
  .et-category-company-section{margin-top:4px}
  .et-category-company-section .et-section-heading{display:block}
  .et-category-company-section .et-section-heading h2{font-size:19px}
  .et-category-company-section .et-results-count{display:block;margin-top:5px}
  .et-category-footer-cta{display:block;padding:17px}
  .et-category-footer-cta a{width:100%;margin-top:14px}
}


/* Autocomplete del directorio unificado con el Home */
.et-directory-page .et-cat-ac-section-hdr{
    padding:10px 14px 6px;
    font-size:14px!important;
    font-weight:900;
    color:#0b315d;
    text-transform:none;
}
.et-directory-page .et-cat-ac-item{
    min-height:56px;
}
.et-directory-page .et-cat-ac-name,
.et-directory-page .et-ac-prod-name,
.et-directory-page .et-cat-ac-parent,
.et-directory-page .et-ac-prod-empresa-nombre,
.et-directory-page .et-hs-item-loc,
.et-directory-page .et-cat-ac-empty{
    font-size:14px!important;
}


/* ══════════════════════════════════════════════════════════════
   DIRECTORIO MÓVIL — BUSCADOR PRINCIPAL SEPARADO DE FILTROS
══════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .et-directory-mobile-search {
        display: block;
        position: relative;
        z-index: 40;
        width: 100%;
        margin: 0 0 16px;
    }

    .et-directory-mobile-search .et-cat-autocomplete {
        position: relative;
        width: 100%;
    }

    .et-directory-mobile-search .et-cat-ac-wrap {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 58px;
        padding: 0 14px;
        border: 1px solid #e3e8ec;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15,35,55,.08);
    }

    .et-directory-mobile-search .et-cat-ac-icon {
        flex: 0 0 auto;
        margin-right: 10px;
        color: #0b3567;
        font-size: 18px !important;
    }

    .et-directory-mobile-search .et-cat-ac-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: 56px;
        padding: 0;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #263544;
        font-size: 16px !important;
    }

    .et-directory-mobile-search .et-cat-ac-input::placeholder {
        color: #77828d;
        font-size: 16px !important;
        opacity: 1;
    }

    .et-directory-mobile-search .et-cat-ac-clear {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border: 0;
        background: transparent;
        color: #6d7780;
        font-size: 22px !important;
    }

    .et-directory-mobile-search .et-cat-ac-list {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 7px) !important;
        width: 100% !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        border: 1px solid #dde5ea !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 18px 40px rgba(15,35,55,.18) !important;
    }

    .et-filter-mobile-bar {
        align-items: center !important;
        gap: 12px !important;
        margin-top: 0 !important;
        margin-bottom: 22px !important;
    }

    .et-filter-mobile-trigger,
    .et-filter-sort-inline {
        min-height: 48px !important;
        font-size: 14px !important;
    }

    .et-filter-mobile-trigger {
        flex: 1;
        justify-content: center;
    }

    .et-filter-sort-inline {
        width: auto;
        min-width: 132px;
    }

    .et-filter-panel-title,
    .et-filter-field-label,
    .et-filter-select-full,
    .et-filter-reset,
    .et-filter-apply-btn {
        font-size: 14px !important;
    }

    /* El panel ya no necesita espacio para el buscador */
    .et-filter-panel-body {
        padding-top: 20px !important;
    }
}

@media (max-width: 575.98px) {
    .et-directory-mobile-search {
        margin-bottom: 14px;
    }

    .et-directory-mobile-search .et-cat-ac-wrap {
        min-height: 56px;
    }

    .et-directory-mobile-search .et-cat-ac-input {
        height: 54px;
        font-size: 15px !important;
    }

    .et-directory-mobile-search .et-cat-ac-input::placeholder {
        font-size: 15px !important;
    }

    .et-filter-mobile-bar {
        gap: 10px !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   BUSCADOR / FILTROS — MISMO GAP QUE PRODUCTOS DEL HOME
══════════════════════════════════════════════════════════════ */

@media (min-width: 992px) {
    .et-pill-filter-bar > .d-flex {
        gap: 28px !important;
        column-gap: 28px !important;
        row-gap: 28px !important;
    }

    .et-pill-filter-bar .ms-auto.d-flex {
        gap: 28px !important;
        column-gap: 28px !important;
    }

    .et-pill-filter-bar .et-cat-autocomplete,
    .et-pill-filter-bar .et-pill-select {
        margin: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .et-directory-mobile-search {
        margin-bottom: 24px !important;
    }

    .et-filter-mobile-bar {
        gap: 24px !important;
        column-gap: 24px !important;
        row-gap: 24px !important;
        margin-bottom: 24px !important;
    }

    .et-filter-panel-body {
        display: flex;
        flex-direction: column;
        gap: 24px !important;
    }

    .et-filter-field-group {
        margin: 0 !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   BÚSQUEDA AJAX — ESTADO DE CARGA + PAGINACIÓN DE PRODUCTOS
══════════════════════════════════════════════════════════════ */
.et-search-loading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    min-height:130px;
    width:100%;
    padding:28px;
    border:1px solid #dfe6eb;
    border-radius:12px;
    background:#fff;
    color:#526575;
    text-align:left;
}
.et-search-loading>div{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.et-search-loading strong{
    color:#17364f;
    font-size:15px;
}
.et-search-loading span:not(.et-search-spinner){
    font-size:14px;
}
.et-search-spinner{
    display:inline-block;
    width:22px;
    height:22px;
    flex:0 0 22px;
    border:3px solid #dbe5e9;
    border-top-color:#248b4a;
    border-radius:50%;
    animation:et-search-spin .7s linear infinite;
}
@keyframes et-search-spin{
    to{transform:rotate(360deg)}
}
.et-hs-loading,
.et-cat-ac-loading{
    display:flex!important;
    align-items:center;
    gap:9px;
}
.et-hs-loading .et-search-spinner,
.et-cat-ac-loading .et-search-spinner{
    width:17px;
    height:17px;
    flex-basis:17px;
    border-width:2px;
}
#et-product-pagination-wrap{
    margin-top:26px;
}
.et-product-search-pagination{
    margin-top:0!important;
}
@media(max-width:767.98px){
    .et-search-loading{
        min-height:105px;
        padding:22px 18px;
    }
    #et-product-pagination-wrap{
        margin-top:24px;
    }
}
