#contenedor-paso-dinamico {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid #e6edf6;
    background: #ffffff;
}

.salve-progress {
    height: 8px;
    border-radius: 999px;
    background-color: #e9edf3;
}

.salve-progress .progress-bar {
    background: linear-gradient(90deg, #0d6efd, #2aa2ff);
    transition: width 0.35s ease;
}

#cargandoGlobal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.86);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#cargandoTexto {
    margin-top: 12px;
    color: #1f2937;
    text-align: center;
    max-width: 560px;
    line-height: 1.4;
}

#capaCargandoInterna {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#capaCargandoPaso6 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#overDiv {
    position: absolute;
    visibility: hidden;
    z-index: 1;
}

.salve-debug-box {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

.salve-pre-wrap {
    margin: 0;
    white-space: pre-wrap;
}

.sala-item {
    margin-bottom: 8px;
    transition: 0.2s ease;
}

.sala-item:hover {
    background-color: #f8f9fb;
}

.sala-ocupada {
    color: #a8adb4;
    text-decoration: line-through;
    cursor: not-allowed;
}

.capacidad-info {
    font-size: 0.85em;
    color: #d32f2f;
    font-weight: 700;
    margin-left: 5px;
}

.salve-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.salve-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(8, 20, 38, 0.62), rgba(20, 48, 84, 0.55));
}

.salve-wrap {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 28px 14px;
}

.salve-card {
    width: min(760px, 96vw);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(5px);
}

.salve-head {
    padding: 14px 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #102a43;
    background: linear-gradient(90deg, #eaf4ff, #f5fbff);
    border-bottom: 1px solid #dbe9f6;
}

.salve-body {
    padding: 24px;
    text-align: center;
}

.salve-brand {
    width: 220px;
    max-width: 80%;
    margin: 2px auto 12px auto;
    display: block;
}

.salve-title {
    margin: 0 0 8px 0;
    color: #0b2239;
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
    font-weight: 700;
}

.salve-topic {
    margin: 0 0 14px 0;
    color: #274863;
}

/* Bienvenida.jsp */
#loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.9);
}

#loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    margin-left: -31px;
    margin-top: -42px;
    border: 6px solid #dbeafe;
    border-top: 6px solid #0d6efd;
    border-radius: 50%;
    animation: salve-spin 1s linear infinite;
}

#loaderTexto {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 24px);
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d0d7e2;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
}

@keyframes salve-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#info {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.salve-home-hero {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fbff, #f5f9ff);
}

.salve-home-hero h2 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
}

.salve-home-hero p {
    margin: 0;
    color: #40556f;
    line-height: 1.6;
}

.salve-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.salve-home-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.salve-home-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1f3752;
    text-align: center;
}

.salve-home-card p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.salve-home-card-full {
    grid-column: 1 / -1;
}

.salve-home-btn {
    min-width: 320px;
    max-width: 100%;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.salve-home-media {
    text-align: center;
}

.salve-home-media img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.salve-home-contact {
    margin: 0;
    text-align: center;
    color: #334155;
}

/* PasoPanelUsuario.jsp */
.panel-vc-summary {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #f4f8ff);
    padding: 16px 18px;
}

.panel-vc-summary h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #213b5d;
}

.panel-vc-summary p {
    margin: 0;
    color: #40556f;
    line-height: 1.55;
}

.panel-vc-card {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.panel-vc-card .card-header {
    background: linear-gradient(90deg, #0f766e, #0d9488);
    color: #ffffff;
    border-bottom: 0;
    font-weight: 700;
}

.panel-vc-table {
    table-layout: fixed;
    margin-bottom: 0;
}

.panel-vc-table th {
    font-size: 0.9rem;
    white-space: nowrap;
}

.panel-vc-table td {
    font-size: 0.92rem;
    vertical-align: top;
}

.panel-vc-table .col-motivo,
.panel-vc-table .col-sala {
    white-space: normal;
    word-break: break-word;
}

/* PasoListadoAsistentes.jsp */
.asist-summary {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #f4f8ff);
    padding: 16px 18px;
}

.asist-summary h3 {
    margin: 0 0 8px 0;
    color: #213b5d;
    font-size: 1.2rem;
}

.asist-summary p {
    margin: 0;
    color: #40556f;
    line-height: 1.55;
}

.asist-card {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.asist-card .card-header {
    background: linear-gradient(90deg, #0f766e, #0d9488);
    color: #ffffff;
    border-bottom: 0;
    font-weight: 700;
}

.detalle-vc-table,
.asistentes-table {
    table-layout: fixed;
    margin-bottom: 0;
}

.detalle-vc-table th,
.asistentes-table th {
    font-size: 0.9rem;
    white-space: nowrap;
}

.detalle-vc-table td,
.asistentes-table td {
    font-size: 0.92rem;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 900px) {
    .salve-home-grid {
        grid-template-columns: 1fr;
    }

    .salve-home-btn {
        min-width: 100%;
    }
}
