/* ==========================================================================
   MODO DE USO - BOTÓN LATERAL FLOTANTE Y MODAL INFORMATIVO
   ========================================================================== */

/* Botón flotante lateral (oculto por defecto en pantallas normales/escritorio) */
.btn-modo-uso {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    background: #002b9d;
    background: linear-gradient(135deg, #0037c2 0%, #002380 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 7px;
    cursor: pointer;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 43, 157, 0.5);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-modo-uso:hover,
.btn-modo-uso:focus-visible {
    transform: translateY(-50%) translateX(-3px);
    background: linear-gradient(135deg, #0044ed 0%, #002b9d 100%);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 68, 237, 0.6);
}

.btn-modo-uso:active {
    transform: translateY(-50%) scale(0.95);
}

/* Icono informativo en la parte superior del botón */
.btn-modo-uso-icon {
    display: block;
    width: 14px;
    height: 14px;
    margin-bottom: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Texto dispuesto verticalmente (se lee de arriba hacia abajo) */
.btn-modo-uso-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.btn-modo-uso-text .word-gap {
    height: 7px;
}

/* MOSTRAR SOLO EN MÓVILES/TABLETS EN ORIENTACIÓN HORIZONTAL (LANDSCAPE) */
@media screen and (orientation: landscape) and (max-height: 768px) {
    .btn-modo-uso {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   MODAL DE INSTRUCCIONES
   ========================================================================== */
.modo-uso-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modo-uso-modal.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modo-uso-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modo-uso-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 43, 157, 0.35);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.modo-uso-modal.is-active .modo-uso-card {
    transform: scale(1);
}

.modo-uso-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modo-uso-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modo-uso-title svg {
    width: 20px;
    height: 20px;
    stroke: #3b82f6;
    fill: none;
    stroke-width: 2;
}

.modo-uso-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modo-uso-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modo-uso-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modo-uso-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    transition: background 0.2s;
}

.modo-uso-step:hover {
    background: rgba(255, 255, 255, 0.08);
}

.modo-uso-step-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 43, 157, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modo-uso-step-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modo-uso-step-text h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.modo-uso-step-text p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.modo-uso-footer {
    margin-top: 18px;
    text-align: center;
}

.btn-modo-uso-entendido {
    width: 100%;
    padding: 11px;
    background: #002b9d;
    background: linear-gradient(135deg, #0037c2 0%, #002b9d 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 43, 157, 0.4);
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modo-uso-entendido:hover {
    background: linear-gradient(135deg, #0044ed 0%, #0037c2 100%);
}

.btn-modo-uso-entendido:active {
    transform: scale(0.98);
}
