
/* ==================== header.php ==================== */
/* --- bloque 1 --- */
/* Ocultar header desktop en móvil y tablet */
    @media (max-width: 991px) {
        header.lcf-container {
            display: none !important;
        }
    }

    /* Fila superior: logo + badges + search */
    .lcf-header-top {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 15px;
        gap: 20px;
        background: #fff;
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
    }

    #logo-header {
        flex-shrink: 0;
        width: 87px;
    }

    #logo-header img {
        width: 100%;
        height: auto;
    }

    /* Badges container */
    .lcf-header-badges {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .lcf-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 14px;
        white-space: nowrap;
    }

    .lcf-badge-icon {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 21px;
    }

    .lcf-badge-icon--red {
        background: #E00321;
        color: #fff;
    }

    .lcf-badge-icon--green {
        background: #E00321;
        color: #fff;
        font-size: 26px;
    }

    .lcf-badge-icon--outline {
        background: #fff;
        width: 54px;
        height: 54px;
        position: relative;
    }

    .lcf-badge-text {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

    .lcf-badge-label {
        font-size: 12px;
        font-weight: 700;
        color: #015F9D;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .lcf-badge-value {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
    }

    .lcf-badge-value--small {
        font-size: 13px;
        font-weight: 400;
        color: #333;
        line-height: 1.3;
    }

    .lcf-badge-value--bold {
        font-size: 13px;
        font-weight: 700;
        color: #333;
        line-height: 1.3;
    }

    .lcf-badge:first-child {
        padding: 4px;
    }

    .lcf-badge+.lcf-badge {
        border-left: 1px solid #e5e5e5;
    }

    /* Bloque derecho: search arriba + badges abajo */
    .lcf-header-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        flex: 1;
    }

    /* Fila buscador + links */
    .lcf-header-search-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 24px;
    }

    .lcf-header-search {
        width: 300px;
        flex-shrink: 0;
    }

    .lcf-header-toplinks {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .lcf-header-toplinks a {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        padding: 4px 8px;
        border-left: 1px solid #e5e5e5;
        white-space: nowrap;
        transition: color 0.15s;
    }

    .lcf-header-toplinks a:first-child {
        border-left: none;
    }

    .lcf-header-toplinks a:hover {
        color: #004589;
        text-decoration: none;
    }

    .lcf-header-toplinks a i {
        font-size: 15px;
        color: #004589;
    }

    .lcf-header-search .input-group {
        border-radius: 4px;
        overflow: visible;
    }

    .lcf-header-search .form-control {
        border: none;
        box-shadow: none;
        font-size: 13px;
        height: 34px;
        border: 1px solid #ccc;
    }

    .lcf-header-search .input-group-addon {
        background: #E00321;
        color: #fff;
        border: none;
        padding: 0 12px;
        cursor: pointer;
        border: solid 1px #E00321;
    }

    .lcf-header-search .input-group-addon i {
        font-size: 18px;
    }

    /* Sucursales pegadas, sin space-around */
    .nl-locales-list {
        justify-content: flex-start !important;
        gap: 2px !important;
    }

    .nl-locales-list>li {
        margin: 0 !important;
        padding: 0 1px !important;
    }

    .nl-locales-list .border-scf {
        margin-right: 0 !important;
    }

    /* Sucursales desktop */
    .lcf-suc-bar {
        background: #fff;
        width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .lcf-suc-cards {
        display: flex;
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .lcf-suc-card {
        flex: 1;
        min-width: 0;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .lcf-suc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .lcf-suc-card:hover .lcf-suc-card-header {
        background: #E00321;
    }

    .lcf-suc-card:hover .lcf-suc-num {
        color: #E00321;
    }

    .lcf-suc-card .lcf-suc-card-header {
        transition: background 0.2s ease;
    }

    .lcf-suc-card .lcf-suc-num {
        transition: color 0.2s ease;
    }

    .lcf-suc-card-header {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #004589;
        color: #fff;
        padding: 6px 8px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        white-space: nowrap;
        line-height: 1;
    }

    .lcf-suc-num {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        color: #004589;
        font-weight: 700;
        font-size: 13px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        margin: 0;
    }

    .lcf-suc-card-img {
        width: 100%;
        height: 150px;
        overflow: hidden;
        position: relative;
    }

    .lcf-suc-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .lcf-suc-card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 65%, transparent 100%);
        padding: 20px 10px 8px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        text-shadow: 0 0 3px rgba(255,255,255,0.1);
    }

    .lcf-suc-card-overlay i {
        color: rgba(255,255,255,0.85) !important;
        font-size: 18px !important;
    }

    .lcf-suc-card-info {
        padding: 10px;
        font-size: 12px;
        color: #333;
        line-height: 1.4;
        text-shadow: none;
    }

    .lcf-suc-info-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 4px;
    }

    .lcf-suc-card-info .lcf-suc-info-row {
        justify-content: space-between;
    }

    .lcf-feriado-notice {
        display: none;
        text-align: right;
        color: #E00321;
        font-weight: 700;
        font-size: 11px;
        line-height: 1.4;
    }

    .lcf-cm-suc-info .lcf-feriado-notice {
        text-align: right;
        font-size: 10px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .lcf-suc-info-row i {
        flex-shrink: 0;
        width: 14px;
        text-align: center;
        font-size: 18px;
    }

    .lcf-suc-prox {
        color: #E00321;
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

    .lcf-suc-vira {
        color: #000000;
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

    /* Aire en pantallas medianas (entre 992px y 1500px) */
    @media (min-width: 992px) and (max-width: 1500px) {
        .lcf-header-top {
            padding: 10px 3%;
        }
        .lcf-suc-bar {
            padding: 10px 3%;
        }
    }

/* --- bloque 2 --- */
/* ===== Feriado + horarios responsivos (escalan según el dispositivo) ===== */

    /* Cada card es un contenedor de consulta: los tamaños escalan con el ancho de la card */
    .lcf-suc-card { container-type: inline-size; }

    /* ---- Estructura feriado cards desktop: bandera izq + texto (2 líneas) der ---- */
    .lcf-ferd-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
    }
    /* La bandera y el texto escalan con el ancho de la card (cqi = 1% del ancho de la card) */
    .lcf-ferd-flag { width: auto; flex-shrink: 0; height: clamp(15px, 7.9cqi, 26px); }
    .lcf-ferd-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-weight: 700;
        line-height: 1.25;
        white-space: nowrap;
        text-align: left;
        font-size: clamp(8px, 3.3cqi, 12px);
    }
    .lcf-ferd-col span { display: block; text-align: left; }

    /* Horarios cards desktop: también escalan con el ancho de la card */
    .lcf-suc-card-info { font-size: clamp(9px, 3.4cqi, 12px); }

    /* ---- Feriado en menú mobile ---- */
    .lcf-cm-ferd-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
    }
    .lcf-cm-ferd-flag {
        width: auto;
        flex-shrink: 0;
        display: block;
        height: clamp(16px, 5vw, 22px);
    }
    .lcf-cm-ferd-text {
        line-height: 1.1;
        white-space: nowrap;
        font-size: 10px;
        font-weight: 700;
    }

    /* Horarios en menú mobile */
    .lcf-cm-suc-status--hours { font-size: clamp(12px, 3.3vw, 14px); }

/* --- bloque 3 --- */
#hometop {
            display: flex;
            align-items: center;
            justify-content: space-around;
        }

        .nl-mobileHeader-btn {
            width: 13%;
            padding: 10px 5px;
            display: inline-block;
            vertical-align: middle;
            text-align: left;
            margin-left: -4px;
            margin-right: 10px;
        }

        .nl-mobileHeader-logo {
            width: 55%;
            padding: 10px 0 10px 0px;
            display: inline-block;
            vertical-align: middle;
            margin-left: -4px;
        }

        #bloqueFinde {
            display: block;
            font-size: 1rem;
            padding: 5px 0;
            font-family: 'Ubuntu';
        }

        #bloqueFinde {
            font-weight: 600;
            color: #015f9e;
        }

        /* #bloqueFinde div.sucursalesOpen {
            color: #015f9e;
        } */

