/* ============ HORARIOS ============ */

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.horario-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 20px;
    padding: 1.9rem 1.6rem 1.7rem;
    box-shadow: 0 6px 22px -12px rgba(34, 31, 24, 0.18);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
.horario-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 48px -24px rgba(34, 31, 24, 0.32);
    border-color: var(--oro);
}

/* ----- Medallón del ícono ----- */
.horario-medallon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: linear-gradient(
        150deg,
        var(--verde-claro),
        var(--verde-oscuro) 80%
    );
    box-shadow:
        0 12px 22px -10px rgba(14, 58, 43, 0.55),
        inset 0 0 0 2px rgba(255, 255, 255, 0.18);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.horario-card:hover .horario-medallon {
    transform: rotate(-6deg) scale(1.06);
}
.horario-medallon svg {
    width: 30px;
    height: 30px;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.horario-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--verde-oscuro);
    margin-bottom: 0.9rem;
}

/* ----- Filas dia/hora ----- */
.horario-fila {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    border-top: 1px dashed var(--linea);
    padding: 0.62rem 0 0.55rem;
}
.horario-fila + .horario-fila {
    margin-top: 0.45rem;
}
.horario-dia {
    color: var(--tinta);
    font-weight: 500;
    font-size: 0.9rem;
}
.horario-hora {
    color: var(--bronce);
    font-weight: 500;
    font-size: 0.88rem;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ----- Descripción (categorías sin filas) ----- */
.horario-desc {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ----- Acordeón de horarios (portada) ----- */
.horarios-acc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
}
.hacc-item {
    border-bottom: 1px solid rgba(255, 253, 246, 0.18);
}
.hacc-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 253, 246, 0.18);
    padding-right: 2rem;
}
.hacc-item:nth-child(even) {
    padding-left: 2rem;
}
.sec-claro .hacc-item {
    border-bottom-color: var(--linea);
}
.sec-claro .hacc-item:nth-child(odd) {
    border-right-color: var(--linea);
}
.hacc-head {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    text-align: left;
}
.hacc-head-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.hacc-titulo {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    color: #fffdf6;
    transition: color 0.25s ease;
}
.sec-claro .hacc-titulo {
    color: var(--verde-oscuro);
}
.hacc-head:hover .hacc-titulo,
.hacc-head[aria-expanded="true"] .hacc-titulo {
    color: var(--oro-suave);
}
.sec-claro .hacc-head:hover .hacc-titulo,
.sec-claro .hacc-head[aria-expanded="true"] .hacc-titulo {
    color: var(--oro);
}
.hacc-sub {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 253, 246, 0.55);
}
.sec-claro .hacc-sub {
    color: var(--tinta-sub);
}
.hacc-ico {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--oro-suave);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.hacc-head[aria-expanded="true"] .hacc-ico {
    transform: rotate(45deg);
}
.hacc-panel {
    padding-bottom: 1.2rem;
}
.hacc-panel[hidden] {
    display: none;
}
.hacc-fila {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.52rem 0;
    border-top: 1px solid rgba(255, 253, 246, 0.1);
}
.sec-claro .hacc-fila {
    border-top-color: var(--linea);
}
.hacc-dia {
    color: var(--verde-claro);
    font-weight: 500;
    font-size: 0.88rem;
}
.sec-claro .hacc-dia {
    color: var(--verde);
}
.hacc-hora {
    color: rgba(255, 253, 246, 0.82);
    font-size: 0.88rem;
    text-align: right;
}
.sec-claro .hacc-hora {
    color: var(--tinta-sub);
}
.hacc-desc {
    color: rgba(255, 253, 246, 0.65);
    font-size: 0.85rem;
    font-weight: 300;
    padding: 0.4rem 0 0.2rem;
}
.sec-claro .hacc-desc {
    color: var(--tinta-sub);
}
@media (max-width: 640px) {
    .horarios-acc {
        grid-template-columns: 1fr;
    }
    .hacc-item:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }
    .hacc-item:nth-child(even) {
        padding-left: 0;
    }
}

/* ----- Botón ver más ----- */
.horarios-ver-mas {
    display: flex;
    justify-content: center;
    margin-top: 2.4rem;
}
.horarios-ver-mas-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--verde-oscuro);
    background: var(--crema);
    border: 1px solid var(--oro);
    box-shadow: 0 12px 24px -14px rgba(34, 31, 24, 0.3);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}
.horarios-ver-mas-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -16px rgba(34, 31, 24, 0.4);
    background: var(--verde-oscuro);
    color: var(--crema);
}

/* ----- Página pública ----- */
.sub-body .horarios-grid {
    max-width: 1160px;
}
.horarios-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.6rem;
}

/* ----- Móvil ----- */
@media (max-width: 640px) {
    .horarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .horario-card {
        padding: 1.6rem 1.4rem 1.5rem;
    }
    .horario-medallon {
        width: 56px;
        height: 56px;
    }
    .horario-medallon svg {
        width: 27px;
        height: 27px;
    }
}
