/* =========================================================
   HIGH VOLTAGE
   HORARIOS
   Sustituye al bloque "HORARIOS" (.schedule) de styles.css
   ========================================================= */

.hv-schedule {
    background-color: var(--rojo);
    color: #fff;
    padding: 110px 0 120px;
}

.hv-schedule .wrapper-main {
    max-width: 1180px;
}


/* =========================
   CABECERA (mismo esquema que "El equipo")
   ========================= */

.hv-schedule__intro {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 60px;
}

.hv-schedule__title {
    font-size: 7.5rem;
    line-height: .78;
    letter-spacing: -.02em;

    color: #fff;
}

.hv-schedule__lead {
    max-width: 380px;
    padding-bottom: 10px;

    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.45;

    color: #fff;
}


/* =========================
   SEMANA: 6 columnas, las horas alineadas por filas
   ========================= */

.hv-schedule__week {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    /* Panel negro, como en móvil: más calma sobre el rojo */
    padding: 10px 26px 22px;
    background-color: #000;
}

/* En ordenador, cada día "se disuelve" en la rejilla para que
   las filas de todos los días tengan la misma altura */
.hv-schedule__day {
    display: contents;
}

.hv-schedule__day-name,
.hv-schedule__slot {
    padding-left: 16px;
    padding-right: 12px;

    border-left: 1px solid rgba(255, 255, 255, .1);
}

.hv-schedule__day[data-day="1"] > * {
    border-left: 0;
    padding-left: 0;
}


/* =========================
   NOMBRE DEL DÍA
   ========================= */

.hv-schedule__day-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;

    margin: 0;
    padding-top: 18px;
    padding-bottom: 14px;

    font-size: 1.9rem;
    font-weight: normal;
    line-height: 1;

    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.hv-schedule__today {
    padding: 4px 8px 3px;

    font-family: 'Roboto', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;

    color: var(--rojo);
    background-color: #fff;
}


/* =========================
   HORAS
   ========================= */

.hv-schedule__slot {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.hv-schedule__time {
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: .01em;

    color: #fff;
}

/* Franja sin clase: hueco vacío (mantiene las horas alineadas) */
.hv-schedule__slot--empty {
    font-size: 0;
    color: transparent;
}

/* Clase especial: hora + etiquetas */
.hv-schedule__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.hv-schedule__tag {
    display: inline-block;
    padding: 4px 7px 3px;

    font-family: 'Roboto', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;

    color: #fff;
    background-color: var(--rojo);
    border: 1px solid var(--rojo);
}

/* "Funcional" en contorno, para que se distinga de la otra clase */
.hv-schedule__tag--base {
    background-color: transparent;
    border-color: #fff;
}


/* =========================
   HOY: columna algo más clara y nombre del día en rojo
   ========================= */

.hv-schedule__day.is-today > * {
    background-color: rgba(255, 255, 255, .1);
}

.hv-schedule__day.is-today .hv-schedule__day-name {
    border-bottom: 2px solid var(--rojo);
}

.hv-schedule__day.is-today[data-day="1"] > * {
    padding-left: 12px;
}


/* =========================
   PESTAÑAS (solo móvil)
   ========================= */

.hv-schedule__tabs {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hv-schedule__title {
        font-size: 6rem;
    }

    .hv-schedule__intro {
        grid-template-columns: 1fr .8fr;
        gap: 35px;
    }

    .hv-schedule__day-name,
    .hv-schedule__slot {
        padding-left: 10px;
        padding-right: 6px;
    }

    .hv-schedule__week {
        padding: 8px 14px 18px;
    }

    .hv-schedule__day-name {
        font-size: 1.6rem;
        flex-wrap: wrap;
    }

    .hv-schedule__time {
        font-size: 1.25rem;
    }

    .hv-schedule__tag {
        font-size: .68rem;
        padding: 3px 5px 2px;
    }
}


/* =========================================================
   MÓVIL: un día cada vez, con pestañas
   ========================================================= */

@media (max-width: 768px) {

    .hv-schedule {
        padding: 80px 0 100px;
    }

    .hv-schedule__intro {
        display: block;
        margin-bottom: 35px;
    }

    .hv-schedule__title {
        font-size: 5.5rem;
        margin-bottom: 25px;
    }

    .hv-schedule__lead {
        font-size: 1.15rem;
    }

    /* Pestañas */
    .hv-schedule.is-ready .hv-schedule__tabs {
        display: flex;
        gap: 6px;
        margin-bottom: 18px;
    }

    .hv-schedule__tabs button {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 0 10px;

        font-family: 'Bebas Neue', cursive;
        font-size: 1.25rem;
        line-height: 1;
        letter-spacing: .03em;

        color: #fff;
        background: transparent;
        border: 2px solid #fff;
        cursor: pointer;
    }

    .hv-schedule__tabs button[aria-pressed="true"] {
        color: var(--rojo);
        background-color: #fff;
    }

    /* La semana pasa a ser una lista por día */
    .hv-schedule__week {
        display: block;
        border-top: 0;
        padding: 0;
        background-color: transparent;
    }

    .hv-schedule__day {
        display: block;
        margin-bottom: 30px;
        background-color: #000;
    }

    .hv-schedule.is-ready .hv-schedule__day {
        display: none;
        margin-bottom: 0;
    }

    .hv-schedule.is-ready .hv-schedule__day.is-active {
        display: block;
    }

    .hv-schedule__day > *,
    .hv-schedule__day[data-day="1"] > *,
    .hv-schedule__day.is-today > *,
    .hv-schedule__day.is-today[data-day="1"] > * {
        padding-left: 20px;
        padding-right: 20px;
        border-left: 0;
        background-color: transparent;
    }

    .hv-schedule__day-name,
    .hv-schedule__day.is-today .hv-schedule__day-name {
        font-size: 2.4rem;
        padding-top: 20px;
        border-bottom: 2px solid #fff;
    }

    /* En móvil no hace falta alinear: se ocultan los huecos vacíos */
    .hv-schedule__slot--empty {
        display: none;
    }

    .hv-schedule__slot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        min-height: 54px;
        padding-top: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .hv-schedule__slot:last-child,
    .hv-schedule__slot:not(:has(~ .hv-schedule__slot:not(.hv-schedule__slot--empty))) {
        border-bottom: 0;
    }

    .hv-schedule__time {
        font-size: 1.9rem;
    }

    .hv-schedule__tags {
        justify-content: flex-end;
        margin-top: 0;
    }

    .hv-schedule__tag {
        font-size: .82rem;
        padding: 5px 9px 4px;
    }

    .hv-schedule__day .hv-schedule__tag {
        background-color: var(--rojo);
        border-color: var(--rojo);
    }

    .hv-schedule__day .hv-schedule__tag--base {
        background-color: transparent;
        border-color: #fff;
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 550px) {

    .hv-schedule {
        padding: 65px 0 85px;
    }

    .hv-schedule__title {
        font-size: 4.7rem;
        line-height: .8;
    }

    .hv-schedule__tabs {
        gap: 4px;
    }

    .hv-schedule__tabs button {
        font-size: 1.1rem;
    }
}