/* --- bloque 4 --- */
.lcf-mobile-search {
        padding: 5px 12px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .lcf-mobile-search .input-group {
        border-radius: 4px;
        overflow: visible;
    }

    .lcf-mobile-search .form-control {
        border: 1px solid #ccc;
        border-right: none;
        box-shadow: none;
        font-size: 13px;
        height: 30px;
        padding: 4px 8px;
    }

    .lcf-mobile-search .input-group-addon {
        padding: 0 10px;
        font-size: 13px;
    }

    /* Rich typeahead dropdown */
    #buscador~.dropdown-menu,
    #buscador+.dropdown-menu {
        top: 34px !important;
    }

    .dropdown-menu.typeahead {
        max-width: 320px;
        min-width: 260px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        overflow: hidden;
        background-color: #fff !important;
    }

    .dropdown-menu.typeahead>li>a {
        padding: 6px 12px;
        white-space: normal;
        background-color: #fff !important;
        color: #222 !important;
    }

    .dropdown-menu.typeahead>li>a:hover,
    .dropdown-menu.typeahead>li.active>a,
    .dropdown-menu.typeahead>li.active>a:hover {
        background-color: #f5f5f5 !important;
        color: #222 !important;
    }

    .lcf-ta-marca {
        font-size: 11px;
        color: #E00321;
        font-weight: 700;
    }

    .lcf-ta-sec {
        font-size: 10px;
        color: #999;
        text-transform: capitalize;
    }

