:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #6f163d;
    --muted: #8a526a;
    --line: #e5e7eb;
    --primary: #9E0046;
    --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: #CF005B;
    color: #fff;
    padding: 6px 0;
    margin-bottom: 28px;
}

.nav,
.nav-right,
.page-title,
.actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav,
.page-title {
    justify-content: space-between;
}

.brand,
.nav a {
    color: #fff;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.brand-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-right a {
    font-weight: 600;
}

.nav-right a:hover {
    text-decoration: underline;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 22px rgba(0,0,0,.04);
}

.login-card {
    max-width: 440px;
    margin: 70px auto;
}

.form {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0,1fr));
}

.full { grid-column: 1 / -1; }

label {
    display: grid;
    gap: 7px;
    font-weight: 650;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
}

.campo-automatico {
    background: #f3f4f6 !important;
    color: #6b7280;
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 13px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.small { padding: 6px 9px; }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th { color: var(--muted); }

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.flash.ok { background: #ecfdf5; }
.flash.error { background: #fef2f2; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.filtros-horario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.leyenda {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: .9rem;
}

.leyenda span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.estado-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
}

.estado-dot.libre { background: #dcfce7; }
.estado-dot.propio { background: #dbeafe; }
.estado-dot.ocupado { background: #fee2e2; }

.selector-fecha {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-fecha-label { font-weight: 650; }

.fecha-seleccionada {
    min-width: 145px;
    padding: 9px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

.fecha-seleccionada:hover { background: #f9fafb; }

.calendario-popup {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 100;
    width: 310px;
    padding: 15px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.calendario-popup.visible { display: block; }

.calendario-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.calendario-mes-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    color: #374151;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: .15s ease;
}

.calendario-mes-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.calendario-semana {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    margin-bottom: 5px;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: #6b7280;
}

.calendario-dias {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 4px;
}

.dia-calendario {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.dia-reservable {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #111827;
    cursor: pointer;
}

.dia-reservable:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

.dia-no-reservable {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dia-seleccionado {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.dia-vacio { aspect-ratio: 1; }

.aviso-no-reservable {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
}

.horarios-timeline {
    display: flex;
    flex-direction: column;
    gap: 55px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.campo-timeline {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    align-items: center;
}

.campo-timeline-nombre {
    font-size: 24px;
    font-weight: 700;
}

.campo-timeline-contenedor {
    position: relative;
    padding-top: 30px;
}

.hora-inicio,
.hora-fin {
    position: absolute;
    top: 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.hora-inicio { left: 0; }
.hora-fin { right: 0; }

.timeline-campo {
    position: relative;
    width: 100%;
    height: 110px;
    background: #d9f5c4;
    border: 2px solid #374151;
    border-radius: 16px;
    overflow: hidden;
}

/* Texto "Libre" centrado en todo el campo */
.texto-libre {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    color: #4f8a3c;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    z-index: 1;
}

.texto-libre:hover {
    background: rgba(74, 222, 128, 0.15);
    color: #166534;
}

.bloque-reserva {
    position: absolute;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid;
    border-radius: 13px;

    z-index: 2;

    overflow: hidden;
}

.bloque-reserva.reserva-propia {
    background: #a9ddf5;
    border-color: #3182ce;
}

.bloque-reserva.reserva-ajena {
    background: #ffc3b5;
    border-color: #e24a33;
}

.reserva-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
}

.reserva-contenido strong { font-size: 14px; }

.club-reserva {
    font-size: .7rem !important;
    font-weight: 600;
    opacity: .85;
}

.btn-borrar-reserva {
    margin-top: 5px;
    padding: 5px 10px;

    border: 1px solid #b91c1c;
    border-radius: 6px;

    background: #dc2626;
    color: white;

    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.btn-borrar-reserva:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.timeline-no-reservable {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229,231,235,.75);
    color: #6b7280;
    font-weight: 700;
    z-index: 3;
}

@media (max-width: 760px) {
    .nav,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-2,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .filtros-horario {
        flex-direction: column;
        align-items: stretch;
    }

    .campo-timeline {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .campo-timeline-nombre {
        font-size: 20px;
    }

    .timeline-campo {
        height: 100px;
    }
}

/* =========================================================
   BLOQUES LIBRES
   ========================================================= */

.bloque-libre {
    position: absolute;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #d9f5c4;
    color: #4f8a3c;

    border: 2px solid #65a854;
    border-radius: 13px;

    text-align: center;
    text-decoration: none;

    font-size: 14px;

    cursor: pointer;

    z-index: 1;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}


.bloque-libre strong {
    font-size: 18px;
}


.bloque-libre span {
    margin-top: 3px;

    font-size: 13px;
    font-weight: 600;
}


.bloque-libre:hover {
    background: #c8efad;

    box-shadow:
        inset 0 0 0 1px #4f8a3c;
}

/* Reservas de medio campo */
.bloque-reserva.reserva-mitad .reserva-contenido {
    font-size: 8px;
    line-height: 1.1;
    padding: 2px 5px;
    gap: 1px;
}

.bloque-reserva.reserva-mitad .reserva-contenido strong {
    font-size: 9px;
    white-space: nowrap;
}

.bloque-reserva.reserva-mitad .reserva-contenido span {
    white-space: nowrap;
}

.bloque-reserva.reserva-mitad .btn-borrar-reserva {
    padding: 2px 6px;
    margin-top: 2px;
    font-size: 7px;
}

/* Libre cuando solo queda medio campo */
.bloque-libre[style*="height: 50%"] strong {
    font-size: 14px;
}

.bloque-libre[style*="height: 50%"] span {
    font-size: 11px;
}

.brand-logo {
    display: block;
    width: 135px;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 0;
}

/* Selector de idioma ES / EU */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-right: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,.72);
}

.language-switch a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: 3px 5px;
    border-radius: 5px;
}

.language-switch a:hover,
.language-switch a.active {
    color: #fff;
    background: rgba(255,255,255,.16);
    text-decoration: none;
}

.mobile-language-switch {
    display: none;
}

.desktop-language-switch {
    flex-shrink: 0;
    padding-right: 0;
}

/* Listas de gestión con botón de eliminación */
.admin-lista {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

.admin-lista-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.admin-lista-item:last-child {
    border-bottom: 0;
}

.admin-delete-form {
    margin: 0;
    flex-shrink: 0;
}


/* =========================================================
   MENÚ DESPLEGABLE DE ADMINISTRACIÓN / GESTIÓN
   ========================================================= */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: .75rem;
    transition: transform .15s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 1000;
}

/* Puente invisible para que el menú no se cierre al mover el cursor */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--text) !important;
    white-space: nowrap;
    text-decoration: none !important;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: #f8e8ef;
}

.admin-page-card {
    max-width: 820px;
}

@media (max-width: 760px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* =========================================================
   VERSIÓN MÓVIL
   ========================================================= */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #fff;
    transition: transform .18s ease, opacity .18s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.timeline-scroll-inner {
    position: relative;
    min-width: 0;
}

@media (max-width: 760px) {
    body { overflow-x: hidden; }

    .container {
        width: min(100% - 22px, 1180px);
    }

    .topbar {
        padding: 7px 0;
        margin-bottom: 18px;
    }

    .nav {
        position: relative;
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand-logo { width: 90px; }

    .brand-title {
        font-size: .95rem;
        white-space: normal;
        line-height: 1.1;
    }

    .desktop-language-switch {
        display: none;
    }

    .mobile-language-switch {
        display: inline-flex;
        width: auto;
        flex-shrink: 0;
        justify-content: center;
        padding: 0;
        margin-left: auto;
        margin-bottom: 0;
        border-bottom: 0;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 0;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        z-index: 1500;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 10px;
        border-radius: 10px;
        background: #b90050;
        box-shadow: 0 12px 28px rgba(31,41,55,.22);
    }

    .nav-right.mobile-open { display: flex; }

    .nav-right > a,
    .nav-dropdown-trigger {
        width: 100%;
        padding: 10px 9px;
        border-radius: 7px;
    }

    .nav-right > a:hover,
    .nav-dropdown-trigger:hover {
        background: rgba(255,255,255,.1);
        text-decoration: none;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 2px 0 3px 10px;
        padding: 3px 0 3px 9px;
        border: 0;
        border-left: 2px solid rgba(255,255,255,.25);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown-menu::before { display: none; }

    .nav-dropdown-menu a {
        color: #fff !important;
        padding: 8px 9px;
        white-space: normal;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus {
        background: rgba(255,255,255,.1);
    }

    .dropdown-arrow { display: none; }

    .page-title {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .page-title h1 {
        font-size: 1.55rem;
        line-height: 1.15;
        margin-bottom: 7px;
    }

    .page-title p { margin-top: 0; }

    .page-title > .btn {
        width: 100%;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }

    .login-card {
        max-width: none;
        margin: 28px auto;
    }

    .grid-2,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .actions {
        flex-wrap: wrap;
    }

    .form-actions .btn {
        flex: 1 1 140px;
    }

    input,
    select,
    .btn {
        min-height: 44px;
    }

    .admin-lista-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-delete-form,
    .admin-delete-form .btn {
        width: 100%;
    }

    .table-wrap {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table { min-width: 760px; }

    .filtros-horario {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .selector-fecha {
        width: 100%;
        justify-content: space-between;
    }

    .fecha-seleccionada {
        flex: 1;
        min-width: 0;
    }

    .calendario-popup {
        left: 0;
        right: auto;
        width: min(310px, calc(100vw - 34px));
    }

    .leyenda { gap: 10px 14px; }

    .horarios-timeline {
        gap: 34px;
        margin-top: 28px;
    }

    .campo-timeline {
        display: block;
    }

    .campo-timeline-nombre {
        margin-bottom: 8px;
        font-size: 1.2rem;
    }

    .campo-timeline-contenedor {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-top: 0;
        padding-bottom: 7px;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-scroll-inner {
        width: 760px;
        min-width: 760px;
        padding-top: 30px;
    }

    .timeline-campo {
        width: 760px;
        height: 110px;
    }

    .hora-inicio,
    .hora-fin {
        font-size: 13px;
    }

    .bloque-libre strong { font-size: 14px; }
    .bloque-libre span { font-size: 10px; }

    .reserva-contenido {
        font-size: 11px;
    }

    .reserva-contenido strong { font-size: 12px; }

    .btn-borrar-reserva {
        min-height: 0;
    }
}

@media (max-width: 390px) {
    .brand-logo { width: 76px; }
    .brand-title { font-size: .85rem; }
    .container { width: calc(100% - 16px); }
    .card { padding: 13px; }
    .calendario-popup { width: calc(100vw - 24px); }
}

/* Ajuste fluido para monitores de diferentes resoluciones */
@media (min-width: 761px) {
    .container { width: calc(100% - clamp(32px, 5vw, 112px)); max-width: 1920px; }
    .campo-timeline { grid-template-columns: clamp(110px, 11vw, 180px) minmax(0, 1fr); gap: clamp(12px, 2vw, 30px); }
    .campo-timeline-contenedor { min-width: 0; }
    .timeline-scroll-inner { min-width: 0; }
    .nav { gap: clamp(12px, 2vw, 32px); }
    .nav-right { gap: clamp(9px, 1.1vw, 20px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .brand-title { font-size: 1rem; }
    .nav-right { font-size: .9rem; }
}
.password-field { position: relative; display: block; width: 100%; }
.password-field input { width: 100%; padding-right: 48px; }
.password-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.password-eye:hover, .password-eye:focus-visible, .password-eye.is-visible { color: var(--primary); background: #f9e7ef; }
.password-eye svg { width: 21px; height: 21px; }
.edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-lista-item { gap: 10px; flex-wrap: wrap; }
.admin-lista-item > span:first-child { margin-right: auto; }

/* Acción de edición accesible desde cada bloque del horario */
.btn-editar-reserva { display:inline-block; margin:2px 3px; padding:3px 7px; border-radius:5px; background:#fff; color:#6f163d; font-size:11px; font-weight:700; text-decoration:none; }
.btn-editar-reserva:hover { background:#f8e5ee; }
.bloque-reserva.reserva-mitad .btn-editar-reserva { font-size:8px; padding:2px 5px; margin:1px; }

/* Acciones compactas: iconos de igual tamaño en una sola fila.
   Evitan que los botones oculten las horas y el equipo en reservas de medio campo. */
.reserva-contenido { min-width:0; gap:1px; }
.reserva-contenido > strong,
.reserva-contenido > span { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reserva-acciones { display:flex; flex-direction:row; justify-content:center; align-items:center; gap:3px; flex:0 0 auto; margin-top:2px; }
.reserva-acciones form { margin:0; padding:0; display:flex; }
.reserva-acciones .btn-editar-reserva,
.reserva-acciones .btn-borrar-reserva,
.bloque-reserva.reserva-mitad .reserva-acciones .btn-editar-reserva,
.bloque-reserva.reserva-mitad .reserva-acciones .btn-borrar-reserva {
  display:inline-flex; align-items:center; justify-content:center;
  box-sizing:border-box; width:20px; height:19px; min-width:20px; min-height:19px;
  padding:0; margin:0; border-radius:4px; font-size:14px; line-height:1;
  font-weight:700; text-decoration:none;
}
.reserva-acciones .btn-editar-reserva { background:white; color:#6f163d; border:1px solid #b79aa7; }
.reserva-acciones .btn-borrar-reserva { background:#dc2626; color:white; border:1px solid #b91c1c; }
.bloque-reserva.reserva-mitad .reserva-contenido { padding:1px 2px; gap:0; }
.bloque-reserva.reserva-mitad .reserva-acciones { margin-top:1px; }

/* Selectores independientes de horas y minutos */
.selector-hora-grupo { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.selector-hora-grupo > label { font-weight: 700; }
.selector-hora-partes { display: flex; align-items: center; gap: 10px; min-width: 0; }
.selector-hora-partes select { flex: 1 1 0; min-width: 0; width: 100%; }
.selector-hora-partes > span { font-weight: 700; }

/* Hora compacta: desplegables visibles solo al editar */
.hora-compacta { display:block; width:100%; text-align:left; padding:12px 15px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:inherit; font:inherit; font-weight:600; cursor:pointer; min-height:44px; }
.hora-compacta:hover,.hora-compacta:focus-visible { border-color:var(--primary); }
.selector-hora-partes[hidden], .hora-compacta[hidden] { display:none !important; }
