/* ═══════════════════════════════════════════════════════════════════════
   ROTACIONES — estilos (paleta azul del tema · Outfit)
   Todo scoped bajo .rot-* para no colisionar con el resto del tema.
   Adaptado de /tutoria/tutoria.css.
═══════════════════════════════════════════════════════════════════════ */

.rot-wrap {
    max-width: 980px;
    margin: 0 auto 80px;
    padding: 0 40px;
    font-family: 'Outfit', sans-serif;
    color: var(--color-texto-principal);
}

/* ── Botones ── */
.rot-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
    border: none;
    border-radius: 10px;
    padding: 12px 26px;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .05s;
    text-transform: uppercase;
    white-space: nowrap;
}
.rot-btn:active { transform: translateY(1px); }
.rot-btn--primary { background: var(--color-azul-700); color: #fff; box-shadow: var(--shadow-btn); }
.rot-btn--primary:hover { background: var(--color-azul-900); }
.rot-btn--accent { background: var(--color-azul-500); color: #fff; }
.rot-btn--accent:hover { background: var(--color-azul-700); }
.rot-btn--danger { background: var(--color-error); color: #fff; }
.rot-btn--danger:hover { background: #a30000; }
.rot-btn--ghost { background: var(--color-azul-100); color: var(--color-azul-900); }
.rot-btn--ghost:hover { background: var(--color-azul-300); color: #fff; }
.rot-btn:disabled, .rot-btn.is-off { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ── Inputs ── */
.rot-input {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: var(--color-texto-principal);
    border: 1.5px solid var(--color-azul-100);
    border-radius: 10px;
    padding: 13px 18px;
    outline: none;
    background: #fff;
    transition: border-color .18s;
}
.rot-input:focus { border-color: var(--color-azul-500); }

/* ═══════════════════ VISTA BUSCAR ═══════════════════ */
.rot-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 300px;
    background: linear-gradient(120deg, var(--color-azul-900) 0%, var(--color-azul-700) 55%, var(--color-azul-500) 100%);
    box-shadow: var(--shadow-azul);
}
.rot-hero-media { position: relative; width: 42%; flex-shrink: 0; }
.rot-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rot-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,42,74,.15) 0%, rgba(11,42,74,.55) 60%, var(--color-azul-900) 100%);
}
.rot-hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; }
.rot-hero-title { font-size: 56px; font-weight: 900; line-height: 1; color: #fff; margin: 0; letter-spacing: -1px; }
.rot-hero-sub { font-size: 20px; font-weight: 400; color: var(--color-azul-100); margin: 14px 0 0; max-width: 460px; }

.rot-intro {
    background: var(--color-azul-50);
    border: 1px solid var(--color-azul-100);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 22px;
}
.rot-intro p { margin: 0; font-size: 15.5px; color: var(--color-texto-secundario); }

.rot-search-box { display: flex; gap: 12px; margin-top: 18px; align-items: stretch; }
.rot-search-box .rot-btn { padding-inline: 34px; }

.rot-policies-link {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    font-size: 15px; font-weight: 600; color: var(--color-azul-700); text-decoration: none;
}
.rot-policies-link:hover { color: var(--color-azul-900); }
.rot-policies-link svg { width: 18px; height: 18px; stroke: currentColor; }

/* ═══════════════════ ALERTAS ═══════════════════ */
.rot-alert { margin-top: 14px; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 600; }
.rot-alert--error { background: #fdecec; border: 1px solid #f5c2c2; color: #c0392b; }
.rot-alert--info  { background: var(--color-azul-50); border: 1px solid var(--color-azul-100); color: var(--color-azul-700); }

/* ═══════════════════ PANEL ═══════════════════ */
.rot-student-name {
    font-size: 40px; font-weight: 900; line-height: 1.02;
    color: var(--color-azul-700); margin: 0; text-transform: uppercase; letter-spacing: -.5px;
}
.rot-block-label {
    font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--color-azul-900); margin: 26px 0 10px;
}
.rot-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rot-chip {
    border: 1.5px solid var(--color-azul-100); border-radius: 9px; padding: 9px 15px;
    font-size: 15px; font-weight: 700; color: var(--color-texto-principal); background: #fff;
}
.rot-chip--accent { background: var(--color-azul-50); border-color: var(--color-azul-300); color: var(--color-azul-700); }

/* Aviso informativo */
.rot-note {
    margin-top: 18px; background: #111; color: #fff; border-radius: 12px;
    padding: 14px 18px; font-size: 15px; line-height: 1.5; text-align: justify;
}
.rot-note strong { color: var(--color-azul-100); }

/* Clases en vivo */
.rot-live {
    display: block; margin-top: 16px; background: #212121; color: #fff; text-align: center;
    padding: 18px; border-radius: 12px; font-weight: 800; text-transform: uppercase;
    text-decoration: none; letter-spacing: .5px;
}
.rot-live:hover { background: #000; color: #fff; }

/* Fila de estado (pasos) */
.rot-status { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: stretch; }
.rot-status-item {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--color-azul-100); border-radius: 10px; padding: 11px 18px;
    font-size: 15px; font-weight: 700; color: var(--color-texto-secundario); background: #fff;
}
.rot-status-item .rot-ic { font-weight: 900; font-size: 15px; }
.rot-status-item.is-ok .rot-ic { color: #16a34a; }
.rot-status-item.is-ok--strong { background: var(--color-azul-500); border-color: var(--color-azul-500); color: #fff; }
.rot-status-item.is-ok--strong .rot-ic { color: #fff; }
.rot-status-item.is-warn { background: #fdf1f1; border-color: #f2b8b8; }
.rot-status-item.is-warn .rot-ic { color: var(--color-error); }
.rot-status-item.is-warn strong { color: var(--color-error); }
.rot-status-item b { color: var(--color-texto-principal); font-weight: 800; }
.rot-exit { margin-left: auto; background: var(--color-azul-100); border: none; color: var(--color-azul-900); cursor: pointer; }
.rot-exit:hover { background: var(--color-azul-300); color: #fff; }

/* Cards de tablas */
.rot-card {
    border: 1px solid var(--color-azul-100); border-radius: 16px; padding: 22px 26px; margin-top: 22px;
    box-shadow: 0 2px 14px rgba(11, 42, 74, .05); background: #fff;
}
.rot-card-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 16px; }
.rot-card-title--assigned  { color: var(--color-azul-700); }
.rot-card-title--available { color: var(--color-azul-500); }

/* Tabla responsive por grid */
.rot-table { display: flex; flex-direction: column; }
.rot-row {
    display: grid; gap: 16px; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--color-azul-50);
}
.rot-row--assigned { grid-template-columns: 2fr 1fr 1.4fr 150px; }
.rot-row--salon { grid-template-columns: 2fr 2fr 150px; }
.rot-row--head { padding-bottom: 12px; border-bottom: 1px solid var(--color-azul-100); }
.rot-row--head span { font-size: 15px; font-weight: 600; color: var(--color-texto-secundario); }
.rot-th-c { text-align: center; }
.rot-cell-date { font-size: 16px; font-weight: 700; color: var(--color-texto-principal); line-height: 1.4; }
.rot-cell-code { font-size: 16px; font-weight: 800; text-align: center; color: var(--color-azul-700); }
.rot-cell-place { font-size: 16px; font-weight: 700; color: var(--color-texto-secundario); text-align: center; }
.rot-cell-place small { display: block; font-weight: 600; font-size: 15px; }
.rot-cell-action { display: flex; justify-content: flex-end; }
.rot-cell-action .rot-btn { width: 100%; padding: 10px 12px; font-size: 15px; border-radius: 8px; }
.rot-empty { padding: 24px 0; text-align: center; color: var(--color-disabled); font-size: 15px; }
.rot-cell-label { display: none; }   /* etiquetas solo visibles en móvil */

/* Selector día / horario */
.rot-picker {
    display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    justify-content: center; margin-bottom: 8px;
}
.rot-picker-field { display: flex; flex-direction: column; gap: 6px; }
.rot-picker-field label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--color-texto-secundario); }
.rot-picker-sep { padding-bottom: 12px; font-weight: 700; color: var(--color-texto-secundario); }
.rot-picker-btn {
    font-family: 'Outfit', sans-serif; font-weight: 800; text-transform: uppercase;
    background: var(--color-azul-500); color: #fff; border: 2px solid var(--color-azul-500);
    border-radius: 10px; padding: 12px 24px; cursor: pointer; min-width: 160px; transition: background .15s;
}
.rot-picker-btn:hover:not(:disabled) { background: var(--color-azul-700); border-color: var(--color-azul-700); }
.rot-picker-btn.is-set { background: #fff; color: var(--color-azul-900); border-color: var(--color-azul-900); }
.rot-picker-btn:disabled { opacity: .5; cursor: not-allowed; }

/* PDF de políticas */
.rot-pdf { display: flex; justify-content: center; margin-top: 24px; }
.rot-pdf a {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--color-azul-700); color: #fff; text-decoration: none;
    padding: 14px 26px; border-radius: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
}
.rot-pdf a:hover { background: var(--color-azul-900); color: #fff; }
.rot-pdf svg { width: 20px; height: 20px; stroke: currentColor; }

/* ═══════════════════ POLÍTICAS ═══════════════════ */
.rot-policies-h { text-align: center; }
.rot-policies-h .rot-student-name { color: var(--color-azul-700); font-size: 34px; }
.rot-policies-intro { text-align: center; font-size: 15.5px; color: var(--color-texto-secundario); margin: 8px 0 20px; }
.rot-policy {
    background: var(--color-azul-50); border: 1px solid var(--color-azul-100); border-radius: 12px;
    padding: 16px 18px; margin-bottom: 12px; font-size: 15px; line-height: 1.5; color: var(--color-texto-principal);
}
.rot-policy ul { margin: 8px 0 0; padding-left: 20px; }
.rot-policy li { margin: 4px 0; }
.rot-policy-accept { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; color: var(--color-azul-700); cursor: pointer; }
.rot-policy-accept input { width: 18px; height: 18px; accent-color: var(--color-azul-700); cursor: pointer; }
.rot-policies-foot { display: flex; justify-content: center; margin-top: 20px; }

/* ═══════════════════ SPINNER ═══════════════════ */
.rot-spinner { display: flex; justify-content: center; padding: 50px 0; }
.rot-spinner-ring {
    width: 54px; height: 54px; border-radius: 50%;
    border: 5px solid var(--color-azul-100); border-top-color: var(--color-azul-700);
    animation: rotSpin 1s linear infinite;
}
@keyframes rotSpin { to { transform: rotate(360deg); } }

/* ═══════════════════ MODALES ═══════════════════ */
.rot-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rot-modal[hidden], .rot-spinner[hidden], .rot-alert[hidden], .rot-search[hidden], .rot-panel[hidden], .rot-table[hidden] { display: none !important; }
.rot-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 42, 74, .55); backdrop-filter: blur(2px); }
.rot-modal-card {
    position: relative; background: #fff; border-radius: 18px;
    width: 100%; max-width: 480px; padding: 26px 28px;
    box-shadow: var(--shadow-azul-hover); animation: rotPop .18s ease;
}
.rot-modal-card--sm { max-width: 400px; }
@keyframes rotPop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.rot-modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--color-disabled); cursor: pointer; }
.rot-modal-x:hover { color: var(--color-azul-900); }
.rot-modal-title { font-size: 20px; font-weight: 800; margin: 0 0 14px; color: var(--color-azul-900); }
.rot-modal-text { font-size: 15px; color: var(--color-texto-secundario); margin: 0 0 8px; }
.rot-modal-actions { display: flex; gap: 10px; }
.rot-modal-actions--end { justify-content: flex-end; margin-top: 20px; }
.rot-select {
    font-family: 'Outfit', sans-serif; font-size: 15px;
    border: 1.5px solid var(--color-azul-100); border-radius: 10px;
    padding: 12px 16px; background: #fff; width: 100%; color: var(--color-texto-principal);
}