/* --- bloque 5 --- */
.lcf-mbar {
        display: flex;
        justify-content: space-around;
        width: 100%;
        /* padding: 0 12px; */
        box-sizing: border-box;
    }
    .lcf-mbar-item {
        width: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 7px 4px;
        cursor: pointer;
        text-decoration: none;
    }
    .lcf-mbar-inner {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }
    .lcf-mbar-icon {
        width: 27px;
        height: 27px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lcf-mbar-icon img {
        width: 27px;
        height: 27px;
        object-fit: contain;
        display: block;
    }
    .lcf-mbar-text {
        font-size: 11px;
        color: #373737;
        margin: 0;
        font-weight: 500;
        line-height: 1.3;
        font-family: inherit;
    }

/* --- bloque 6 --- */
@keyframes lcfModalIn {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    #lcf-contact-modal {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 9999;
        background: #f0f2f5;
        flex-direction: column;
        overflow: hidden;
    }
    #lcf-contact-modal.is-open {
        animation: lcfModalIn 0.22s ease forwards;
    }
    .lcf-cm-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #004589;
        color: #fff;
        padding: 14px 16px;
        flex-shrink: 0;
    }
    .lcf-cm-topbar-title {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    .lcf-cm-topbar-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        padding: 2px 6px;
        cursor: pointer;
        line-height: 1;
    }
    .lcf-cm-body {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
        -webkit-overflow-scrolling: touch;
    }
    .lcf-cm-section {
        background: #fff;
        border-radius: 10px;
        padding: 14px 16px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    }
    .lcf-cm-sec-title {
        font-size: 11px;
        font-weight: 700;
        color: #004589;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .lcf-cm-sec-hours {
        font-size: 12px;
        color: #777;
        margin-bottom: 12px;
    }
    .lcf-cm-btns {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    .lcf-cm-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
        color: #fff !important;
        line-height: 1.2;
        text-align: center;
    }
    .lcf-cm-btn i { font-size: 19px; flex-shrink: 0; }
    .lcf-cm-btn--phone { background: #004589; }
    .lcf-cm-btn--wsp   { background: #25D366; }
    .lcf-cm-suc-card {
        display: flex;
        align-items: center;
        gap: 0;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 0;
    }
    .lcf-cm-suc-card:last-child { border-bottom: none; padding-bottom: 2px; }
    .lcf-cm-suc-card:first-of-type { padding-top: 2px; }
    .lcf-cm-suc-img {
        width: 76px;
        height: 72px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
    }
    .lcf-cm-suc-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .lcf-cm-suc-info {
        flex: 1;
        padding: 0 10px;
        min-width: 0;
    }
    .lcf-cm-suc-info > a {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2px 8px;
    }
    .lcf-cm-suc-info-main {
        min-width: 0;
        flex: 1 1 140px;
    }
    .lcf-cm-suc-name {
        font-size: 13px;
        font-weight: 700;
        color: #004589;
        margin-bottom: 1px;
    }
    .lcf-cm-suc-addr {
        font-size: 12px;
        color: #333;
        line-height: 1.3;
    }
    .lcf-cm-suc-addr2 {
        font-size: 11px;
        color: #999;
        margin-bottom: 3px;
    }
    .lcf-cm-suc-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.3; }
    .lcf-cm-suc-status--open  { color: #E00321; }
    .lcf-cm-suc-status--soon  { color: #888; font-weight: 400; text-transform: none; font-size: 11px; }
    .lcf-cm-suc-status--hours { color: #333; font-weight: 400; text-transform: none; font-size: 11px; letter-spacing: 0; }
    .lcf-cm-suc-map {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        flex-shrink: 0;
        color: #004589;
        font-size: 22px;
        text-decoration: none !important;
        padding: 4px;
    }

