@layer components {
    /* =============================================================
     * Horarios Especiales — CMS /horarios-especiales
     * Cards de tiendas con weekday hours desde Google Places API
     * ============================================================= */

    /* Página a ancho completo, sin el padding lateral global de #maincontent
     * ni el max-width de .columns (mismo patrón que la home en 01-base.css). */
    .cms-horarios-especiales #maincontent {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        margin-block: 0 !important;
    }
    .cms-horarios-especiales .columns {
        max-width: none !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    .cms-horarios-especiales .column.main {
        max-width: none !important;
        width: 100% !important;
    }
    .cms-horarios-especiales .breadcrumbs { display: none; }
    /* Diseño devlab: cabecera alineada a la izquierda + tabla
     * País | Zona | Tienda | Horario | Días de apertura (bloques en móvil) */
    .elg-hours-page {
        padding: 1rem 1.25rem 4rem;
        color: rgb(4 29 64);
    }
    @media (min-width: 768px) { .elg-hours-page { padding: 3rem clamp(2rem, 4.5vw, 4rem) 5rem; } }

    .elg-hours-head { margin: 0 0 2.5rem 0; }
    .elg-hours-h1 {
        font-size: clamp(1.75rem, 5vw, 4.5rem);
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1;
        margin: 0 0 1.5rem 0;
    }
    .elg-hours-sub {
        font-size: 0.8125rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
    }
    .elg-hours-intro {
        font-size: 0.8125rem;
        line-height: 1.45;
        max-width: 40rem;
        margin: 0;
    }
    .elg-hours-intro a { text-decoration: underline; text-underline-offset: 2px; }

    .elg-hours-campaign {
        font-size: clamp(1.125rem, 2vw, 1.75rem);
        font-weight: 400;
        text-transform: uppercase;
        margin: 0 0 1.5rem 0;
    }

    .elg-hours-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.75rem;
    }
    .elg-hours-table th {
        text-align: left;
        font-weight: 600;
        padding: 0 1rem 0.6rem 0;
        border-bottom: 1px solid rgb(4 29 64 / 0.35);
    }
    .elg-hours-table td {
        padding: 0.55rem 1rem 0.55rem 0;
        border-bottom: 1px solid rgb(4 29 64 / 0.35);
        color: rgb(4 29 64 / 0.75);
        vertical-align: top;
    }
    .elg-hours-table th:nth-child(1) { width: 14%; }
    .elg-hours-table th:nth-child(2) { width: 18%; }
    .elg-hours-table th:nth-child(3) { width: 26%; }
    .elg-hours-table th:nth-child(4) { width: 20%; }
    .elg-hours-line { display: block; }

    /* Móvil: cada tienda es un bloque de tres líneas
     * "Tienda - nombre zona país" / "Horario especial - …" / "Días de apertura - …" */
    @media (max-width: 767px) {
        .elg-hours-table, .elg-hours-table tbody { display: block; }
        .elg-hours-table thead { display: none; }
        .elg-hours-table tr {
            display: flex;
            flex-wrap: wrap;
            column-gap: 0.35rem;
            row-gap: 0.2rem;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgb(4 29 64 / 0.35);
        }
        .elg-hours-table td {
            padding: 0;
            border: 0;
            font-size: 0.6875rem;
        }
        .elg-hours-col-tienda { order: 1; }
        .elg-hours-col-zona { order: 2; }
        .elg-hours-col-pais { order: 3; }
        .elg-hours-col-horario { order: 4; flex-basis: 100%; }
        .elg-hours-col-dias { order: 5; flex-basis: 100%; }
        .elg-hours-col-empty { display: none; }
        .elg-hours-table td[data-label]::before {
            content: attr(data-label) " - ";
            font-weight: 600;
            color: rgb(4 29 64);
        }
        .elg-hours-line { display: inline; }
        .elg-hours-line + .elg-hours-line::before { content: " · "; }
    }

    .elg-hours-empty {
        font-size: 0.875rem;
        color: rgb(4 29 64 / 0.6);
    }
}