/* Toast */
.rot-toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
    background: var(--color-azul-900); color: #fff; padding: 14px 22px; border-radius: 12px;
    font-weight: 600; font-size: 15px; box-shadow: var(--shadow-azul-hover); z-index: 10000;
    animation: rotToast .25s ease;
}
.rot-toast--ok { background: #16794a; }
.rot-toast--err { background: #a30000; }
@keyframes rotToast { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 780px) {
    .rot-wrap { padding: 0 18px; }
    .rot-hero { flex-direction: column; min-height: 0; }
    .rot-hero-media { width: 100%; height: 160px; }
    .rot-hero-media::after { background: linear-gradient(180deg, rgba(11,42,74,.15) 0%, var(--color-azul-900) 100%); }
    .rot-hero-body { padding: 28px 24px; }
    .rot-hero-title { font-size: 40px; }
    .rot-hero-sub { font-size: 17px; }
    .rot-search-box { flex-direction: column; }
    .rot-student-name { font-size: 30px; }
    .rot-status-item { width: 100%; }
    .rot-exit { margin-left: 0; }

    .rot-picker { flex-direction: column; align-items: stretch; }
    .rot-picker-sep { text-align: center; padding: 0; }
    .rot-picker-btn { width: 100%; }

    /* Tabla → tarjetas apiladas */
    .rot-row--head { display: none; }
    .rot-row--assigned, .rot-row--salon { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; text-align: center; }
    .rot-cell-date, .rot-cell-code, .rot-cell-place { text-align: center; }
    .rot-cell-action { justify-content: center; margin-top: 8px; }
    .rot-cell-action .rot-btn { width: 100%; }
    .rot-cell-label { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-disabled); font-weight: 700; }
}
