/* =================================================================*
 *                           TABLA DE CONTENIDO                     *
 * =================================================================*/
/* HOMEPAGE ........................................................... */
/* AUTHENTICATION (LOGIN & REGISTER) .................................. */
/* DASHBOARD INICIO (USUARIO) ............................................ */
/* CONFIRMACION DE CORREO ............................................. */
/* SUBIR RANGO ......................................................... */
/* MIS RANGOS ......................................................... */
/* MIS REFERIDOS ........................................................ */
/* MI UPLINE ............................................................ */
/* ARBOL GRAFICO....................................................... */
/* LISTA USUARIOS ....................................................... */
/* MI PERFIL ............................................................ */
/* BILLETERA ........................................................... */
/* TRANSACCIONES ....................................................... */
/* RECARGAR ............................................................ */
/* RETIRAR ............................................................. */
/* SOPORTE ............................................................. */
/* NOTIFICACIONES ....................................................... */
/* ACTUALIZAR RANGOS .................................................... */
/* SORTEOS DE LA RED (USUARIO) ............................................ */
/* MIS BOLETOS (USUARIO) ................................................. */
/* TERMINOS Y CONDICIONES ............................................... */
/* POLITICA DE PRIVACIDAD ............................................... */
/* POLITICAS DE COOKIES ................................................. */
/* DESCARGO DE RESPONSABILIDAD ........................................... */

/* =================================================================*
 *                           HOMEPAGE                               *
 * =================================================================*/
/* Base y layout */
.redhome-body *,
.redhome-body *::before,
.redhome-body *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.redhome-body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.redhome-body h1,
.redhome-body h2,
.redhome-body h3,
.redhome-body h4,
.redhome-hero-title,
.redhome-sec-title,
.redhome-preview-title,
.redhome-sorteo-title,
.redhome-countdown-title,
.redhome-transfer-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.redhome-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.redhome-highlight {
    color: #ff6f00;
}

/* Botones universales proporcionales */
.redhome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
    box-sizing: border-box;
}

.redhome-btn:hover {
    transform: translateY(-2px);
}

.redhome-btn:active {
    transform: translateY(0);
}

.redhome-btn-primary {
    background: linear-gradient(135deg, #ff6f00 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.redhome-btn-primary:hover {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.38);
    color: #ffffff;
}

.redhome-btn-outline {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.redhome-btn-outline:hover {
    border-color: #ff6f00;
    color: #ff6f00;
    background: #fff7ed;
}

.redhome-btn-block {
    width: 100%;
    display: flex;
}

.redhome-btn-sm {
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.redhome-btn-lg {
    padding: 13px 28px;
    font-size: 1.02rem;
    border-radius: 12px;
}

/* Hero */
.redhome-hero-sec {
    padding: 145px 0 85px 0;
    background: radial-gradient(circle at 85% 15%, #fff7ed 0%, #ffffff 65%);
    border-bottom: 1px solid #f1f5f9;
}

.redhome-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: center;
}

.redhome-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.redhome-hero-badge svg {
    width: 16px;
    height: 16px;
}

.redhome-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.18;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.redhome-hero-desc {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 610px;
}

.redhome-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.redhome-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
    position: relative;
}

.redhome-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.redhome-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: redhomePulseDot 2s infinite;
}

@keyframes redhomePulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.redhome-preview-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 14px 0 12px 0;
}

.redhome-preview-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.redhome-pill-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.redhome-timer-box {
    background: linear-gradient(135deg, #033E8C 0%, #0056b3 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 24px -4px rgba(3, 62, 140, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.redhome-timer-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 600;
}

.redhome-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.redhome-timer-col {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
}

.redhome-timer-num {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ff9d42;
    display: block;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.redhome-timer-txt {
    font-size: 0.68rem;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

.redhome-preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #64748b;
}

.redhome-preview-row span:last-child {
    font-weight: 700;
    color: #0f172a;
}

/* Secciones comunes */
.redhome-section {
    padding: 85px 0;
}

.redhome-sec-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px auto;
}

.redhome-sec-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.redhome-sec-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.redhome-sec-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.65;
}

/* Cartelera de sorteos */
.redhome-sorteos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.redhome-sorteo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.redhome-sorteo-card:hover {
    transform: translateY(-6px);
    border-color: #fed7aa;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.1);
}

.redhome-sorteo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.redhome-badge-level {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
}

.redhome-badge-revancha {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
}

.redhome-sorteo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.redhome-card-countdown {
    background: linear-gradient(135deg, #033E8C 0%, #0056b3 100%);
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 18px;
    text-align: center;
    box-shadow: 0 6px 20px -4px rgba(3, 62, 140, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.redhome-countdown-title {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.redhome-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.redhome-cbox {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 2px;
}

.redhome-cnum {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff9d42;
    display: block;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.redhome-clbl {
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}

.redhome-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.redhome-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #64748b;
}

.redhome-detail-item span:last-child {
    font-weight: 700;
    color: #0f172a;
}

/* Estado Vacío de Sorteos */
.redhome-sorteos-empty {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 60px 32px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 10px 30px -5px rgba(3, 62, 140, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.redhome-sorteos-empty:hover {
    transform: translateY(-3px);
    border-color: #033E8C;
}

.redhome-sorteos-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #033E8C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -4px rgba(3, 62, 140, 0.15);
}

.redhome-sorteos-empty-icon svg {
    width: 38px;
    height: 38px;
}

.redhome-sorteos-empty-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.redhome-sorteos-empty-desc {
    font-size: 0.98rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 26px auto;
    line-height: 1.6;
}

/* Como funciona */
.redhome-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.redhome-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 24px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.redhome-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
    border-color: #fed7aa;
}

.redhome-step-num {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ff6f00;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid #fed7aa;
}

.redhome-step-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.redhome-step-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Activacion de rangos */
.redhome-rango-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 44px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.redhome-rango-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.redhome-breakdown-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
}

.redhome-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.redhome-breakdown-row:last-child {
    border-bottom: none;
}

.redhome-breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.94rem;
}

.redhome-breakdown-icon {
    width: 20px;
    height: 20px;
    color: #ff6f00;
    flex-shrink: 0;
}

.redhome-breakdown-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.redhome-rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.redhome-rule-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.redhome-rule-card:hover {
    transform: translateY(-2px);
    border-color: #fed7aa;
}

.redhome-rule-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.02rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.redhome-rule-head svg {
    width: 20px;
    height: 20px;
    color: #ff6f00;
    flex-shrink: 0;
}

.redhome-rule-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Transferencias entre usuarios (Sin distorsion y con animaciones) */
.redhome-transfer-sec {
    background: linear-gradient(135deg, #033E8C 0%, #084c9e 50%, #022e6b 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 52px 46px;
    box-shadow: 0 20px 48px -10px rgba(3, 62, 140, 0.35);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.redhome-transfer-sec::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.redhome-transfer-content {
    position: relative;
    z-index: 2;
}

.redhome-transfer-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 12px 0 14px 0;
    font-weight: 800;
    line-height: 1.25;
}

.redhome-transfer-text {
    font-size: 1.02rem;
    color: #e0f2fe;
    margin-bottom: 24px;
    line-height: 1.65;
}

.redhome-transfer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.redhome-transfer-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.redhome-transfer-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.redhome-transfer-badge.redhome-badge-orange {
    background: rgba(255, 152, 0, 0.25);
    border-color: rgba(255, 152, 0, 0.5);
    color: #ffb74d;
}

.redhome-flow-widget {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 28px 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.redhome-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.04);
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.redhome-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.redhome-flow-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9d42;
    transition: transform 0.2s ease;
}

.redhome-flow-node:hover .redhome-flow-avatar {
    transform: scale(1.08);
}

.redhome-flow-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
}

.redhome-flow-arrow {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.redhome-flow-tag-zero {
    font-size: 0.7rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.redhome-flow-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6f00, #10b981, #38bdf8);
    border-radius: 2px;
    position: relative;
    animation: redhomeBeam 2.5s infinite linear;
}

@keyframes redhomeBeam {
    0% { filter: brightness(1); opacity: 0.7; }
    50% { filter: brightness(1.4); opacity: 1; }
    100% { filter: brightness(1); opacity: 0.7; }
}

.redhome-flow-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.redhome-flow-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    color: #94a3b8;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.redhome-flow-row span:last-child {
    font-weight: 700;
    color: #ffffff;
}

/* Gestion de red */
.redhome-network-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.redhome-net-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.redhome-net-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redhome-net-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.redhome-net-item:hover {
    transform: translateX(4px);
    border-color: #fed7aa;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.redhome-net-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ff6f00;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redhome-net-icon svg {
    width: 22px;
    height: 22px;
}

.redhome-net-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.redhome-net-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Preguntas frecuentes */
.redhome-faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.redhome-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.redhome-faq-card:hover {
    border-color: #cbd5e1;
}

.redhome-faq-card.open {
    border-color: #ff6f00;
    box-shadow: 0 6px 20px -2px rgba(255, 111, 0, 0.12);
}

.redhome-faq-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 14px;
    font-family: inherit;
}

.redhome-faq-chevron {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.redhome-faq-card.open .redhome-faq-chevron {
    transform: rotate(180deg);
    color: #ff6f00;
}

.redhome-faq-content {
    display: none;
    padding: 0 24px 22px 24px;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 16px;
}

.redhome-faq-card.open .redhome-faq-content {
    display: block;
}

/* Contacto con Formulario y Canales */
.redhome-contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: flex-start;
}

.redhome-contact-channels {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.redhome-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.redhome-contact-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.redhome-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ff6f00;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redhome-contact-icon svg {
    width: 22px;
    height: 22px;
}

.redhome-contact-info-content h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.redhome-contact-info-content p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.redhome-contact-info-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ff6f00;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.redhome-contact-info-link:hover {
    gap: 8px;
}

.redhome-contact-info-email {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6f00;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: all;
    cursor: text;
}

.redhome-contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.redhome-form-head {
    margin-bottom: 22px;
}

.redhome-form-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.redhome-form-head p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redhome-form-group {
    margin-bottom: 16px;
}

.redhome-form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.redhome-form-input,
.redhome-form-select,
.redhome-form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.redhome-form-input:focus,
.redhome-form-select:focus,
.redhome-form-textarea:focus {
    outline: none;
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.15);
}

.redhome-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.redhome-form-note {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

/* Banner de Cierre */
.redhome-final-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
}

.redhome-final-banner h2 {
    font-size: 2.35rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.redhome-final-banner p {
    font-size: 1.02rem;
    color: #475569;
    max-width: 580px;
    margin: 0 auto 26px auto;
    line-height: 1.6;
}

/* Footer */
.redhome-footer-sec {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 54px 0 28px 0;
}

.redhome-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.redhome-footer-brand {
    display: flex;
    flex-direction: column;
}

.redhome-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.redhome-footer-logo {
    height: 38px;
    width: auto;
    display: block;
}

.redhome-footer-brand-text {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1;
}

.redhome-footer-brand-highlight {
    color: #ff6f00;
}

.redhome-footer-brand p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    max-width: 360px;
    line-height: 1.6;
}

.redhome-footer-heading {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.redhome-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.redhome-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.91rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 2px 0;
}

.redhome-footer-arrow {
    width: 14px;
    height: 14px;
    color: #ff6f00;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.redhome-footer-link:hover {
    color: #ff6f00;
    transform: translateX(4px);
}

.redhome-footer-link:hover .redhome-footer-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.redhome-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
}

.redhome-footer-bottom p {
    margin: 0;
}

/* ── Tablet grande (≤1100px) ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .redhome-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .redhome-hero-title {
        font-size: 2.5rem;
    }
    .redhome-preview-card {
        max-width: 560px;
    }
    .redhome-sorteos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .redhome-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .redhome-rango-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .redhome-transfer-sec {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 32px;
    }
    .redhome-contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .redhome-footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 28px;
    }
    .redhome-transfer-title {
        font-size: 1.85rem;
    }
}

/* ── Tablet (≤900px) ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .redhome-hero-badge span {
        white-space: normal;
        line-height: 1.4;
    }
    .redhome-rango-box {
        padding: 28px 22px;
    }
    .redhome-network-card {
        padding: 26px 18px;
    }
    .redhome-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .redhome-sec-title {
        font-size: 2rem;
    }
    .redhome-transfer-sec {
        padding: 34px 24px;
    }
}

/* ── Móvil grande (≤768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .redhome-nav-menu,
    .redhome-nav-actions {
        display: none;
    }
    .redhome-mobile-toggle {
        display: block;
    }
    .redhome-brand-text {
        font-size: 1.2rem;
    }
    .redhome-nav-logo {
        height: 36px;
    }

    /* Base */
    .redhome-section {
        padding: 60px 0;
    }

    /* Hero */
    .redhome-hero-sec {
        padding: 110px 0 56px 0;
    }
    .redhome-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .redhome-hero-title {
        font-size: 2rem;
    }
    .redhome-hero-desc {
        font-size: 0.97rem;
    }
    .redhome-hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .redhome-hero-ctas .redhome-btn {
        width: 100%;
        justify-content: center;
    }
    .redhome-preview-card {
        max-width: 100%;
    }

    /* Sorteos */
    .redhome-sorteos-grid {
        grid-template-columns: 1fr;
    }

    /* Cómo funciona */
    .redhome-steps-grid {
        grid-template-columns: 1fr;
    }

    /* Rangos */
    .redhome-rango-box {
        padding: 24px 18px;
    }
    .redhome-rango-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Transferencias */
    .redhome-transfer-sec {
        grid-template-columns: 1fr;
        padding: 30px 18px;
        border-radius: 20px;
        gap: 24px;
    }
    .redhome-transfer-title {
        font-size: 1.65rem;
    }
    .redhome-flow-diagram {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .redhome-flow-arrow {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 4px 0;
    }
    .redhome-flow-line {
        width: 64px;
        height: 2px;
    }
    .redhome-flow-node {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }
    .redhome-flow-widget {
        padding: 20px 16px;
    }

    /* Contacto */
    .redhome-contact-grid {
        grid-template-columns: 1fr;
    }
    .redhome-contact-form-card {
        padding: 24px 18px;
    }

    /* Sección final */
    .redhome-final-banner {
        padding: 36px 20px;
        border-radius: 20px;
    }
    .redhome-final-banner h2 {
        font-size: 1.75rem;
    }

    /* Footer */
    .redhome-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .redhome-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Sección headers */
    .redhome-sec-title {
        font-size: 1.75rem;
    }
    .redhome-sec-header {
        margin-bottom: 36px;
    }

    /* Tabla de rangos */
    .redhome-rangos-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .redhome-rangos-table-card table {
        min-width: 540px;
    }
}

/* ── Móvil pequeño (≤480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
    /* Base */
    .redhome-container {
        padding: 0 16px;
    }
    .redhome-brand-text {
        font-size: 1.12rem;
    }
    .redhome-nav-logo {
        height: 33px;
    }

    /* Hero */
    .redhome-hero-sec {
        padding: 96px 0 48px 0;
    }
    .redhome-hero-title {
        font-size: 1.7rem;
        letter-spacing: -0.01em;
    }
    .redhome-hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    /* Timers */
    .redhome-timer-num {
        font-size: 1.25rem;
    }
    .redhome-timer-grid {
        gap: 6px;
    }
    .redhome-timer-box {
        padding: 14px 12px;
    }

    /* Sorteo cards */
    .redhome-sorteo-card {
        padding: 20px 16px;
    }

    /* Steps */
    .redhome-step-card {
        padding: 22px 18px;
    }

    /* Sección headers */
    .redhome-sec-title {
        font-size: 1.55rem;
    }
    .redhome-sec-desc {
        font-size: 0.93rem;
    }

    /* Transfer */
    .redhome-transfer-sec {
        padding: 24px 14px;
        border-radius: 16px;
    }
    .redhome-transfer-title {
        font-size: 1.45rem;
    }
    .redhome-transfer-badges {
        gap: 7px;
    }
    .redhome-transfer-badge {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    /* Rangos */
    .redhome-rango-box {
        padding: 20px 14px;
    }
    .redhome-network-card {
        padding: 20px 14px;
    }

    /* Preview card */
    .redhome-preview-title {
        font-size: 1.15rem;
    }
    .redhome-preview-row {
        font-size: 0.82rem;
    }

    /* Botones */
    .redhome-btn-lg {
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    /* Final banner */
    .redhome-final-banner h2 {
        font-size: 1.45rem;
    }
    .redhome-final-banner p {
        font-size: 0.92rem;
    }

    /* FAQ */
    .redhome-faq-item {
        padding: 18px 16px;
    }

    /* Contact form */
    .redhome-contact-form-card {
        padding: 20px 14px;
    }

    /* Footer */
    .redhome-footer-logo-img {
        height: 32px;
    }
}



/* Micro-animaciones y Scroll Reveal */
.redhome-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.redhome-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.redhome-preview-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.redhome-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

/* =================================================================*
 *               AUTHENTICATION (LOGIN & REGISTER)                  *
 * =================================================================*/

.redautenticator-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url('../img/login.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.redautenticator-container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-width: 1150px;
    margin: 0 auto;
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.redautenticator-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 40px clamp(20px, 4vw, 60px);
    background: transparent;
    text-align: left;
    box-sizing: border-box;
    color: #0b1a30;
}

.redautenticator-left-content {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
}

.redautenticator-logo {
    max-width: clamp(160px, 20vh, 220px);
    width: 100%;
    margin: 0 auto clamp(20px, 3vh, 35px) auto;
    display: block;
    transition: transform 0.3s ease;
}

.redautenticator-logo:hover {
    transform: scale(1.02);
}

.redautenticator-title {
    font-size: clamp(1.8rem, 4vh, 2.6rem);
    font-weight: 800;
    color: #0b1a30;
    line-height: 1.25;
    margin: 0 0 clamp(12px, 2vh, 18px) 0;
}

.highlight-orange {
    color: #e67c00;
}

.redautenticator-subtitle {
    font-size: clamp(0.9rem, 2vh, 1.05rem);
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 clamp(24px, 4vh, 40px) 0;
    font-weight: 400;
}

.redautenticator-features {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 24px);
    width: 100%;
}

.redautenticator-feature-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.8vh, 16px);
    transition: transform 0.2s ease;
}

.redautenticator-feature-item:hover {
    transform: translateX(4px);
}

.feature-icon-wrapper {
    width: clamp(38px, 5vh, 44px);
    height: clamp(38px, 5vh, 44px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper svg {
    width: clamp(18px, 2.2vh, 22px);
    height: clamp(18px, 2.2vh, 22px);
}

.blue-icon {
    background-color: #eff6ff;
    color: #2563eb;
}

.orange-icon {
    background-color: #fff7ed;
    color: #ea580c;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feature-title {
    font-size: clamp(0.88rem, 1.8vh, 0.98rem);
    font-weight: 700;
    color: #0b1a30;
    margin: 0;
    line-height: 1.3;
}

.feature-desc {
    font-size: clamp(0.78rem, 1.6vh, 0.85rem);
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.redautenticator-right {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: transparent;
    box-sizing: border-box;
}

.redautenticator-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    padding: clamp(24px, 4vh, 40px);
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.1), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.redautenticator-tabs {
    display: flex;
    margin-bottom: clamp(20px, 3vh, 32px);
    border-bottom: 1px solid #e5e7eb;
}

.redautenticator-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 14px;
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.redautenticator-tab.active {
    color: #0b1a30;
    border-bottom-color: #2563eb;
}

.redautenticator-form-header {
    text-align: center;
    margin-bottom: clamp(20px, 2.8vh, 28px);
}

.redautenticator-form-title {
    font-size: clamp(1.35rem, 2.8vh, 1.65rem);
    font-weight: 800;
    color: #0b1a30;
    margin-bottom: 8px;
    margin-top: 0;
}

.redautenticator-form-subtitle {
    font-size: clamp(0.82rem, 1.7vh, 0.88rem);
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.redautenticator-rainbow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: clamp(12px, 1.8vh, 16px);
    background: #e67c00;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(230, 124, 0, 0.3);
    box-sizing: border-box;
    word-break: break-word;
}

.redautenticator-rainbow-btn:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 124, 0, 0.4);
}

.redautenticator-rainbow-btn:active {
    transform: translateY(0);
}

.redautenticator-rainbow-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redautenticator-rainbow-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.redautenticator-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: clamp(16px, 2.2vh, 24px) 0;
    color: #9ca3af;
    font-size: clamp(0.8rem, 1.6vh, 0.88rem);
}

.redautenticator-separator::before,
.redautenticator-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.redautenticator-separator:not(:empty)::before {
    margin-right: 12px;
}

.redautenticator-separator:not(:empty)::after {
    margin-left: 12px;
}

.redautenticator-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(12px, 1.8vh, 16px);
    background: #eff6ff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 700;
    color: #2563eb;
    box-sizing: border-box;
}

.redautenticator-email-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.redautenticator-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(20px, 3vh, 32px);
    color: #6b7280;
    font-size: clamp(0.75rem, 1.5vh, 0.82rem);
    text-align: center;
}

.redautenticator-form-footer svg {
    color: #9ca3af;
    flex-shrink: 0;
    width: clamp(14px, 1.6vh, 16px);
    height: clamp(14px, 1.6vh, 16px);
}

.redautenticator-register-footer {
    margin-top: clamp(16px, 2.5vh, 24px);
    padding-top: clamp(12px, 2vh, 18px);
    border-top: 1px solid #f3f4f6;
}

.redautenticator-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.redautenticator-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #2563eb;
}

.redautenticator-terms-text {
    font-size: clamp(0.75rem, 1.5vh, 0.82rem);
    color: #6b7280;
    line-height: 1.4;
}

.redautenticator-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.redautenticator-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.redautenticator-tab-content {
    display: none;
}

.redautenticator-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Modal Styles */
.redautenticator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 26, 48, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.redautenticator-modal.active {
    display: flex !important;
}

.redautenticator-modal-card {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: none;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    max-height: 90vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.redautenticator-modal-card::-webkit-scrollbar {
    display: none;
}

.redautenticator-modal.active .redautenticator-modal-card {
    transform: scale(1) translateY(0);
}

/* Split Modal Columns */
.redautenticator-modal-split {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.redautenticator-modal-sidebar {
    width: 38%;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.sidebar-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-logo {
    max-width: 120px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 800;
    color: #0b1a30;
    margin: 0 0 12px 0;
}

.sidebar-desc {
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.sidebar-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sidebar-info-card svg {
    color: #2563eb;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-card-text h4 {
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    font-weight: 700;
    color: #0b1a30;
    margin: 0;
}

.info-card-text p {
    font-size: clamp(0.7rem, 1.8vw, 0.75rem);
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.redautenticator-modal-main {
    width: 62%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.redautenticator-modal-main::-webkit-scrollbar {
    display: none;
}

/* Close Button Custom */
.redautenticator-modal-close-custom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
}

.redautenticator-modal-close-custom:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.05);
}

/* Steps Progress Bar */
.modal-steps-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.progress-step .step-number {
    width: clamp(24px, 5vw, 28px);
    height: clamp(24px, 5vw, 28px);
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step .step-label {
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    margin-top: -16px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}

.progress-step.active .step-label {
    color: #2563eb;
}

.progress-step.completed .step-number {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.progress-line.active {
    background: #2563eb;
}

/* Step content styling */
.redautenticator-modal-step {
    display: none;
}

.redautenticator-modal-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-icon-circle {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin: 0 auto 16px auto;
}

.step-main-title {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    font-weight: 800;
    color: #0b1a30;
    text-align: center;
    margin: 0 0 8px 0;
}

.step-main-subtitle {
    font-size: clamp(0.78rem, 2.5vw, 0.85rem);
    color: #6b7280;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Custom inputs inside modal */
.redautenticator-input-wrapper-icon {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.redautenticator-input-wrapper-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s ease;
}

.redautenticator-input-custom {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
    color: #0b1a30;
    font-family: inherit;
}

.redautenticator-input-custom:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.redautenticator-input-wrapper-icon:focus-within .input-icon {
    color: #2563eb;
}

.redautenticator-submit-btn-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.redautenticator-submit-btn-custom:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.redautenticator-submit-btn-custom:hover .btn-arrow {
    transform: translateX(2px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.modal-secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.modal-secure-footer svg {
    flex-shrink: 0;
}

/* Modals general scrolling and scrollbar hiding */
.redautenticator-modal-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.redautenticator-modal-body::-webkit-scrollbar {
    display: none;
}

.redautenticator-input,
.redautenticator-input select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    box-sizing: border-box;
    font-family: inherit;
}

.redautenticator-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.redautenticator-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.redautenticator-digit-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.redautenticator-digit-input {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1.1;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vh, 1.4rem);
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #0b1a30;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.redautenticator-digit-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.redautenticator-submit-btn {
    width: 100%;
    padding: 14px;
    background: #0b1a30;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redautenticator-submit-btn:hover {
    background: #1e3a8a;
    box-shadow: 0 4px 12px rgba(11, 26, 48, 0.2);
}

.redautenticator-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Tablet / Landscape phone (Ã¢â€°Â¤ 900px) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 900px) {
    .redautenticator-body {
        background-image: url('../img/loginmovil.webp');
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .redautenticator-container {
        flex-direction: column;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .redautenticator-left {
        display: none;
    }

    .redautenticator-right {
        flex: none;
        width: 100%;
        padding: 16px;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
    }

    .redautenticator-card {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 24px;
        border-radius: 20px;
        width: 100%;
        max-width: 440px;
    }

    .redautenticator-card::-webkit-scrollbar {
        display: none;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsive Split Modal (Ã¢â€°Â¤ 768px) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {
    .redautenticator-modal-card {
        flex-direction: column;
        max-width: 480px;
        width: 100%;
        max-height: 90vh;
        display: flex;
        overflow: hidden;
    }
    
    .redautenticator-modal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 20px;
        flex-shrink: 0;
    }
    
    .sidebar-logo {
        margin-bottom: 8px;
        max-width: 90px;
    }
    
    .sidebar-info-card {
        display: none;
    }
    
    .redautenticator-modal-main {
        width: 100%;
        padding: 24px 20px;
        flex: 1;
        overflow-y: auto;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Small Split Modal Adaptability (Ã¢â€°Â¤ 580px) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 580px) {
    .redautenticator-modal-sidebar {
        display: none;
    }
    
    .redautenticator-modal-card {
        max-height: 95vh;
        margin: 10px;
        border-radius: 16px;
    }
    
    .redautenticator-modal-main {
        padding: 50px 20px 20px 20px;
    }
    
    .redautenticator-digit-group {
        gap: 4px;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Small phones (Ã¢â€°Â¤ 480px) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 480px) {
    .redautenticator-right {
        padding: 12px;
    }

    .redautenticator-card {
        padding: 20px 16px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .redautenticator-tabs {
        margin-bottom: 20px;
    }

    .redautenticator-tab {
        padding-bottom: 10px;
        font-size: 0.9rem;
    }

    .redautenticator-form-header {
        margin-bottom: 20px;
    }

    .redautenticator-rainbow-btn,
    .redautenticator-email-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .redautenticator-separator {
        margin: 16px 0;
    }

    .redautenticator-form-footer {
        margin-top: 20px;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Height query for small screens/laptops to prevent scroll Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (min-width: 901px) and (max-height: 720px) {
    .redautenticator-logo {
        margin-bottom: 15px;
    }

    .redautenticator-title {
        margin-bottom: 10px;
    }

    .redautenticator-subtitle {
        margin-bottom: 20px;
    }

    .redautenticator-features {
        gap: 12px;
    }

    .redautenticator-card {
        padding: 24px;
    }

    .redautenticator-tabs {
        margin-bottom: 20px;
    }

    .redautenticator-form-header {
        margin-bottom: 18px;
    }

    .redautenticator-form-footer {
        margin-top: 18px;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Wallet Compat Info Badges Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.wallet-compat-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #64748b;
}

.wallet-compat-info svg {
    color: #10b981;
    flex-shrink: 0;
}

.wallet-compat-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.wallet-compat-badge.metamask {
    background: #fff3e6;
    color: #e2761b;
    border: 1px solid #fcd5a0;
}

.wallet-compat-badge.trust {
    background: #e8f0ff;
    color: #0538d1;
    border: 1px solid #b3c7ff;
}

.wallet-compat-badge.other {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Wallet Install Modal (Redesigned) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.wallet-install-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    padding: 32px;
    box-sizing: border-box;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.redautenticator-modal.active .wallet-install-card {
    transform: scale(1) translateY(0);
}

.wallet-install-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.wallet-install-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.wallet-install-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1a30;
    margin: 0 0 3px 0;
}

.wallet-install-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.wallet-install-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-install-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.wallet-install-item:hover {
    border-color: #c7d7fe;
    background: #f0f6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07);
}

.wallet-install-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-install-logo-wrap.metamask-bg {
    background: #fff3e6;
}

.wallet-install-logo-wrap.trust-bg {
    background: #e8f0ff;
}

.wallet-install-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wallet-install-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wallet-install-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0b1a30;
}

.wallet-install-desc {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-install-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.wallet-btn-primary {
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.wallet-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wallet-btn-secondary {
    padding: 6px 14px;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.wallet-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.wallet-install-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.75rem;
    line-height: 1.4;
}

.wallet-install-footer svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.wallet-install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.wallet-install-close:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Wallet modal responsive */
@media (max-width: 540px) {
    .wallet-install-card {
        padding: 22px 16px;
        border-radius: 18px;
        max-width: calc(100vw - 32px);
    }

    .wallet-install-desc {
        display: none;
    }

    .wallet-install-item {
        padding: 11px 12px;
    }

    .wallet-install-actions {
        flex-direction: row;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Register Modal Redesign Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.register-modal-card {
    max-width: 840px !important;
}

.register-modal-sidebar {
    background: linear-gradient(135deg, #0b1a30 0%, #162842 100%) !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.register-modal-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(230, 124, 0, 0.12) 0%, rgba(230, 124, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.register-sidebar-title {
    color: #ffffff !important;
    font-size: 1.45rem !important;
    font-weight: 800;
    margin-top: 15px !important;
}

.register-sidebar-desc {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
}

.register-sidebar-info {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.register-sidebar-info svg {
    color: #e67c00 !important; /* Orange of the logo */
}

.register-sidebar-info h4 {
    color: #ffffff !important;
    font-size: 0.88rem !important;
}

.register-sidebar-info p {
    color: #94a3b8 !important;
    font-size: 0.76rem !important;
}

.register-modal-main {
    background: #ffffff;
    padding: 40px 35px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.register-form-header {
    margin-bottom: 5px;
}

.register-main-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0b1a30;
    margin: 0 0 6px 0;
}

.register-main-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.register-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom inputs inside register modal */
.register-modal-main .redautenticator-input-wrapper-icon .input-icon {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.register-modal-main .redautenticator-input-wrapper-icon:focus-within .input-icon {
    color: #e67c00 !important; /* Orange focus color */
}

.register-input {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    color: #0b1a30 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.register-input:focus {
    border-color: #e67c00 !important; /* Orange border */
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(230, 124, 0, 0.1) !important;
}

.register-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 44px !important;
    cursor: pointer;
}

.register-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e67c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Submit Button */
.register-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #e67c00; /* Logo Orange */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(230, 124, 0, 0.15);
}

.register-submit-btn:hover {
    background: #cc6d00; /* Darker orange */
    box-shadow: 0 6px 18px rgba(230, 124, 0, 0.25);
    transform: translateY(-1px);
}

.register-submit-btn:active {
    transform: translateY(1px);
}

.register-submit-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-submit-btn .btn-arrow {
    transition: transform 0.2s ease;
}

.register-submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.register-secure-footer {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 10px;
}

/* Responsive Adaptability */
@media (max-width: 768px) {
    .register-modal-card {
        max-width: 460px !important;
        width: 100%;
        max-height: 90vh;
    }
    
    .register-modal-sidebar {
        display: none !important;
    }
    
    .register-modal-main {
        width: 100% !important;
        padding: 35px 20px !important;
    }
}


/* =================================================================*
 *                    DASHBOARD INICIO (USUARIO)                    *
 * =================================================================*/

.reddashini-container,
.reddashini-container * {
    box-sizing: border-box;
}

.reddashini-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* --- Hero Banner (Full Height, No Scroll, Responsive) --- */
.reddashini-hero {
    background: linear-gradient(135deg, #01214a 0%, #033E8C 55%, #0653ba 100%);
    border-radius: 24px;
    padding: 34px 38px;
    color: #ffffff;
    position: relative;
    overflow: visible !important;
    box-shadow: 0 14px 36px -6px rgba(3, 62, 140, 0.28);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.reddashini-hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.reddashini-hero-circle-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.22) 0%, rgba(255, 122, 0, 0) 70%);
    top: -80px;
    right: -40px;
    filter: blur(20px);
}

.reddashini-hero-circle-2 {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -60px;
    left: 15%;
    filter: blur(15px);
}

.reddashini-hero-content {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    width: 100%;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.reddashini-hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.reddashini-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd899;
    letter-spacing: 0.2px;
    max-width: 100%;
    box-sizing: border-box;
}

.reddashini-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    flex-shrink: 0;
}

.reddashini-hero-id {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.reddashini-hero-title {
    font-size: clamp(22px, 4.5vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.4px;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block !important;
}

.reddashini-hero-title-name {
    color: #ff9800;
    text-shadow: 0 2px 10px rgba(255, 152, 0, 0.35);
}

.reddashini-hero-subtitle {
    font-size: clamp(14px, 2.5vw, 15.5px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block !important;
}

.reddashini-hero-tags {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.reddashini-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

.reddashini-hero-tag-icon {
    width: 16px;
    height: 16px;
    color: #ff9800;
    flex-shrink: 0;
}

.reddashini-hero-actions {
    display: flex !important;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.reddashini-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff7a00 0%, #e65c00 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.38);
    transition: all 0.25s ease;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.reddashini-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 122, 0, 0.52);
    color: #ffffff;
}

.reddashini-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.reddashini-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- Referral / Invitation Card (Redesigned, No Scroll) --- */
.reddashini-invite-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 32px;
    border: 1.5px solid rgba(3, 62, 140, 0.14);
    box-shadow: 0 10px 30px rgba(3, 62, 140, 0.06);
    position: relative;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.reddashini-invite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, #ff7a00, #033E8C, #10b981);
}

.reddashini-invite-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.reddashini-invite-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 280px;
    min-width: 0;
}

.reddashini-invite-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.16) 0%, rgba(3, 62, 140, 0.12) 100%);
    border: 1px solid rgba(255, 122, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a00;
    flex-shrink: 0;
}

.reddashini-invite-title-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reddashini-invite-title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-invite-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-invite-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef6ff;
    color: #033E8C;
    border: 1.5px solid rgba(3, 62, 140, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.reddashini-invite-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    height: auto !important;
}

.reddashini-invite-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.reddashini-invite-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.reddashini-invite-input-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.reddashini-invite-input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #033E8C;
    pointer-events: none;
    z-index: 1;
}

.reddashini-invite-input {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 13px 16px 13px 44px;
    font-size: 13.5px;
    font-weight: 600;
    color: #033E8C;
    font-family: monospace;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.reddashini-invite-input:focus {
    border-color: #033E8C;
    box-shadow: 0 0 0 3px rgba(3, 62, 140, 0.14);
}

.reddashini-invite-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #033E8C;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(3, 62, 140, 0.25);
    white-space: nowrap;
    max-width: 100%;
    flex-shrink: 0;
    text-align: center;
    box-sizing: border-box;
}

.reddashini-invite-copy-btn:hover {
    background: #0558c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(3, 62, 140, 0.35);
}

.reddashini-invite-copy-btn.copied {
    background: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.reddashini-invite-note {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 4px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
    box-sizing: border-box;
}

.reddashini-invite-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ff7a00;
}

/* --- Stats Grid --- */
.reddashini-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 18px;
    width: 100%;
}

.reddashini-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(3, 62, 140, 0.09);
    box-shadow: 0 4px 18px rgba(3, 62, 140, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.reddashini-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(3, 62, 140, 0.09);
    border-color: rgba(3, 62, 140, 0.25);
}

.reddashini-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.reddashini-stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reddashini-stat-card--rank .reddashini-stat-icon-wrap {
    background: rgba(3, 62, 140, 0.1);
    color: #033E8C;
}

.reddashini-stat-card--referidos .reddashini-stat-icon-wrap {
    background: rgba(255, 122, 0, 0.12);
    color: #ff7a00;
}

.reddashini-stat-card--sorteos .reddashini-stat-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.reddashini-stat-card--boletos .reddashini-stat-icon-wrap {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.reddashini-stat-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.reddashini-stat-pill--blue {
    background: #e0f2fe;
    color: #033E8C;
}

.reddashini-stat-pill--orange {
    background: #fff7ed;
    color: #c2410c;
}

.reddashini-stat-pill--green {
    background: #ecfdf5;
    color: #047857;
}

.reddashini-stat-pill--purple {
    background: #eef2ff;
    color: #4338ca;
}

.reddashini-stat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reddashini-stat-val {
    font-size: clamp(20px, 3.5vw, 25px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-stat-lbl {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-stat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-stat-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.reddashini-stat-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #033E8C;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, color 0.2s ease;
    max-width: 100%;
}

.reddashini-stat-link:hover {
    gap: 7px;
    color: #ff7a00;
}

/* --- Section Headers --- */
.reddashini-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: -10px;
    flex-wrap: wrap;
    width: 100%;
}

.reddashini-section-title {
    font-size: clamp(18px, 4vw, 20px);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reddashini-section-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 4px 0 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* --- Quick Actions Hub --- */
.reddashini-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    width: 100%;
}

.reddashini-action-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(3, 62, 140, 0.08);
    box-shadow: 0 4px 14px rgba(3, 62, 140, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.reddashini-action-card:hover {
    transform: translateY(-2px);
    border-color: #033E8C;
    box-shadow: 0 8px 22px rgba(3, 62, 140, 0.09);
}

.reddashini-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.reddashini-action-card:hover .reddashini-action-icon {
    transform: scale(1.06);
}

.reddashini-action-icon--blue {
    background: #e0f2fe;
    color: #033E8C;
}

.reddashini-action-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.reddashini-action-icon--green {
    background: #ecfdf5;
    color: #059669;
}

.reddashini-action-icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.reddashini-action-content {
    flex: 1;
    min-width: 0;
}

.reddashini-action-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-action-card:hover .reddashini-action-title {
    color: #033E8C;
}

.reddashini-action-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-action-arrow {
    width: 18px;
    height: 18px;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.reddashini-action-card:hover .reddashini-action-arrow {
    transform: translateX(4px);
    color: #033E8C;
}

/* --- Tips & Community Banner --- */
.reddashini-tips-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border: 1px solid rgba(3, 62, 140, 0.15);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.reddashini-tips-left {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 820px;
    min-width: 0;
}

.reddashini-tips-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #033E8C;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(3, 62, 140, 0.2);
}

.reddashini-tips-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reddashini-tips-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #033E8C;
    margin: 0 0 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-tips-desc {
    font-size: 13px;
    color: #334155;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.reddashini-tips-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #033E8C;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(3, 62, 140, 0.18);
    max-width: 100%;
    flex-shrink: 0;
    text-align: center;
}

.reddashini-tips-btn:hover {
    background: #0558c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(3, 62, 140, 0.28);
    color: #ffffff;
}

/* --- Toast Feedback Container --- */
.reddashini-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.reddashini-toast.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .reddashini-tips-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .reddashini-tips-left {
        max-width: 100%;
    }

    .reddashini-tips-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .reddashboard-content {
        padding: 16px 12px !important;
    }

    .reddashini-container {
        padding: 0 0 36px 0;
        gap: 20px;
        width: 100%;
    }

    .reddashini-hero {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .reddashini-hero-title {
        font-size: clamp(20px, 5.5vw, 24px);
    }

    .reddashini-hero-subtitle {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .reddashini-hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .reddashini-hero-btn-primary,
    .reddashini-hero-btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 16px;
    }

    .reddashini-invite-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .reddashini-invite-header {
        margin-bottom: 14px;
        gap: 12px;
    }

    .reddashini-invite-title-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .reddashini-invite-box {
        padding: 14px 14px;
        gap: 10px;
    }

    .reddashini-invite-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .reddashini-invite-input-wrap {
        width: 100%;
        min-width: 0;
    }

    .reddashini-invite-copy-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
    }

    .reddashini-stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .reddashini-stat-card {
        padding: 18px 20px;
    }

    .reddashini-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reddashini-action-card {
        padding: 16px 18px;
    }

    .reddashini-tips-card {
        padding: 16px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .reddashini-tips-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .reddashini-tips-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .reddashboard-content {
        padding: 12px 8px !important;
    }

    .reddashini-container {
        gap: 14px;
    }

    .reddashini-hero {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .reddashini-hero-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reddashini-hero-badge {
        font-size: 11.5px;
        padding: 4px 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .reddashini-hero-id {
        align-self: flex-start;
        font-size: 12px;
        padding: 3px 8px;
    }

    .reddashini-hero-title {
        font-size: 20px;
    }

    .reddashini-hero-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .reddashini-hero-tags {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .reddashini-hero-tag {
        width: 100%;
        justify-content: flex-start;
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Invite Card Compact Mobile Styles */
    .reddashini-invite-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .reddashini-invite-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
    }

    .reddashini-invite-title-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .reddashini-invite-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .reddashini-invite-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .reddashini-invite-title {
        font-size: 15.5px;
        margin: 0 0 2px;
        line-height: 1.25;
    }

    .reddashini-invite-subtitle {
        font-size: 12px;
        line-height: 1.35;
    }

    .reddashini-invite-badge {
        font-size: 11px;
        padding: 3px 8px;
        flex-shrink: 0;
    }

    .reddashini-invite-box {
        padding: 12px 12px;
        gap: 8px;
        border-radius: 12px;
    }

    .reddashini-invite-field-label {
        font-size: 11.5px;
        gap: 6px;
    }

    .reddashini-invite-input-row {
        gap: 8px;
    }

    .reddashini-invite-input {
        font-size: 12px;
        padding: 10px 12px 10px 34px;
        border-radius: 10px;
    }

    .reddashini-invite-input-icon {
        left: 10px;
        width: 15px;
        height: 15px;
    }

    .reddashini-invite-copy-btn {
        font-size: 12.5px;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .reddashini-invite-note {
        font-size: 11px;
        margin-top: 6px;
        gap: 6px;
        line-height: 1.4;
    }

    .reddashini-action-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .reddashini-action-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .reddashini-action-title {
        font-size: 14px;
    }

    .reddashini-action-desc {
        font-size: 11.5px;
    }

    /* Tips Card Compact Mobile Styles */
    .reddashini-tips-card {
        padding: 14px 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .reddashini-tips-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .reddashini-tips-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .reddashini-tips-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .reddashini-tips-title {
        font-size: 13.5px;
        margin: 0 0 2px;
        line-height: 1.25;
    }

    .reddashini-tips-desc {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .reddashini-tips-btn {
        font-size: 12.5px;
        padding: 9px 14px;
        border-radius: 10px;
    }
}


/* =================================================================*
 *          DASHBOARD INICIO – OVERFLOW & MOBILE BUTTON FIXES       *
 * =================================================================*/

/* Prevent horizontal scroll on containers while leaving cards visible without clipping */
.reddashboard-layout,
.reddashboard-main-wrapper,
.reddashboard-content,
.reddashini-container {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.reddashini-hero,
.reddashini-invite-card {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
}

/* Mobile: stack buttons vertically so they never overflow borders */
@media (max-width: 640px) {
    .reddashini-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .reddashini-hero-btn-primary,
    .reddashini-hero-btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .reddashini-invite-input-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .reddashini-invite-input-wrap,
    .reddashini-invite-copy-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .reddashini-invite-copy-btn {
        justify-content: center !important;
    }
}




/* =================================================================*
 *                         CONFIRMACION DE CORREO                   *
 * =================================================================*/


.concorreo-body {
    min-height: 100vh;
    background: linear-gradient(150deg, #eef2ff 0%, #f8fafc 50%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    padding: 24px;
    color: #1e293b;
}

.concorreo-card {
    background: #ffffff;
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    padding: 52px 44px 44px;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: concorreo-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes concorreo-appear {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.concorreo-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 32px;
}

.concorreo-icon-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.concorreo-icon-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    opacity: 0.18;
}

.concorreo-icon-circle.concorreo-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 2px solid rgba(5, 150, 105, 0.2);
}
.concorreo-icon-circle.concorreo-success::before { background: #10b981; }

.concorreo-icon-circle.concorreo-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 2px solid rgba(220, 38, 38, 0.2);
}
.concorreo-icon-circle.concorreo-error::before { background: #ef4444; }

.concorreo-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #0f172a;
}

.concorreo-title.concorreo-title-success { color: #064e3b; }
.concorreo-title.concorreo-title-error   { color: #7f1d1d; }

.concorreo-message {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 36px;
}

.concorreo-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.concorreo-badge-success { background: #d1fae5; color: #065f46; }
.concorreo-badge-error   { background: #fee2e2; color: #991b1b; }

.concorreo-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0 0 32px;
}

.concorreo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.concorreo-btn-primary {
    background: linear-gradient(135deg, #ff6f00 0%, #e05a00 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.30);
}

.concorreo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 111, 0, 0.45);
}

.concorreo-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.concorreo-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.concorreo-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
    text-align: left;
}

.concorreo-info-block svg {
    flex-shrink: 0;
    color: #64748b;
}

.concorreo-info-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.concorreo-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 540px) {
    .concorreo-card { padding: 36px 24px 32px; }
    .concorreo-title { font-size: 22px; }
}


/* =================================================================*
 *                         SUBIR RANGO                              *
 * =================================================================*/

/* Page Header */
.redsubirran-page-header {
    margin-bottom: 24px;
}

.redsubirran-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redsubirran-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Rank Cards Row */
.redsubirran-ranks-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.redsubirran-rank-card {
    flex: 1;
}

.redsubirran-rank-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.redsubirran-rank-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.redsubirran-rank-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redsubirran-rank-icon svg {
    width: 26px;
    height: 26px;
}

.redsubirran-rank-icon--gray {
    background: #f5f5f5;
    color: #aaa;
}

.redsubirran-rank-icon--orange {
    background: #fff4e6;
    color: #e67c00;
}

.redsubirran-rank-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
    margin-bottom: 4px;
}

.redsubirran-rank-name--orange {
    color: #e67c00;
}

.redsubirran-rank-desc {
    font-size: 0.82rem;
    color: #aaa;
}

.redsubirran-rank-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.redsubirran-rank-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.redsubirran-rank-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.redsubirran-rank-meta-key {
    color: #888;
}

.redsubirran-rank-badge {
    background: #fff4e6;
    color: #e67c00;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.redsubirran-rank-date {
    color: #e67c00;
    font-weight: 600;
    font-size: 0.82rem;
}

/* Arrow between cards */
.redsubirran-rank-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    flex-shrink: 0;
    margin: 0 20px;
    color: #bbb;
}

.redsubirran-rank-arrow svg {
    width: 20px;
    height: 20px;
}

/* Main grid layout */
.redsubirran-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Payments Section */
.redsubirran-payments-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.redsubirran-payments-header {
    padding: 20px 24px 0 24px;
}

.redsubirran-payments-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.redsubirran-payments-count {
    color: #888;
    font-weight: 500;
}

.redsubirran-payments-list {
    padding: 8px 0;
}

/* Each payment row */
.redsubirran-payment-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.18s;
}

.redsubirran-payment-row:last-child {
    border-bottom: none;
}

.redsubirran-payment-row:hover {
    background: #fafafa;
}

.redsubirran-payment-user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e67c00;
}

.redsubirran-payment-user-icon--company {
    background: #f0f4ff;
    color: #4a6cf7;
}

.redsubirran-payment-user-icon svg {
    width: 18px;
    height: 18px;
}

.redsubirran-payment-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.01em;
}

.redsubirran-payment-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    min-width: 70px;
    text-align: right;
}

.redsubirran-btn-pay {
    background: #e67c00;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 22px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(230, 124, 0, 0.25);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redsubirran-btn-pay:hover {
    background: #d17000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(230, 124, 0, 0.35);
}

.redsubirran-btn-pay:active {
    transform: scale(0.97);
}

/* Summary Section */
.redsubirran-summary-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redsubirran-summary-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.redsubirran-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.redsubirran-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.redsubirran-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redsubirran-summary-key {
    font-size: 0.85rem;
    color: #888;
}

.redsubirran-summary-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.redsubirran-summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.redsubirran-summary-row--total {
    margin-top: 2px;
}

.redsubirran-summary-total {
    font-size: 1rem;
    font-weight: 800;
    color: #e67c00;
}

.redsubirran-btn-pay-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: #e67c00;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(230, 124, 0, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redsubirran-btn-pay-all svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.redsubirran-btn-pay-all:hover {
    background: #d17000;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(230, 124, 0, 0.4);
}

.redsubirran-btn-pay-all:active {
    transform: scale(0.98);
}

/* Security Card */
.redsubirran-security-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.redsubirran-security-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e67c00;
}

.redsubirran-security-icon svg {
    width: 18px;
    height: 18px;
}

.redsubirran-security-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.redsubirran-security-desc {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
    .redsubirran-grid {
        grid-template-columns: 1fr;
    }

    .redsubirran-ranks-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .redsubirran-rank-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .redsubirran-rank-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .redsubirran-page-title {
        font-size: 1.4rem;
    }

    .redsubirran-payment-row {
        padding: 12px 16px;
        gap: 10px;
    }

    .redsubirran-payments-header {
        padding: 16px 16px 0 16px;
    }

    .redsubirran-payment-name {
        font-size: 0.82rem;
    }

    .redsubirran-btn-pay {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}
.redsubirran-rank-icon--img {
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    padding: 0;
    overflow: hidden;
}

.redsubirran-rank-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

/* --- Empty payments state --- */
.redsubirran-empty-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 24px;
    color: #aaa;
    font-size: 0.9rem;
}

.redsubirran-empty-payments svg {
    width: 22px;
    height: 22px;
    color: #4caf50;
    flex-shrink: 0;
}

.redsubirran-maxrank-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner central */
.redsubirran-maxrank-banner {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    gap: 12px;
}

.redsubirran-maxrank-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 4px;
}

.redsubirran-maxrank-trophy {
    width: 110px;
    height: 110px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redsubirran-maxrank-trophy svg {
    width: 100%;
    height: 100%;
}

.redsubirran-maxrank-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.redsubirran-maxrank-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* Green notice bar */
.redsubirran-maxrank-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #16a34a;
    margin-top: 4px;
    width: 100%;
    max-width: 480px;
}

.redsubirran-maxrank-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #16a34a;
}

/* Stats row */
.redsubirran-maxrank-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.redsubirran-maxrank-stat {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.redsubirran-maxrank-stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redsubirran-maxrank-stat-icon svg {
    width: 20px;
    height: 20px;
}

.redsubirran-maxrank-stat-icon--orange {
    background: #fff4e6;
    color: #e67c00;
}

.redsubirran-maxrank-stat-icon--blue {
    background: #e8f0fe;
    color: #4a6cf7;
}

.redsubirran-maxrank-stat-icon--green {
    background: #f0fdf4;
    color: #16a34a;
}

.redsubirran-maxrank-stat-label {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.redsubirran-maxrank-stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.redsubirran-maxrank-stat-value--orange { color: #e67c00; }
.redsubirran-maxrank-stat-value--blue   { color: #4a6cf7; }
.redsubirran-maxrank-stat-value--green  { color: #16a34a; }

.redsubirran-maxrank-stat-sub {
    font-size: 0.78rem;
    color: #aaa;
    line-height: 1.4;
}

/* Keep growing card */
.redsubirran-maxrank-grow {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
}

.redsubirran-maxrank-grow-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    flex-shrink: 0;
}

.redsubirran-maxrank-grow-icon svg {
    width: 18px;
    height: 18px;
}

.redsubirran-maxrank-grow-text {
    flex: 1;
}

.redsubirran-maxrank-grow-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.redsubirran-maxrank-grow-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
}

.redsubirran-maxrank-grow-mountain {
    flex-shrink: 0;
    opacity: 0.75;
}

.redsubirran-mountain-svg {
    width: 130px;
    height: auto;
    display: block;
}

/* Responsive Ã¢â‚¬â€œ max rank */
@media (max-width: 900px) {
    .redsubirran-maxrank-stats {
        grid-template-columns: 1fr;
    }

    .redsubirran-maxrank-grow-mountain {
        display: none;
    }
}

@media (max-width: 480px) {
    .redsubirran-maxrank-banner {
        padding: 28px 16px 24px;
    }

    .redsubirran-maxrank-title {
        font-size: 1.2rem;
    }

    .redsubirran-maxrank-notice {
        font-size: 0.82rem;
        padding: 10px 14px;
    }
}

/* --- Completed slot styles --- */
.redsubirran-payment-row--completed {
    opacity: 0.88;
    background-color: rgba(46, 213, 115, 0.02);
    border-left: 3px solid #2ed573 !important;
}

.redsubirran-payment-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.redsubirran-payment-sub {
    font-size: 0.75rem;
    color: #8c8c9c;
}

.redsubirran-badge-paid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2ed573;
    background-color: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.15);
}

.redsubirran-badge-paid svg {
    width: 13px;
    height: 13px;
}


/* =================================================================*
 *                           MIS RANGOS                             *
 * =================================================================*/

/* Contenedor principal de Rangos */
.redmisrango-header {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.redmisrango-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redmisrango-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Grilla responsiva de 3 columnas */
.redmisrango-grid-vertical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Tarjetas Verticales - Estilo Base y Fallback */
.redmisrango-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eaeef6;
    border-bottom: 4px solid #64748b;
    border-radius: 20px;
    padding: clamp(16px, 3vw, 28px) clamp(14px, 2.5vw, 24px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redmisrango-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Brillo al pasar el cursor (efecto premium) */
.redmisrango-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
    transform: skewX(-25deg);
    transition: 0.8s;
}

.redmisrango-card:hover::after {
    left: 150%;
}

/* Sobreescritura de Bordes Inferiores por Rangos EspecÃƒÂ­ficos */
.redmisrango-card--plata { border-bottom-color: #10b981; }
.redmisrango-card--oro { border-bottom-color: #f59e0b; }
.redmisrango-card--diamante { border-bottom-color: #2563eb; }
.redmisrango-card--elite { border-bottom-color: #8b5cf6; }
.redmisrango-card--bronce { border-bottom-color: #b45309; }
.redmisrango-card--rubi { border-bottom-color: #ef4444; }
.redmisrango-card--esmeralda { border-bottom-color: #10b981; }
.redmisrango-card--zafiro { border-bottom-color: #0284c7; }
.redmisrango-card--platino { border-bottom-color: #0d9488; }

/* Badges superiores */
.redmisrango-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    align-self: center;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.redmisrango-badge--alcanzado {
    background: #e6fcf5;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.redmisrango-badge--actual {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.redmisrango-badge--siguiente {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 255, 0.15);
}

/* Iconos de Candado (Locked cards) */
.redmisrango-lock-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #64748b;
    opacity: 0.75;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.redmisrango-card:hover .redmisrango-lock-icon {
    transform: scale(1.1);
}

.redmisrango-lock-icon svg {
    width: 100%;
    height: 100%;
}

/* Medallas Circulares - Estilo Base y Fallback */
.redmisrango-medal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 16px 0;
    width: 100%;
}

.redmisrango-medal {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8fafc;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.redmisrango-card:hover .redmisrango-medal {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* PersonalizaciÃƒÂ³n de Medallas por Rango */
.redmisrango-card--plata .redmisrango-medal {
    background: #e8f7ee;
    color: #10b981;
    border: 2px dashed #10b981;
}

.redmisrango-card--oro .redmisrango-medal {
    background: #fff4e6;
    color: #e67c00;
    border: 2px dashed #f59e0b;
}

.redmisrango-card--diamante .redmisrango-medal {
    background: #eff6ff;
    color: #2563eb;
    border: 2px dashed #2563eb;
}

.redmisrango-card--elite .redmisrango-medal {
    background: #faf5ff;
    color: #8b5cf6;
    border: 2px dashed #8b5cf6;
}

.redmisrango-card--bronce .redmisrango-medal {
    background: #fffbeb;
    color: #b45309;
    border: 2px dashed #b45309;
}

.redmisrango-card--rubi .redmisrango-medal {
    background: #fdf2f2;
    color: #ef4444;
    border: 2px dashed #ef4444;
}

.redmisrango-card--esmeralda .redmisrango-medal {
    background: #ecfdf5;
    color: #10b981;
    border: 2px dashed #10b981;
}

.redmisrango-card--zafiro .redmisrango-medal {
    background: #f0f9ff;
    color: #0284c7;
    border: 2px dashed #0284c7;
}

.redmisrango-card--platino .redmisrango-medal {
    background: #f0fdfa;
    color: #0d9488;
    border: 2px dashed #0d9488;
}

.redmisrango-medal svg {
    width: 44px;
    height: 44px;
}

/* Imagen del rango ocupa casi todo el cÃƒÂ­rculo */
.redmisrango-medal-img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

/* Nombre de Rango */
.redmisrango-card-name {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 16px 0;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}

/* Listado de Informaciones de la Tarjeta */
.redmisrango-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.redmisrango-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.72rem, 1.3vw, 0.85rem);
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.redmisrango-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 60%;
}

.redmisrango-info-label svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    stroke-width: 2;
    flex-shrink: 0;
}

.redmisrango-info-value {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.redmisrango-info-value--green {
    color: #10b981;
}

.redmisrango-info-value--orange {
    color: #ea580c;
}

.redmisrango-info-value--bold {
    font-weight: 700;
    color: #0f172a;
}

/* Divisor en tarjeta */
.redmisrango-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 8px 0;
    width: 100%;
}

/* Total Fila 1 */
.redmisrango-info-item--total {
    padding-top: 4px;
    flex-wrap: nowrap;
    gap: 8px;
}

.redmisrango-total-label {
    font-size: clamp(0.7rem, 1.2vw, 0.82rem);
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.redmisrango-total-value {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
}

.redmisrango-total-value--blue {
    color: #2563eb;
}

.redmisrango-total-value--purple {
    color: #8b5cf6;
}

/* BotÃƒÂ³n Subir de Rango */
.redmisrango-btn-upgrade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 18px;
    background: #0052FF;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: softPulse 2.5s infinite ease-in-out;
}

.redmisrango-btn-upgrade:hover {
    background: #0043d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.35);
    animation: none;
}

.redmisrango-btn-upgrade:active {
    transform: scale(0.97);
}

.redmisrango-btn-upgrade svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0% {
        box-shadow: 0 4px 14px rgba(0, 82, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 22px rgba(0, 82, 255, 0.45);
    }
    100% {
        box-shadow: 0 4px 14px rgba(0, 82, 255, 0.2);
    }
}

/* Stagger de animaciÃƒÂ³n de entrada */
.redmisrango-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redmisrango-grid-vertical .redmisrango-card:nth-child(1) { animation-delay: 0.1s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(2) { animation-delay: 0.15s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(3) { animation-delay: 0.2s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(4) { animation-delay: 0.25s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(5) { animation-delay: 0.3s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(6) { animation-delay: 0.35s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(7) { animation-delay: 0.4s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(8) { animation-delay: 0.45s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(9) { animation-delay: 0.5s; }
.redmisrango-grid-vertical .redmisrango-card:nth-child(10) { animation-delay: 0.55s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .redmisrango-grid-vertical {
        grid-template-columns: repeat(2, 1fr);
    }

    .redmisrango-title {
        font-size: 1.6rem;
    }

    .redmisrango-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .redmisrango-grid-vertical {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .redmisrango-title {
        font-size: 1.4rem;
    }

    .redmisrango-medal {
        width: 80px;
        height: 80px;
    }

    .redmisrango-medal-img {
        width: 68px;
        height: 68px;
    }

    .redmisrango-medal svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .redmisrango-grid-vertical {
        gap: 12px;
    }

    .redmisrango-medal {
        width: 72px;
        height: 72px;
    }

    .redmisrango-medal-img {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
                                MIS REFERIDOS
   ========================================================================== */
.redreferido-header {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redreferido-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redreferido-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Stats Grid */
.redreferido-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.redreferido-stat-card {
    background: #ffffff;
    border: 1px solid #f0f3f8;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.redreferido-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.redreferido-stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redreferido-stat-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

/* Modifiers for Cards */
.redreferido-stat-card--directos {
    border-left: 4px solid #0052FF;
}
.redreferido-stat-card--directos .redreferido-stat-icon-wrapper {
    background: rgba(0, 82, 255, 0.08);
    color: #0052FF;
}

.redreferido-stat-card--conrango {
    border-left: 4px solid #16a34a;
}
.redreferido-stat-card--conrango .redreferido-stat-icon-wrapper {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}

.redreferido-stat-card--sinrango {
    border-left: 4px solid #ea580c;
}
.redreferido-stat-card--sinrango .redreferido-stat-icon-wrapper {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
}

.redreferido-stat-info {
    display: flex;
    flex-direction: column;
}

.redreferido-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
    margin-bottom: 4px;
}

.redreferido-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
}

.redreferido-stat-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* Controls */
.redreferido-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-end;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.redreferido-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.redreferido-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.redreferido-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px 12px 48px;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.redreferido-search-input:focus {
    border-color: #0052FF;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.08);
}

.redreferido-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redreferido-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redreferido-select-wrapper {
    position: relative;
    width: 220px;
}

.redreferido-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.redreferido-select:focus {
    border-color: #0052FF;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.08);
}

.redreferido-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #64748b;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Table Card */
.redreferido-table-card {
    background: #ffffff;
    border: 1px solid #f0f3f8;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.redreferido-table-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.redreferido-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.redreferido-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.redreferido-table th {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #f1f5f9;
}

.redreferido-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.redreferido-table tbody tr {
    transition: background-color 0.2s ease;
}

.redreferido-table tbody tr:hover {
    background-color: #fafbfc;
}

/* User Cell */
.redreferido-user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.redreferido-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    flex-shrink: 0;
}

.redreferido-avatar--blue {
    background: linear-gradient(135deg, #0052FF, #4a86ff);
}

.redreferido-avatar--green {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.redreferido-avatar--purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.redreferido-avatar--grey {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.redreferido-user-info {
    display: flex;
    flex-direction: column;
}

.redreferido-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.redreferido-user-id {
    font-size: 0.8rem;
    color: #64748b;
}

/* Date Cell */
.redreferido-date-cell {
    display: flex;
    flex-direction: column;
}

.redreferido-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.redreferido-time {
    font-size: 0.78rem;
    color: #64748b;
}

/* Ranks Badges */
.redreferido-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.redreferido-badge--plata {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.redreferido-badge--oro {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.redreferido-badge--diamante {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.redreferido-badge--sinrango {
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
}

/* Pagination */
.redreferido-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.redreferido-pagination-info {
    font-size: 0.88rem;
    color: #64748b;
}

.redreferido-pagination-controls {
    display: flex;
    gap: 8px;
}

.redreferido-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.redreferido-page-btn:hover:not(.disabled):not(.active) {
    border-color: #0052FF;
    color: #0052FF;
}

.redreferido-page-btn.active {
    background: #0052FF;
    border-color: #0052FF;
    color: #ffffff;
}

.redreferido-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.redreferido-page-btn svg {
    width: 16px;
    height: 16px;
}

/* Show items selector */
.redreferido-show-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #64748b;
}

.redreferido-select-show-wrapper {
    position: relative;
    width: 70px;
}

.redreferido-select-show {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 24px 6px 12px;
    font-size: 0.88rem;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.redreferido-select-show-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #64748b;
    pointer-events: none;
}

/* Delays for animations */
.redreferido-stats-grid .redreferido-stat-card:nth-child(1) { animation-delay: 0.05s; }
.redreferido-stats-grid .redreferido-stat-card:nth-child(2) { animation-delay: 0.1s; }
.redreferido-stats-grid .redreferido-stat-card:nth-child(3) { animation-delay: 0.15s; }

/* Responsive */
@media (max-width: 768px) {
    .redreferido-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .redreferido-filter-wrapper {
        width: 100%;
    }
    
    .redreferido-select-wrapper {
        width: 100%;
    }
    
    .redreferido-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }

    /* Tabla Responsiva en MÃƒÂ³viles (colapso a tarjetas) */
    .redreferido-table-card {
        padding: 16px;
    }

    .redreferido-table thead {
        display: none;
    }

    .redreferido-table tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #f1f5f9;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
        transition: all 0.2s ease;
    }

    .redreferido-table tbody tr:hover {
        background-color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    }

    .redreferido-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px dashed #f1f5f9;
    }

    .redreferido-table td:last-child {
        border-bottom: none;
    }

    /* Estructurar y etiquetar el contenido */
    .redreferido-table td:nth-of-type(1) {
        flex-direction: row;
        justify-content: flex-start;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
        margin-bottom: 6px;
    }

    .redreferido-table td:nth-of-type(2):before {
        content: "Fecha registro:";
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .redreferido-table td:nth-of-type(3):before {
        content: "Rango:";
        font-size: 0.75rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .redreferido-date-cell {
        align-items: flex-end;
    }
}

/* ==========================================================================
                                  MI UPLINE
   ========================================================================== */
.redupline-header {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redupline-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redupline-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Grid layout for Cards */
.redupline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.redupline-card {
    background: #ffffff;
    border: 1px solid #f0f3f8;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.redupline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.redupline-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.redupline-card:hover .redupline-avatar {
    transform: scale(1.08);
}

/* Avatar Colors (Light backgrounds with matching text color) */
.redupline-avatar--oro {
    background-color: rgba(230, 124, 0, 0.08);
    color: #e67c00;
}

.redupline-avatar--plata {
    background-color: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

.redupline-avatar--verde {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.redupline-avatar--bronce {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.redupline-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.redupline-id {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.redupline-rank {
    font-size: 0.82rem;
    font-weight: 700;
}

/* Rank Text Colors */
.redupline-rank--oro {
    color: #e67c00;
}

.redupline-rank--plata {
    color: #8b5cf6;
}

.redupline-rank--bronce {
    color: #ef4444;
}

/* Delays for cascading entrance animation */
.redupline-grid .redupline-card:nth-child(1) { animation-delay: 0.05s; }
.redupline-grid .redupline-card:nth-child(2) { animation-delay: 0.1s; }
.redupline-grid .redupline-card:nth-child(3) { animation-delay: 0.15s; }
.redupline-grid .redupline-card:nth-child(4) { animation-delay: 0.2s; }
.redupline-grid .redupline-card:nth-child(5) { animation-delay: 0.25s; }

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .redupline-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .redupline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .redupline-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .redupline-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .redupline-card {
        padding: 20px 12px;
    }
    
    .redupline-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

/* ==========================================================================
                               ARBOL GRAFICO
   ========================================================================== */
.redarbol-header {
    margin-bottom: 14px;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redarbol-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redarbol-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Panel de Controles Flotante - BÃƒÂºsqueda */
.redarbol-floating-search {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
    width: 300px;
    max-width: calc(100% - 180px); /* nunca llega hasta los botones de zoom */
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redarbol-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.redarbol-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.redarbol-input {
    background: #ffffff;
    border: none;
    padding: 8px 8px 8px 36px;
    font-size: 0.85rem;
    color: #1e293b;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.redarbol-btn-search {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redarbol-btn-search:hover {
    background: #1e293b;
}

/* Panel de Controles Flotante - NavegaciÃƒÂ³n (Zoom, etc.) */
.redarbol-floating-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    flex-direction: row; /* siempre horizontal */
    gap: 6px;
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redarbol-btn-control {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.redarbol-btn-control:hover {
    background: #f1f5f9;
    color: #0052FF;
}

.redarbol-btn-control svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Lienzo del ÃƒÂrbol */
.redarbol-canvas-wrapper {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    height: calc(100vh - 240px); /* siempre se adapta a la pantalla */
    min-height: 400px;
    max-height: 850px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.redarbol-canvas-wrapper:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Vista mÃƒÂ³vil / responsive */
@media (max-width: 768px) {
    /* Canvas con altura adaptable en lugar de fija */
    .redarbol-canvas-wrapper {
        height: calc(100vh - 220px);
        min-height: 350px;
        border-radius: 14px;
    }

    /* Buscador ocupa todo el ancho menos espacio para los botones verticales */
    .redarbol-floating-search {
        width: auto;
        left: 10px;
        right: 60px; /* deja espacio para la columna de botones a la derecha */
        top: 10px;
        max-width: none;
        padding: 4px;
    }

    .redarbol-input {
        font-size: 0.8rem;
        padding: 7px 6px 7px 32px;
    }

    /* Controles de zoom siempre a la derecha, en columna vertical (uno debajo del otro) */
    .redarbol-floating-controls {
        right: 10px;
        top: 10px;
        gap: 6px;
        padding: 4px;
        flex-direction: column;
    }

    .redarbol-btn-control {
        width: 34px;
        height: 34px;
    }

    .redarbol-btn-control svg {
        width: 16px;
        height: 16px;
    }

    .redarbol-title {
        font-size: clamp(1.2rem, 4vw, 1.75rem);
    }

    .redarbol-instruction {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .redarbol-canvas-wrapper {
        height: calc(100vh - 180px);
        min-height: 320px;
    }

    /* En pantallas muy pequeÃƒÂ±as, reducir aÃƒÂºn mÃƒÂ¡s los botones */
    .redarbol-btn-control {
        width: 30px;
        height: 30px;
    }

    .redarbol-btn-control svg {
        width: 14px;
        height: 14px;
    }

    /* Buscador ocupa todo el espacio disponible restando el ancho de la columna de botones */
    .redarbol-floating-search {
        right: 52px;
    }
}

.redarbol-svg {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.redarbol-svg:active {
    cursor: grabbing;
}

/* Estilos de los links / ramas */
.redarbol-link {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 2px;
}

/* Estilos de los nodos / tarjetas */
.redarbol-node-group {
    cursor: pointer;
}

.redarbol-node-bg {
    fill: #ffffff;
    stroke-width: 1.5px;
    rx: 16px;
    ry: 16px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.02));
}

.redarbol-node-group:hover .redarbol-node-bg {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.05));
    stroke-width: 2.5px;
}

/* Avatar del Nodo */
.redarbol-node-avatar-bg {
    stroke-width: 0;
    rx: 50%;
    ry: 50%;
}

.redarbol-node-avatar-text {
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Textos en el Nodo */
.redarbol-node-name {
    font-size: 13px;
    font-weight: 700;
    fill: #0f172a;
    dominant-baseline: hanging;
}

.redarbol-node-id {
    font-size: 11px;
    fill: #64748b;
    dominant-baseline: hanging;
}

.redarbol-node-badge-bg {
    rx: 8px;
    ry: 8px;
}

.redarbol-node-badge-text {
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Colores de Rangos por nÃƒÂºmero (rank-0 = Sin Rango, rank-1..rank-12 = rangos reales) */

/* rank-0 Ã¢â‚¬â€ Sin Rango */
.redarbol-node--rank-0 { stroke: #94a3b8; stroke-dasharray: 4 2; }
.redarbol-node-avatar-bg--rank-0 { fill: rgba(148, 163, 184, 0.10); }
.redarbol-node-avatar-text--rank-0 { fill: #94a3b8; }
.redarbol-node-badge-bg--rank-0 { fill: rgba(148, 163, 184, 0.10); }
.redarbol-node-badge-text--rank-0 { fill: #94a3b8; }

/* rank-1 Ã¢â‚¬â€ Bronce Inicial */
.redarbol-node--rank-1 { stroke: #b45309; }
.redarbol-node-avatar-bg--rank-1 { fill: rgba(180, 83, 9, 0.10); }
.redarbol-node-avatar-text--rank-1 { fill: #b45309; }
.redarbol-node-badge-bg--rank-1 { fill: rgba(180, 83, 9, 0.10); }
.redarbol-node-badge-text--rank-1 { fill: #b45309; }

/* rank-2 Ã¢â‚¬â€ Bronce Superior */
.redarbol-node--rank-2 { stroke: #d97706; }
.redarbol-node-avatar-bg--rank-2 { fill: rgba(217, 119, 6, 0.10); }
.redarbol-node-avatar-text--rank-2 { fill: #d97706; }
.redarbol-node-badge-bg--rank-2 { fill: rgba(217, 119, 6, 0.10); }
.redarbol-node-badge-text--rank-2 { fill: #d97706; }

/* rank-3 Ã¢â‚¬â€ Plata Inicial */
.redarbol-node--rank-3 { stroke: #64748b; }
.redarbol-node-avatar-bg--rank-3 { fill: rgba(100, 116, 139, 0.10); }
.redarbol-node-avatar-text--rank-3 { fill: #64748b; }
.redarbol-node-badge-bg--rank-3 { fill: rgba(100, 116, 139, 0.10); }
.redarbol-node-badge-text--rank-3 { fill: #64748b; }

/* rank-4 Ã¢â‚¬â€ Plata Superior */
.redarbol-node--rank-4 { stroke: #475569; }
.redarbol-node-avatar-bg--rank-4 { fill: rgba(71, 85, 105, 0.10); }
.redarbol-node-avatar-text--rank-4 { fill: #475569; }
.redarbol-node-badge-bg--rank-4 { fill: rgba(71, 85, 105, 0.10); }
.redarbol-node-badge-text--rank-4 { fill: #475569; }

/* rank-5 Ã¢â‚¬â€ Oro Inicial */
.redarbol-node--rank-5 { stroke: #ca8a04; }
.redarbol-node-avatar-bg--rank-5 { fill: rgba(202, 138, 4, 0.10); }
.redarbol-node-avatar-text--rank-5 { fill: #ca8a04; }
.redarbol-node-badge-bg--rank-5 { fill: rgba(202, 138, 4, 0.10); }
.redarbol-node-badge-text--rank-5 { fill: #ca8a04; }

/* rank-6 Ã¢â‚¬â€ Oro Superior */
.redarbol-node--rank-6 { stroke: #eab308; }
.redarbol-node-avatar-bg--rank-6 { fill: rgba(234, 179, 8, 0.10); }
.redarbol-node-avatar-text--rank-6 { fill: #eab308; }
.redarbol-node-badge-bg--rank-6 { fill: rgba(234, 179, 8, 0.10); }
.redarbol-node-badge-text--rank-6 { fill: #eab308; }

/* rank-7 Ã¢â‚¬â€ Esmeralda */
.redarbol-node--rank-7 { stroke: #16a34a; }
.redarbol-node-avatar-bg--rank-7 { fill: rgba(22, 163, 74, 0.10); }
.redarbol-node-avatar-text--rank-7 { fill: #16a34a; }
.redarbol-node-badge-bg--rank-7 { fill: rgba(22, 163, 74, 0.10); }
.redarbol-node-badge-text--rank-7 { fill: #16a34a; }

/* rank-8 Ã¢â‚¬â€ Zafiro */
.redarbol-node--rank-8 { stroke: #0891b2; }
.redarbol-node-avatar-bg--rank-8 { fill: rgba(8, 145, 178, 0.10); }
.redarbol-node-avatar-text--rank-8 { fill: #0891b2; }
.redarbol-node-badge-bg--rank-8 { fill: rgba(8, 145, 178, 0.10); }
.redarbol-node-badge-text--rank-8 { fill: #0891b2; }

/* rank-9 Ã¢â‚¬â€ ÃƒÂndigo */
.redarbol-node--rank-9 { stroke: #4f46e5; }
.redarbol-node-avatar-bg--rank-9 { fill: rgba(79, 70, 229, 0.10); }
.redarbol-node-avatar-text--rank-9 { fill: #4f46e5; }
.redarbol-node-badge-bg--rank-9 { fill: rgba(79, 70, 229, 0.10); }
.redarbol-node-badge-text--rank-9 { fill: #4f46e5; }

/* rank-10 Ã¢â‚¬â€ Amatista */
.redarbol-node--rank-10 { stroke: #7c3aed; }
.redarbol-node-avatar-bg--rank-10 { fill: rgba(124, 58, 237, 0.10); }
.redarbol-node-avatar-text--rank-10 { fill: #7c3aed; }
.redarbol-node-badge-bg--rank-10 { fill: rgba(124, 58, 237, 0.10); }
.redarbol-node-badge-text--rank-10 { fill: #7c3aed; }

/* rank-11 Ã¢â‚¬â€ RubÃƒÂ­ */
.redarbol-node--rank-11 { stroke: #db2777; }
.redarbol-node-avatar-bg--rank-11 { fill: rgba(219, 39, 119, 0.10); }
.redarbol-node-avatar-text--rank-11 { fill: #db2777; }
.redarbol-node-badge-bg--rank-11 { fill: rgba(219, 39, 119, 0.10); }
.redarbol-node-badge-text--rank-11 { fill: #db2777; }

/* rank-12 Ã¢â‚¬â€ Corona */
.redarbol-node--rank-12 { stroke: #dc2626; }
.redarbol-node-avatar-bg--rank-12 { fill: rgba(220, 38, 38, 0.10); }
.redarbol-node-avatar-text--rank-12 { fill: #dc2626; }
.redarbol-node-badge-bg--rank-12 { fill: rgba(220, 38, 38, 0.10); }
.redarbol-node-badge-text--rank-12 { fill: #dc2626; }


/* Corona del Root / LÃƒÂ­der */
.redarbol-crown {
    fill: #f59e0b;
    stroke: none;
}

/* BotÃƒÂ³n colapsable en los nodos */
.redarbol-node-toggle-bg {
    fill: #ffffff;
    stroke: #cbd5e1;
    stroke-width: 1px;
    cursor: pointer;
    rx: 50%;
    ry: 50%;
}

.redarbol-node-toggle-text {
    font-size: 12px;
    font-weight: bold;
    fill: #475569;
    text-anchor: middle;
    dominant-baseline: central;
    cursor: pointer;
}

.redarbol-node-group:hover .redarbol-node-toggle-bg {
    border-color: #0052FF;
    stroke: #0052FF;
}

/* InstrucciÃƒÂ³n de arrastre en la base */
.redarbol-instruction {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.redarbol-instruction svg {
    width: 16px;
    height: 16px;
    color: #38bdf8;
}

/* Vista mÃƒÂ³vil / responsive */
@media (max-width: 768px) {
    .redarbol-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .redarbol-search-group {
        flex-direction: column;
        width: 100%;
        min-width: 100%;
    }

    .redarbol-input-wrapper,
    .redarbol-select-wrapper,
    .redarbol-btn-search {
        width: 100%;
    }

    .redarbol-zoom-group {
        justify-content: center;
    }
}

/* =================================================================*
 *                           LISTA USUARIOS                         *
 * =================================================================*/

.redlisusuario-header {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease-out;
}

.redlisusuario-title {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redlisusuario-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redlisusuario-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.redlisusuario-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.redlisusuario-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

.redlisusuario-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.redlisusuario-input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.redlisusuario-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.redlisusuario-btn-group {
    display: flex;
    gap: 10px;
}

.redlisusuario-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redlisusuario-btn:hover {
    background-color: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.redlisusuario-btn:active {
    transform: translateY(0);
}

.redlisusuario-tree-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.redlisusuario-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.redlisusuario-tree-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.redlisusuario-tree-badge {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    background-color: #dbeafe;
    padding: 4px 12px;
    border-radius: 100px;
}

.redlisusuario-tree-container {
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

/* jsTree custom nodes styling */
.redlisusuario-node {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 6px;
    border-radius: 8px;
    vertical-align: middle;
    max-width: 100%;
    box-sizing: border-box;
}

.redlisusuario-node-info {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.redlisusuario-node-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.redlisusuario-node-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #ffffff;
    transition: all 0.25s ease;
}

.redlisusuario-node:hover .redlisusuario-node-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* Colores de Avatar y Badge para lista-usuarios por nÃƒÂºmero de rango */

/* rank-0 Ã¢â‚¬â€ Sin Rango */
.redlisusuario-node-avatar--rank-0 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.redlisusuario-node-badge--rank-0 { background-color: rgba(148, 163, 184, 0.08); color: #64748b; }

/* rank-1 Ã¢â‚¬â€ Bronce Inicial */
.redlisusuario-node-avatar--rank-1 { background: linear-gradient(135deg, #b45309, #78350f); }
.redlisusuario-node-badge--rank-1 { background-color: rgba(180, 83, 9, 0.08); color: #b45309; }

/* rank-2 Ã¢â‚¬â€ Bronce Superior */
.redlisusuario-node-avatar--rank-2 { background: linear-gradient(135deg, #d97706, #92400e); }
.redlisusuario-node-badge--rank-2 { background-color: rgba(217, 119, 6, 0.08); color: #d97706; }

/* rank-3 Ã¢â‚¬â€ Plata Inicial */
.redlisusuario-node-avatar--rank-3 { background: linear-gradient(135deg, #64748b, #475569); }
.redlisusuario-node-badge--rank-3 { background-color: rgba(100, 116, 139, 0.08); color: #64748b; }

/* rank-4 Ã¢â‚¬â€ Plata Superior */
.redlisusuario-node-avatar--rank-4 { background: linear-gradient(135deg, #475569, #334155); }
.redlisusuario-node-badge--rank-4 { background-color: rgba(71, 85, 105, 0.08); color: #475569; }

/* rank-5 Ã¢â‚¬â€ Oro Inicial */
.redlisusuario-node-avatar--rank-5 { background: linear-gradient(135deg, #ca8a04, #854d0e); }
.redlisusuario-node-badge--rank-5 { background-color: rgba(202, 138, 4, 0.08); color: #ca8a04; }

/* rank-6 Ã¢â‚¬â€ Oro Superior */
.redlisusuario-node-avatar--rank-6 { background: linear-gradient(135deg, #eab308, #a16207); }
.redlisusuario-node-badge--rank-6 { background-color: rgba(234, 179, 8, 0.08); color: #eab308; }

/* rank-7 Ã¢â‚¬â€ Esmeralda */
.redlisusuario-node-avatar--rank-7 { background: linear-gradient(135deg, #16a34a, #15803d); }
.redlisusuario-node-badge--rank-7 { background-color: rgba(22, 163, 74, 0.08); color: #16a34a; }

/* rank-8 Ã¢â‚¬â€ Zafiro */
.redlisusuario-node-avatar--rank-8 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.redlisusuario-node-badge--rank-8 { background-color: rgba(8, 145, 178, 0.08); color: #0891b2; }

/* rank-9 Ã¢â‚¬â€ ÃƒÂndigo */
.redlisusuario-node-avatar--rank-9 { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.redlisusuario-node-badge--rank-9 { background-color: rgba(79, 70, 229, 0.08); color: #4f46e5; }

/* rank-10 Ã¢â‚¬â€ Amatista */
.redlisusuario-node-avatar--rank-10 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.redlisusuario-node-badge--rank-10 { background-color: rgba(124, 58, 237, 0.08); color: #7c3aed; }

/* rank-11 Ã¢â‚¬â€ RubÃƒÂ­ */
.redlisusuario-node-avatar--rank-11 { background: linear-gradient(135deg, #db2777, #be185d); }
.redlisusuario-node-badge--rank-11 { background-color: rgba(219, 39, 119, 0.08); color: #db2777; }

/* rank-12 Ã¢â‚¬â€ Corona */
.redlisusuario-node-avatar--rank-12 { background: linear-gradient(135deg, #dc2626, #991b1b); }
.redlisusuario-node-badge--rank-12 { background-color: rgba(220, 38, 38, 0.08); color: #dc2626; }

.redlisusuario-node-name {
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.redlisusuario-node-you {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: none;
}

.redlisusuario-node-id {
    font-size: clamp(10px, 2vw, 12px);
    color: #64748b;
    white-space: nowrap;
}

.redlisusuario-node-badge {
    font-size: clamp(9px, 1.8vw, 11px);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.redlisusuario-instruction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
    animation: fadeInUp 0.6s ease-out;
}

/* jsTree Overrides & Connecting Lines */
.jstree-default .jstree-anchor {
    height: auto !important;
    line-height: normal !important;
    padding: 4px 6px !important;
    border-radius: 8px;
}

.jstree-default .jstree-hovered,
.jstree-default .jstree-wholerow-hovered {
    background-color: #f8fafc !important;
    box-shadow: none !important;
}

.jstree-default .jstree-clicked,
.jstree-default .jstree-wholerow-clicked {
    background-color: #f1f5f9 !important;
    box-shadow: none !important;
}

.jstree-default .jstree-node {
    margin-left: 20px !important;
    background-image: none !important;
    position: relative;
}

.jstree-default .jstree-node::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #cbd5e1;
}

.jstree-default .jstree-last::before {
    height: 18px;
}

.jstree-default .jstree-node::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 18px;
    width: 10px;
    border-top: 1px dashed #cbd5e1;
}

.jstree-default .jstree-icon.jstree-ocl {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .redlisusuario-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .redlisusuario-search-wrapper {
        max-width: 100%;
        min-width: 0;
    }

    .redlisusuario-btn-group {
        justify-content: space-between;
    }

    .redlisusuario-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
        font-size: 12px;
    }

    .redlisusuario-tree-container {
        padding: 10px 8px;
    }

    /* Nodo en dos lÃƒÂ­neas: avatar + nombre arriba / ID + badge abajo */
    .redlisusuario-node {
        gap: 6px;
        padding: 4px;
        align-items: flex-start;
    }

    .redlisusuario-node-avatar {
        width: 28px;
        height: 28px;
        font-size: 9px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    /* Agrupar nombre + ID + badge en columna */
    .redlisusuario-node-name,
    .redlisusuario-node-id,
    .redlisusuario-node-badge {
        display: inline;
    }

    .redlisusuario-node-name {
        font-size: 11px;
        max-width: 120px;
    }

    .redlisusuario-node-id {
        font-size: 10px;
    }

    .redlisusuario-node-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .jstree-default .jstree-node {
        margin-left: 14px !important;
    }

    .jstree-default .jstree-node::before {
        left: -7px;
    }

    .jstree-default .jstree-node::after {
        left: -7px;
        width: 7px;
    }

    .redlisusuario-title {
        font-size: 1.3rem;
    }

    .redlisusuario-card {
        padding: 14px;
    }
}

    .jstree-default .jstree-node::after {
        left: -7px;
        width: 7px;
    }


/* =================================================================*
 *                           MI PERFIL                              *
 * =================================================================*/

.redperfil-header {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease-out;
}

.redperfil-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redperfil-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Fila Superior (Perfil y Seguridad) */
.redperfil-row-top {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.redperfil-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 28px;
    animation: fadeInUp 0.6s ease-out;
}

.redperfil-card-info {
    flex: 1.3;
    min-width: 320px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.redperfil-card-security {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Avatar de Perfil */
.redperfil-avatar-wrapper {
    flex-shrink: 0;
}

.redperfil-avatar-circle {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.redperfil-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.redperfil-avatar-btn-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.redperfil-avatar-btn-edit:hover {
    background-color: #3b82f6;
    transform: scale(1.05);
}

.redperfil-avatar-btn-edit svg {
    width: 14px;
    height: 14px;
}

/* Iniciales de avatar (fallback sin imagen) */
.redperfil-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Datos de InformaciÃƒÂ³n Personal */
.redperfil-info-content {
    flex: 1;
}

.redperfil-user-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.redperfil-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.redperfil-badge-id {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
}

.redperfil-badge-rank {
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    background-color: rgba(245, 158, 11, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.redperfil-badge-rank--none {
    color: #94a3b8;
    background-color: rgba(148, 163, 184, 0.1);
    border: 1px dashed #cbd5e1;
}

/* Contenedor de dÃƒÂ­gitos para PIN y 2FA */
.pin-digits-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.pin-digit {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    color: #0F172A;
    background-color: #f8fafc;
}

.pin-digit:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    background-color: #ffffff;
}

.redperfil-email-section {
    margin-bottom: 18px;
}

.redperfil-email-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.redperfil-email-input-wrapper {
    display: flex;
    gap: 8px;
}

.redperfil-email-input {
    flex: 1;
    font-size: 13.5px;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
}

.redperfil-btn-edit-email {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-edit-email:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.redperfil-joined {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.redperfil-joined-icon {
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

/* Bloques de Seguridad */
.redperfil-security-block {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.redperfil-security-block--interactive {
    cursor: pointer;
    border-radius: 10px;
    padding: 6px;
    margin: -6px;
    transition: background-color 0.2s ease;
}

.redperfil-security-block--interactive:hover {
    background-color: #f8fafc;
}

.redperfil-security-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redperfil-security-icon-wrapper--shield {
    background-color: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.redperfil-security-icon-wrapper--lock {
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}

.redperfil-security-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.redperfil-security-info {
    flex: 1;
}

.redperfil-security-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.redperfil-security-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.redperfil-2fa-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.redperfil-2fa-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3.5px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.redperfil-2fa-badge--active {
    background-color: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.redperfil-2fa-badge--inactive {
    background-color: rgba(148, 163, 184, 0.08);
    color: #64748b;
}

.redperfil-2fa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.redperfil-2fa-badge--active .redperfil-2fa-dot {
    background-color: #22c55e;
}

.redperfil-2fa-badge--inactive .redperfil-2fa-dot {
    background-color: #94a3b8;
}

.redperfil-btn-activate {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background-color: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-activate:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

.redperfil-btn-deactivate {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    background-color: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-deactivate:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
}

.redperfil-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 18px 0;
}

.redperfil-security-arrow {
    align-self: center;
    color: #94a3b8;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.redperfil-security-block--interactive:hover .redperfil-security-arrow {
    transform: translateX(3px);
}

.redperfil-security-arrow svg {
    width: 18px;
    height: 18px;
}

/* Tarjeta de Sesiones Activas */
.redperfil-sessions-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 28px;
    animation: fadeInUp 0.6s ease-out 0.1s;
}

.redperfil-sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.redperfil-sessions-header-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.redperfil-sessions-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redperfil-sessions-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.redperfil-sessions-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.redperfil-sessions-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.redperfil-btn-logout-all {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    background-color: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-logout-all:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
}

/* Sesiones Activas Cards */
.redperfil-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.redperfil-session-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    gap: 16px;
}

.redperfil-session-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.redperfil-session-card--actual {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.06);
}

.redperfil-session-card--actual:hover {
    border-color: #2563eb;
    background: #ffffff;
}

.redperfil-session-card-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.redperfil-device-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.redperfil-device-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redperfil-device-icon--pc {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.redperfil-device-icon--mobile {
    background-color: rgba(168, 85, 247, 0.08);
    color: #a855f7;
}

.redperfil-device-icon svg {
    width: 20px;
    height: 20px;
}

.redperfil-device-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redperfil-device-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.redperfil-device-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 14.5px;
}

.redperfil-badge-active {
    font-size: 10.5px;
    font-weight: 700;
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.redperfil-device-type {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.redperfil-session-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2px;
}

.redperfil-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
}

.redperfil-meta-item svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.redperfil-session-card-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.redperfil-btn-logout-single {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #ef4444;
    background-color: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-logout-single:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

@media (max-width: 768px) {
    .redperfil-session-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .redperfil-session-card-action {
        justify-content: flex-end;
    }
}

.redperfil-sessions-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12.5px;
}

.redperfil-note-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.redperfil-security-status-row {
    margin-top: 8px;
}

/* Badge genÃƒÂ©rico de estado de seguridad (PIN) */
.redperfil-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3.5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
}

/* PIN activo */
.redperfil-security-badge--active {
    background-color: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.redperfil-security-badge--active .redperfil-2fa-dot {
    background-color: #22c55e;
}

/* Sin PIN configurado */
.redperfil-security-badge--pending {
    background-color: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.redperfil-security-badge--pending .redperfil-2fa-dot {
    background-color: #f59e0b;
}

.redperfil-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.redperfil-modal-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.redperfil-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* Ocultar scrollbar Ã¢â‚¬â€ Chrome/Edge/Safari */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE 10+ */
    padding: 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: auto;
    flex-shrink: 0;
}

.redperfil-modal::-webkit-scrollbar {
    display: none;
}

.redperfil-modal-overlay--open .redperfil-modal {
    transform: scale(1);
}

.redperfil-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: 0;
    font-size: 26px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.redperfil-modal-close:hover {
    color: #1e293b;
}

.redperfil-modal-header {
    margin-bottom: 20px;
}

.redperfil-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.redperfil-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.redperfil-modal-body {
    margin-bottom: 24px;
}

.redperfil-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.redperfil-btn-cancel {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-cancel:hover {
    background-color: #f1f5f9;
    color: #334155;
}

/* Modales de ConfirmaciÃƒÂ³n */
.redperfil-modal--confirm {
    max-width: 380px;
    padding: 24px;
}

.redperfil-modal-footer--confirm {
    display: flex;
    justify-content: center;
    width: 100%;
}

.redperfil-modal-footer--confirm button {
    flex: 1;
}

.redperfil-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.redperfil-confirm-icon--alert {
    background-color: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.redperfil-confirm-icon--danger {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.redperfil-confirm-icon svg {
    width: 28px;
    height: 28px;
}

.redperfil-btn-confirm-delete {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background-color: #ef4444;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-confirm-delete:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.redperfil-text-center {
    text-align: center;
}

/* =================================================================*
 *               MODAL 2FA Ã¢â‚¬â€ DISEÃƒâ€˜O REDISEÃƒâ€˜ADO                      *
 * =================================================================*/

/* Modal mÃƒÂ¡s ancho para el 2FA */
.redperfil-modal--2fa {
    max-width: 720px;
    overflow: hidden; /* el scroll lo hace el inner body, no el modal en sÃƒÂ­ */
}

/* Scroll interno sin barra visible */
.redperfil-modal--2fa .redperfil-2fa-body-grid {
    overflow-y: auto;
    max-height: calc(100vh - 260px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.redperfil-modal--2fa .redperfil-2fa-body-grid::-webkit-scrollbar {
    display: none;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Header: icono al lado del tÃƒÂ­tulo Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-2fa-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.redperfil-2fa-header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.10));
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redperfil-2fa-header-icon svg {
    width: 24px;
    height: 24px;
}

.redperfil-2fa-header-text .redperfil-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.redperfil-2fa-header-text .redperfil-modal-subtitle {
    font-size: 0.83rem;
    color: #64748b;
    margin: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Grid 2 columnas Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-2fa-body-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    align-items: start;
}

/* Divisor vertical */
.redperfil-2fa-col-divider {
    background-color: #f1f5f9;
    align-self: stretch;
    margin: 0 24px;
}

/* Columna izquierda */
.redperfil-2fa-col--left {
    padding-right: 8px;
}

/* Columna derecha */
.redperfil-2fa-col--right {
    padding-left: 8px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Cabecera de cada paso (nÃƒÂºmero + texto) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-2fa-step-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

/* NÃƒÂºmero de paso Ã¢â‚¬â€ naranja */
.redperfil-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FF6B00;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.redperfil-step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.redperfil-step-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Apps de autenticaciÃƒÂ³n Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-2fa-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.redperfil-app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.2s, background 0.2s;
}

.redperfil-app-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.redperfil-app-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.redperfil-app-logo--google { color: #4285F4; }
.redperfil-app-logo--ms     { color: #0078D4; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Wrapper del QR centrado Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02), 0 4px 18px rgba(15, 23, 42, 0.05);
    gap: 12px;
    margin-top: 8px;
}

.redperfil-qr-wrapper img {
    width: 175px;
    height: 175px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.redperfil-qr-wrapper img:hover {
    transform: scale(1.03);
}

.redperfil-qr-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #FF6B00;
    text-decoration: none;
    transition: opacity 0.2s;
}

.redperfil-qr-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ BotÃƒÂ³n verificar 2FA Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.redperfil-btn-verify-submit {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background-color: #FF6B00;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-verify-submit:hover {
    background-color: #e55f00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}


/* Contenido EspecÃƒÂ­fico Modal PIN */
.redperfil-form-group {
    margin-bottom: 18px;
}

.redperfil-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.redperfil-pin-wrapper {
    position: relative;
}

.redperfil-pin-input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 4px;
}

.redperfil-pin-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.redperfil-pin-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redperfil-eye-icon {
    width: 16px;
    height: 16px;
}

.redperfil-pin-requirements {
    margin-top: 18px;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 14px;
}

.redperfil-requirements-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.redperfil-requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.redperfil-req-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redperfil-req-check svg {
    width: 10px;
    height: 10px;
}

.redperfil-btn-pin-submit {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-pin-submit:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Responsividad de Perfil */
@media (max-width: 768px) {
    .redperfil-card-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .redperfil-email-input-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .redperfil-btn-edit-email {
        justify-content: center;
        width: 100%;
    }

    .redperfil-badges {
        justify-content: center;
    }

    .redperfil-joined {
        justify-content: center;
    }
}

/* =================================================================*
 *                           BILLETERA                              *
 * =================================================================*/
.redbilletera-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #002855;
    box-sizing: border-box;
}

.redbilletera-header-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redbilletera-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redbilletera-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Balance Card */
.redbilletera-balance-card {
    background: #ffffff;
    border-radius: 16px;
    border-left: 5px solid #ff7a00;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.redbilletera-balance-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.redbilletera-balance-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redbilletera-balance-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redbilletera-balance-value {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: #002855;
    word-break: break-word;
}

.redbilletera-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.redbilletera-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16a34a;
}

/* Actions Grid */
.redbilletera-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .redbilletera-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .redbilletera-title {
        font-size: 20px;
    }
    .redbilletera-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .redbilletera-action-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        gap: 10px;
    }
    .redbilletera-action-info {
        align-items: center;
    }
    .redbilletera-action-title {
        font-size: 13px;
    }
    .redbilletera-action-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .redbilletera-balance-card {
        padding: 20px;
    }
    .redbilletera-balance-main {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

.redbilletera-action-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redbilletera-action-card:hover {
    border-color: rgba(255, 122, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.05);
    transform: translateY(-2px);
}

.redbilletera-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redbilletera-action-icon--recargar {
    background: #fff7ed;
    color: #ff7a00;
}

.redbilletera-action-icon--retirar {
    background: #eff6ff;
    color: #3b82f6;
}

.redbilletera-action-icon--transferir {
    background: #f0fdf4;
    color: #22c55e;
}

.redbilletera-action-icon--qr {
    background: #faf5ff;
    color: #a855f7;
}

.redbilletera-action-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redbilletera-action-title {
    font-size: 14px;
    font-weight: 700;
    color: #002855;
}

.redbilletera-action-subtitle {
    font-size: 11px;
    color: #94a3b8;
}

/* Transactions Card */
.redbilletera-transactions-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.redbilletera-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redbilletera-transactions-title {
    font-size: 16px;
    font-weight: 700;
    color: #002855;
    margin: 0;
}

.redbilletera-btn-view-all {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redbilletera-btn-view-all:hover {
    background: #f1f5f9;
    color: #002855;
}

.redbilletera-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redbilletera-transaction-row {
    background: #ffffff;
    border: 1px solid #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redbilletera-transaction-row:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.redbilletera-tx-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.redbilletera-tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.redbilletera-transaction-row:hover .redbilletera-tx-icon {
    transform: scale(1.08);
}

.redbilletera-tx-icon--recarga {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.redbilletera-tx-icon--retiro {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.redbilletera-tx-icon--pago-rango {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.redbilletera-tx-icon--transferencia {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.redbilletera-tx-icon--sorteo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.redbilletera-tx-icon--bono {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0d9488;
}

.redbilletera-tx-icon--comision {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
}

.redbilletera-tx-icon--otro {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.redbilletera-tx-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redbilletera-tx-name {
    font-size: 14px;
    font-weight: 600;
    color: #002855;
}

.redbilletera-tx-time {
    font-size: 12px;
    color: #64748b;
}

.redbilletera-tx-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 576px) {
    .redbilletera-transaction-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .redbilletera-tx-right {
        width: 100%;
        justify-content: space-between;
    }
}

.redbilletera-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.redbilletera-badge--completado {
    background: #e6f4ea;
    color: #137333;
}

.redbilletera-badge--pendiente {
    background: #fef7e0;
    color: #b06000;
}

.redbilletera-badge--cancelado {
    background: #fce8e6;
    color: #c5221f;
}

.redbilletera-tx-amount {
    font-size: 15px;
    font-weight: 700;
}

.redbilletera-tx-amount--positivo {
    color: #137333;
}

.redbilletera-tx-amount--negativo {
    color: #c5221f;
}

/* Modal Detalle TransacciÃƒÂ³n */
.redbilletera-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.redbilletera-modal-overlay.show {
    display: flex;
}

.redbilletera-modal {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: redbilleteraModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes redbilleteraModalIn {
    from { transform: scale(0.92) translateY(16px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.redbilletera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.redbilletera-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #002855;
    margin: 0;
}

.redbilletera-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.redbilletera-modal-close:hover {
    color: #002855;
}

.redbilletera-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    /* Hide scrollbar cross-browser */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE 10+ */
}
.redbilletera-modal-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Modal Summary */
.redbilletera-modal-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    flex-wrap: wrap;
}

.redbilletera-modal-icon-container {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.redbilletera-modal-icon-container--recarga {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.redbilletera-modal-icon-container--retiro {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.redbilletera-modal-icon-container--pago_rango {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.redbilletera-modal-icon-container--transferencia {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.redbilletera-modal-icon-container--sorteo {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.redbilletera-modal-icon-container--bono {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0d9488;
}

.redbilletera-modal-icon-container--comision {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0284c7;
}

.redbilletera-modal-icon-container--otro {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
}

.redbilletera-modal-main-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.redbilletera-modal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.redbilletera-modal-tx-name {
    font-size: 15px;
    font-weight: 700;
    color: #002855;
    line-height: 1.2;
}

.redbilletera-modal-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.redbilletera-modal-badge--completado {
    background: #dcfce7;
    color: #16a34a;
}

.redbilletera-modal-badge--pendiente {
    background: #fef9c3;
    color: #ca8a04;
}

.redbilletera-modal-badge--cancelado {
    background: #fee2e2;
    color: #dc2626;
}

.redbilletera-modal-tx-time {
    font-size: 12px;
    color: #64748b;
}

.redbilletera-modal-amount {
    font-size: 20px;
    font-weight: 800;
    margin-left: auto;
    flex-shrink: 0;
}

.redbilletera-modal-amount--positivo {
    color: #16a34a;
}

.redbilletera-modal-amount--negativo {
    color: #dc2626;
}

/* Modal Details List */
.redbilletera-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    overflow: visible;
    padding: 4px 0;
}

.redbilletera-modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0 0 10px 0;
}

.redbilletera-modal-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    gap: 12px;
    flex-wrap: wrap;
}

.redbilletera-modal-detail-item:last-child {
    border-bottom: none;
}

.redbilletera-modal-detail-item:nth-child(odd) {
    background: #fafbfc;
}

.redbilletera-modal-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.redbilletera-modal-detail-value {
    font-weight: 700;
    color: #002855;
    text-align: right;
    word-break: break-all;
}

.redbilletera-modal-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.redbilletera-modal-copy-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 4px 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.redbilletera-modal-copy-btn:hover {
    background: #e2e8f0;
    color: #002855;
}

.redbilletera-modal-status-text {
    font-weight: 700;
    font-size: 13px;
}

.redbilletera-modal-status-text--completado {
    color: #16a34a;
}

.redbilletera-modal-status-text--pendiente {
    color: #ca8a04;
}

.redbilletera-modal-status-text--cancelado {
    color: #dc2626;
}

/* Description box */
.redbilletera-modal-description-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redbilletera-modal-description-text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    word-break: break-word;
}

.redbilletera-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    background: #fafbfc;
}

.redbilletera-modal-download-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff7a00 0%, #ff9500 100%);
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
    letter-spacing: 0.2px;
}

.redbilletera-modal-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.45);
    background: linear-gradient(135deg, #e06b00 0%, #ff8500 100%);
}

.redbilletera-modal-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.redbilletera-modal--qr {
    max-width: 440px;
}

.redbilletera-qr-wallet-card {
    background: #fff5eb;
    border: 1px solid #ffd8b3;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    text-align: left;
}

.redbilletera-qr-code-wrapper {
    border: 2px solid #ff7a00;
    border-radius: 20px;
    padding: 16px;
    display: inline-block;
    background: #fff;
    margin-bottom: 16px;
    position: relative;
}

.redbilletera-transfer-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.redbilletera-transfer-tab {
    flex: 1;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.redbilletera-transfer-tab.active {
    border-bottom-color: #ff7a00;
    color: #ff7a00;
}

.redbilletera-camera-viewport {
    width: 100%;
    height: 220px;
    background: #0f172a;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
}

.redbilletera-camera-corners {
    position: absolute;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 2;
}

.redbilletera-camera-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
}

.redbilletera-camera-corner--tl {
    top: 0;
    left: 0;
    border-top-color: #ff7a00;
    border-left-color: #ff7a00;
    border-top-left-radius: 8px;
}

.redbilletera-camera-corner--tr {
    top: 0;
    right: 0;
    border-top-color: #ff7a00;
    border-right-color: #ff7a00;
    border-top-right-radius: 8px;
}

.redbilletera-camera-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom-color: #ff7a00;
    border-left-color: #ff7a00;
    border-bottom-left-radius: 8px;
}

.redbilletera-camera-corner--br {
    bottom: 0;
    right: 0;
    border-bottom-color: #ff7a00;
    border-right-color: #ff7a00;
    border-bottom-right-radius: 8px;
}

.redbilletera-camera-laser {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: #ff7a00;
    box-shadow: 0 0 8px #ff7a00;
    animation: redbilleteraLaserScan 2.5s ease-in-out infinite;
}

@keyframes redbilleteraLaserScan {
    0% { top: 30px; }
    50% { top: 170px; }
    100% { top: 30px; }
}

.redbilletera-btn-activate-camera {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 130px;
    z-index: 10;
    transition: all 0.2s ease;
}

.redbilletera-btn-activate-camera:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.redbilletera-filter-btn {
    transition: all 0.2s ease;
}

.redbilletera-filter-btn:hover {
    opacity: 0.9;
}

/* Transfer Modal Responsive Forms */
.redbilletera-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
}

.redbilletera-form-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redbilletera-recipient-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.redbilletera-recipient-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.redbilletera-recipient-avatar {
    background: #ebf3ff;
    color: #0072ce;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.redbilletera-recipient-details {
    min-width: 0;
    flex: 1;
}

.redbilletera-recipient-name {
    font-size: 13px;
    font-weight: 700;
    color: #002855;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redbilletera-recipient-wallet {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redbilletera-status-pill {
    background: #e6f4ea;
    color: #137333;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.redbilletera-amount-input-wrapper {
    position: relative;
    width: 100%;
}

.redbilletera-amount-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.redbilletera-amount-input {
    width: 100%;
    padding: 12px 55px 12px 30px;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #002855;
    outline: none;
    font-weight: 700;
    transition: border-color 0.2s;
}

.redbilletera-amount-input:focus {
    border-color: #ff7a00;
}

.redbilletera-amount-currency {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: #002855;
}

.redbilletera-amount-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 11px;
    gap: 8px;
}

.redbilletera-balance-helper {
    color: #64748b;
}

.redbilletera-btn-max {
    background: none;
    border: none;
    font-weight: 700;
    color: #ff7a00;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.redbilletera-btn-max:hover {
    color: #e06b00;
}

.redbilletera-desc-wrapper {
    position: relative;
    width: 100%;
}

.redbilletera-desc-textarea {
    width: 100%;
    height: 80px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #002855;
    outline: none;
    resize: none;
    font-family: inherit;
    font-weight: 600;
    transition: border-color 0.2s;
}

.redbilletera-desc-textarea:focus {
    border-color: #ff7a00;
}

.redbilletera-desc-counter {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.redbilletera-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.redbilletera-modal-btn {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-sizing: border-box;
}

.redbilletera-modal-btn--primary {
    background: #ff7a00;
    border: 1.5px solid #ff7a00;
    color: #fff;
}

.redbilletera-modal-btn--primary:hover {
    background: #e06b00;
    border-color: #e06b00;
}

.redbilletera-modal-btn--secondary {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
}

.redbilletera-modal-btn--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.redbilletera-paste-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.redbilletera-input-wallet {
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #002855;
    outline: none;
    font-weight: 600;
    transition: border-color 0.2s;
}

.redbilletera-input-wallet:focus {
    border-color: #ff7a00;
}

.redbilletera-paste-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.redbilletera-btn-pegar, .redbilletera-btn-buscar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.redbilletera-btn-pegar {
    background: #fff;
    border: 1.5px solid #ff7a00;
    color: #ff7a00;
}

.redbilletera-btn-pegar:hover {
    background: rgba(255, 122, 0, 0.05);
}

.redbilletera-btn-buscar {
    background: #ff7a00;
    border: 1.5px solid #ff7a00;
    color: #fff;
}

.redbilletera-btn-buscar:hover {
    background: #e06b00;
    border-color: #e06b00;
}

.redbilletera-camera-corners {
    position: absolute;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 2;
}

.redbilletera-camera-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
}

.redbilletera-camera-corner--tl {
    top: 0;
    left: 0;
    border-top-color: #ff7a00;
    border-left-color: #ff7a00;
    border-top-left-radius: 8px;
}

.redbilletera-camera-corner--tr {
    top: 0;
    right: 0;
    border-top-color: #ff7a00;
    border-right-color: #ff7a00;
    border-top-right-radius: 8px;
}

.redbilletera-camera-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom-color: #ff7a00;
    border-left-color: #ff7a00;
    border-bottom-left-radius: 8px;
}

.redbilletera-camera-corner--br {
    bottom: 0;
    right: 0;
    border-bottom-color: #ff7a00;
    border-right-color: #ff7a00;
    border-bottom-right-radius: 8px;
}

.redbilletera-camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 16px;
}

@media (max-width: 600px) {
    /* Modal de detalle transacciÃƒÂ³n: responsive */
    .redbilletera-modal-overlay {
        align-items: center;
        padding: 16px;
    }
    .redbilletera-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
        max-height: calc(100vh - 32px);
        animation: redbilleteraModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .redbilletera-modal-summary {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }
    .redbilletera-modal-summary > .redbilletera-modal-icon-container {
        align-self: center;
    }
    .redbilletera-modal-main-info {
        align-items: center;
    }
    .redbilletera-modal-title-row {
        justify-content: center;
    }
    .redbilletera-modal-amount {
        margin: 0 auto;
        font-size: 22px;
        text-align: center;
    }
    .redbilletera-modal-body {
        padding: 16px;
        gap: 14px;
    }
    .redbilletera-modal-footer {
        padding: 16px;
    }
    .redbilletera-modal-header {
        padding: 16px;
    }
    .redbilletera-modal-detail-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 10px 14px;
        text-align: center;
    }
    .redbilletera-modal-detail-label {
        justify-content: center;
    }
    .redbilletera-modal-detail-value {
        text-align: center;
    }
    .redbilletera-modal-copy-wrapper {
        justify-content: center;
    }
    .redbilletera-modal-description-box {
        text-align: center;
        align-items: center;
    }
}

/* Modal de transferencia: casi full-screen en mÃƒÂ³vil */
@media (max-width: 600px) {
    #transferModal.redbilletera-modal-overlay {
        align-items: center;
        padding: 16px;
    }
    #transferModal .redbilletera-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
        max-height: calc(100vh - 32px);
        animation: redbilleteraModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    /* ÃƒÂrea de cÃƒÂ¡mara QR mÃƒÂ¡s grande en mÃƒÂ³vil */
    #transferModal .redbilletera-camera-viewport {
        height: 300px;
    }
    #transferModal .redbilletera-camera-corners {
        width: 200px;
        height: 200px;
    }
    #transferModal .redbilletera-camera-laser {
        width: 200px;
    }
    @keyframes redbilleteraLaserScan {
        0%  { top: 30px; }
        50% { top: 270px; }
        100%{ top: 30px; }
    }
    .redbilletera-recipient-card {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }
    .redbilletera-recipient-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .redbilletera-recipient-details {
        text-align: center;
    }
    .redbilletera-status-pill {
        align-self: center;
    }
    .redbilletera-modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    .redbilletera-modal-btn {
        width: 100%;
    }
}

/* ========================================================================
   TRANSACCIONES 
   ======================================================================== */

.redtransaccion-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Header section styling */
.redtransaccion-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.redtransaccion-title-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redtransaccion-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redtransaccion-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redtransaccion-btn-export {
    background: #ffffff;
    border: 1px solid #ff7a00;
    color: #ff7a00;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redtransaccion-btn-export:hover {
    background: #fff5eb;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

/* Stats Cards */
.redtransaccion-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.redtransaccion-stat-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.redtransaccion-stat-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redtransaccion-stat-card-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redtransaccion-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.redtransaccion-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.redtransaccion-stat-value--positivo {
    color: #16a34a;
}

.redtransaccion-stat-value--negativo {
    color: #dc2626;
}

.redtransaccion-stat-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.redtransaccion-stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redtransaccion-stat-icon-wrapper--total {
    background: #fff5eb;
    color: #ff7a00;
}

.redtransaccion-stat-icon-wrapper--entrada {
    background: #eafaf1;
    color: #16a34a;
}

.redtransaccion-stat-icon-wrapper--salida {
    background: #fdf2f2;
    color: #dc2626;
}

/* Filter Bar Container */
.redtransaccion-filter-container {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.redtransaccion-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.redtransaccion-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.redtransaccion-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.redtransaccion-input-search {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px 10px 42px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redtransaccion-input-search:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.redtransaccion-dropdown-wrapper {
    position: relative;
}

.redtransaccion-dropdown-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redtransaccion-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.redtransaccion-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.redtransaccion-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    padding: 8px;
}

.redtransaccion-dropdown-content.show {
    display: block;
}

/* Date range picker popup content */
.redtransaccion-date-inputs {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
}

.redtransaccion-date-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redtransaccion-date-field label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.redtransaccion-date-input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
    color: #0f172a;
    outline: none;
}

.redtransaccion-date-input:focus {
    border-color: #ff7a00;
}

.redtransaccion-date-actions {
    display: flex;
    justify-content: flex-end;
}

.redtransaccion-btn-apply-dates {
    background: #ff7a00;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.redtransaccion-btn-apply-dates:hover {
    background: #e06b00;
}

/* Dropdown select options */
.redtransaccion-select-options {
    display: flex;
    flex-direction: column;
    max-height: 240px;
    overflow-y: auto;
}

.redtransaccion-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
}

.redtransaccion-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.redtransaccion-option input[type="radio"] {
    accent-color: #ff7a00;
}

/* Clear filter button styling */
.redtransaccion-btn-clear {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease;
}

.redtransaccion-btn-clear:hover {
    color: #ff7a00;
}

/* Active Filters Tag Bar */
.redtransaccion-active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.redtransaccion-active-filters-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.redtransaccion-active-filters-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.redtransaccion-filter-tag {
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redtransaccion-filter-tag:hover {
    background: #fee2e2;
    color: #dc2626;
}

.redtransaccion-filter-tag svg {
    color: #94a3b8;
}

.redtransaccion-filter-tag:hover svg {
    color: #dc2626;
}

.redtransaccion-filter-tag--default {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #e2e8f0;
    cursor: default;
}

/* Transactions rows layout */
.redtransaccion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.redtransaccion-row {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    cursor: pointer;
}

.redtransaccion-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border-color: #e2e8f0;
}

/* Col 1: Icon & Col 2: Title/Date combined under left flex */
.redtransaccion-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1.2;
}

.redtransaccion-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Custom background per type */
.redtransaccion-icon-wrapper--pago-rango {
    background: #ebf3ff;
    color: #0072ce;
}

.redtransaccion-icon-wrapper--recarga {
    background: #fff5eb;
    color: #ff7a00;
}

.redtransaccion-icon-wrapper--retiro {
    background: #fff9db;
    color: #f59f00;
}

.redtransaccion-icon-wrapper--transferencia-entrada {
    background: #f3f0ff;
    color: #7048e8;
}

.redtransaccion-icon-wrapper--transferencia-salida {
    background: #f3f0ff;
    color: #7048e8;
}

.redtransaccion-icon-wrapper--sorteo {
    background: #fff0f6;
    color: #d6336c;
}

.redtransaccion-icon-wrapper--bono {
    background: #fff9db;
    color: #f59f00;
}

.redtransaccion-icon-wrapper--comision {
    background: #eafaf1;
    color: #16a34a;
}

.redtransaccion-icon-wrapper--otro {
    background: #f1f3f5;
    color: #495057;
}

.redtransaccion-row-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redtransaccion-row-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.redtransaccion-row-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Col 3: Secondary Details */
.redtransaccion-row-secondary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.redtransaccion-row-sec-top {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.redtransaccion-row-sec-bottom {
    font-size: 12px;
    color: #94a3b8;
}

/* Right side flex: Status & Amount */
.redtransaccion-row-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Badge styling */
.redtransaccion-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: capitalize;
}

.redtransaccion-badge--completado {
    background: #eafaf1;
    color: #16a34a;
}

.redtransaccion-badge--pendiente,
.redtransaccion-badge--procesando {
    background: #fffbeb;
    color: #d97706;
}

.redtransaccion-badge--fallido,
.redtransaccion-badge--cancelado {
    background: #fdf2f2;
    color: #dc2626;
}

.redtransaccion-amount {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
    min-width: 110px;
}

.redtransaccion-amount--positivo {
    color: #16a34a;
}

.redtransaccion-amount--negativo {
    color: #dc2626;
}

/* Pagination container */
.redtransaccion-pagination {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.redtransaccion-pagination-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.redtransaccion-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redtransaccion-pagination-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redtransaccion-pagination-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.redtransaccion-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.redtransaccion-pagination-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.redtransaccion-pagination-num:hover:not(.active):not(.ellipsis) {
    background: #f1f5f9;
}

.redtransaccion-pagination-num.active {
    background: #ff7a00;
    color: #ffffff;
}

.redtransaccion-pagination-num.ellipsis {
    cursor: default;
    color: #94a3b8;
}

.redtransaccion-select-page-size {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    outline: none;
    cursor: pointer;
}

.redtransaccion-select-page-size:focus {
    border-color: #ff7a00;
}

/* Footer tips styling */
.redtransaccion-info-footer {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin-top: 28px;
}

.redtransaccion-info-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.redtransaccion-info-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.redtransaccion-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.redtransaccion-info-item svg {
    color: #94a3b8;
    margin-top: 2px;
    flex-shrink: 0;
}

.redtransaccion-info-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* Modal details customizations using redtransaccion prefix */
.redtransaccion-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.redtransaccion-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.redtransaccion-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.redtransaccion-modal-overlay.show .redtransaccion-modal {
    transform: scale(1);
}

.redtransaccion-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redtransaccion-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redtransaccion-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}

.redtransaccion-modal-close:hover {
    color: #0f172a;
}

.redtransaccion-modal-body {
    padding: 24px;
}

.redtransaccion-modal-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.redtransaccion-modal-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Custom background for modal icon based on type */
.redtransaccion-modal-icon-container--pago_rango {
    background: #ebf3ff;
    color: #0072ce;
}
.redtransaccion-modal-icon-container--recarga {
    background: #fff5eb;
    color: #ff7a00;
}
.redtransaccion-modal-icon-container--retiro {
    background: #fff9db;
    color: #f59f00;
}
.redtransaccion-modal-icon-container--transferencia {
    background: #f3f0ff;
    color: #7048e8;
}
.redtransaccion-modal-icon-container--sorteo {
    background: #fff0f6;
    color: #d6336c;
}
.redtransaccion-modal-icon-container--bono {
    background: #fff9db;
    color: #f59f00;
}
.redtransaccion-modal-icon-container--comision {
    background: #eafaf1;
    color: #16a34a;
}
.redtransaccion-modal-icon-container--otro {
    background: #f1f3f5;
    color: #495057;
}

.redtransaccion-modal-main-info {
    margin-bottom: 12px;
}

.redtransaccion-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.redtransaccion-modal-tx-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.redtransaccion-modal-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
}

.redtransaccion-modal-badge--completado {
    background: #eafaf1;
    color: #16a34a;
}

.redtransaccion-modal-badge--pendiente,
.redtransaccion-modal-badge--procesando {
    background: #fffbeb;
    color: #d97706;
}

.redtransaccion-modal-badge--fallido,
.redtransaccion-modal-badge--cancelado {
    background: #fdf2f2;
    color: #dc2626;
}

.redtransaccion-modal-tx-time {
    font-size: 12px;
    color: #94a3b8;
}

.redtransaccion-modal-amount {
    font-size: 24px;
    font-weight: 800;
}

.redtransaccion-modal-amount--positivo {
    color: #16a34a;
}

.redtransaccion-modal-amount--negativo {
    color: #dc2626;
}

.redtransaccion-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.redtransaccion-modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.redtransaccion-modal-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redtransaccion-modal-detail-label {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redtransaccion-modal-detail-label svg {
    color: #94a3b8;
}

.redtransaccion-modal-detail-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
}

.redtransaccion-modal-status-text {
    font-size: 12.5px;
    font-weight: 700;
}

.redtransaccion-modal-status-text--completado { color: #16a34a; }
.redtransaccion-modal-status-text--pendiente { color: #d97706; }
.redtransaccion-modal-status-text--procesando { color: #d97706; }
.redtransaccion-modal-status-text--fallido { color: #dc2626; }
.redtransaccion-modal-status-text--cancelado { color: #dc2626; }

.redtransaccion-modal-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redtransaccion-modal-copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
}

.redtransaccion-modal-copy-btn:hover {
    color: #ff7a00;
    background: #f1f5f9;
}

.redtransaccion-modal-description-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.redtransaccion-modal-description-text {
    font-size: 12.5px;
    color: #475569;
    margin: 4px 0 0 0;
    line-height: 1.5;
}

.redtransaccion-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
}

.redtransaccion-modal-download-btn {
    background: #ff7a00;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.redtransaccion-modal-download-btn:hover {
    background: #e06b00;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .redtransaccion-stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .redtransaccion-info-footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .redtransaccion-title {
        font-size: 20px;
    }
    
    .redtransaccion-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    
    .redtransaccion-row-left {
        width: 100%;
    }
    
    .redtransaccion-row-secondary {
        width: 100%;
        padding-left: 60px;
        box-sizing: border-box;
    }
    
    .redtransaccion-row-right {
        width: 100%;
        padding-left: 60px;
        box-sizing: border-box;
        justify-content: space-between;
    }
}

/* =================================================================*
 *                           12. RECARGAR                           *
 * =================================================================*/

.redrecarga-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

.redrecarga-page-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.redrecarga-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redrecarga-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redrecarga-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.redrecarga-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.redrecarga-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.redrecarga-card-step {
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redrecarga-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.redrecarga-min-label {
    margin-left: auto;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.redrecarga-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.redrecarga-amount-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.redrecarga-amount-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.redrecarga-amount-card.active {
    background: #ffffff;
    border-color: #ff7a00;
    box-shadow: 0 0 0 1px #ff7a00;
}

.redrecarga-amount-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.redrecarga-amount-card.active .redrecarga-amount-value {
    color: #ff7a00;
}

.redrecarga-amount-currency {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.redrecarga-amount-card.active .redrecarga-amount-currency {
    color: #ff7a00;
    opacity: 0.9;
}

.redrecarga-amount-check {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff7a00;
    color: #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: none;
    align-items: center;
    justify-content: center;
}

.redrecarga-amount-card.active .redrecarga-amount-check {
    display: flex;
}

.redrecarga-amount-check svg {
    width: 8px;
    height: 8px;
    stroke-width: 4;
}

.redrecarga-custom-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.redrecarga-custom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.redrecarga-custom-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.redrecarga-custom-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    padding: 0;
    width: 100%;
}

.redrecarga-custom-input::placeholder {
    color: #94a3b8;
}

.redrecarga-custom-right {
    font-size: 15px;
    font-weight: 700;
    color: #ff7a00;
}

.redrecarga-crypto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.redrecarga-crypto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redrecarga-crypto-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.redrecarga-crypto-card.active {
    border-color: #ff7a00;
    box-shadow: 0 0 0 1px #ff7a00;
    background: #ffffff;
}

.redrecarga-crypto-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.redrecarga-crypto-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ff7a00;
    color: #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    border: 1.5px solid #ffffff;
}

.redrecarga-crypto-info {
    display: flex;
    flex-direction: column;
}

.redrecarga-crypto-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.redrecarga-crypto-network {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.redrecarga-alert-info {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.redrecarga-alert-icon {
    color: #ff7a00;
    flex-shrink: 0;
}

.redrecarga-alert-text {
    font-size: 12px;
    color: #6d28d9;
    font-weight: 600;
    margin: 0;
}

/* Right Summary Column */
.redrecarga-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.redrecarga-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.redrecarga-summary-header svg {
    color: #64748b;
}

.redrecarga-summary-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.redrecarga-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.redrecarga-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}

.redrecarga-summary-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}

.redrecarga-summary-item-left svg {
    color: #94a3b8;
}

.redrecarga-summary-item-right {
    font-weight: 600;
    color: #0f172a;
}

.redrecarga-summary-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

.redrecarga-summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.redrecarga-summary-total-label {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.redrecarga-summary-total-value {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

.redrecarga-btn-submit {
    background: #ff7a00;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 20px;
}

.redrecarga-btn-submit:hover {
    background: #e06b00;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.3);
}

.redrecarga-btn-submit:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.redrecarga-btn-subtitle {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

.redrecarga-security-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.redrecarga-security-icon {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.redrecarga-security-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redrecarga-security-title {
    font-size: 12px;
    font-weight: 700;
    color: #166534;
}

.redrecarga-security-desc {
    font-size: 11px;
    color: #14532d;
    line-height: 1.4;
    font-weight: 500;
}

/* NowPayments Payment Modal */
.redrecarga-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.redrecarga-modal.show {
    display: flex;
}

.redrecarga-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.redrecarga-modal-content::-webkit-scrollbar {
    display: none;
}

.redrecarga-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.redrecarga-modal-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redrecarga-modal-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.redrecarga-modal-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.redrecarga-modal-tx-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redrecarga-modal-tx-id {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.redrecarga-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.redrecarga-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.redrecarga-modal-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

/* Modal Left */
.redrecarga-modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.redrecarga-modal-pill-crypto {
    background: #ecfdf5;
    color: #059669;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    border: 1px solid #a7f3d0;
}

.redrecarga-modal-qr-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.redrecarga-modal-qr-box img, .redrecarga-modal-qr-box svg {
    max-width: 100%;
    max-height: 100%;
}

.redrecarga-modal-scan-text {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
}

.redrecarga-modal-address-label {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.redrecarga-modal-address-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.redrecarga-modal-address-text {
    font-size: 11.5px;
    font-family: monospace;
    color: #0f172a;
    word-break: break-all;
    user-select: all;
    font-weight: 600;
}

.redrecarga-modal-copy-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.redrecarga-modal-copy-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.redrecarga-modal-network-alert {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.redrecarga-modal-network-alert svg {
    color: #8b5cf6;
    flex-shrink: 0;
    margin-top: 1px;
}

.redrecarga-modal-network-alert-text {
    font-size: 10.5px;
    color: #6b21a8;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Modal Right */
.redrecarga-modal-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redrecarga-modal-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redrecarga-modal-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.redrecarga-modal-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.redrecarga-modal-detail-label {
    color: #64748b;
    font-weight: 500;
}

.redrecarga-modal-detail-value {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redrecarga-modal-monto-badge {
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffedd5;
}

.redrecarga-modal-warning-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.redrecarga-modal-warning-box svg {
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 1px;
}

.redrecarga-modal-warning-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #9a3412;
    margin: 0 0 2px 0;
}

.redrecarga-modal-warning-desc {
    font-size: 10.5px;
    color: #7c2d12;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.redrecarga-modal-status-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.redrecarga-modal-status-icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redrecarga-modal-status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redrecarga-modal-status-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.redrecarga-modal-status-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.redrecarga-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

.redrecarga-modal-footer-brand {
    font-weight: 600;
}

.redrecarga-modal-footer-secure {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-weight: 600;
}

/* Spinner */
.redrecarga-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #64748b;
    border-radius: 50%;
    animation: redrecarga-spin 1s linear infinite;
    display: inline-block;
}

@keyframes redrecarga-spin {
    to { transform: rotate(360deg); }
}
/* Responsive */
@media (max-width: 992px) {
    .redrecarga-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .redrecarga-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .redrecarga-summary-card {
        padding: 16px;
    }
    
    .redrecarga-page-header {
        margin-bottom: 16px;
    }
    
    .redrecarga-page-title {
        font-size: 20px;
    }

    .redrecarga-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px;
    }
    
    .redrecarga-modal-content {
        margin: 10px auto;
        max-height: 94vh;
    }

    .redrecarga-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
    
    .redrecarga-modal-header {
        padding: 16px;
    }
    
    .redrecarga-modal-footer {
        padding: 12px 16px;
    }
    
    
    .redrecarga-crypto-grid {
        grid-template-columns: 1fr;
    }
}

/* Variantes de íconos y estados del modal de recarga */
.redrecarga-crypto-icon-box--usdt {
    background: #e6fcf5;
}

.redrecarga-crypto-icon-box--usdc {
    background: #e6f0ff;
}

.redrecarga-qr-empty {
    font-size: 12px;
    color: #94a3b8;
}

.redrecarga-status-badge-success {
    background: #dcfce7;
    color: #16a34a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redrecarga-status-badge-error {
    background: #fee2e2;
    color: #dc2626;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redrecarga-spinner--confirming {
    border-top-color: #f59e0b !important;
}

/* =================================================================*
 *                           RETIRAR                                *
 * =================================================================*/

.redretiro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.redretiro-page-header {
    margin-bottom: 24px;
}

.redretiro-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redretiro-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redretiro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .redretiro-grid {
        grid-template-columns: 1fr;
    }
}

.redretiro-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.redretiro-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.redretiro-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.redretiro-card-step {
    width: 24px;
    height: 24px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redretiro-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redretiro-crypto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .redretiro-crypto-grid {
        grid-template-columns: 1fr;
    }
}

.redretiro-crypto-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.redretiro-crypto-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.redretiro-crypto-card.active {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.02);
}

.redretiro-crypto-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redretiro-crypto-info {
    display: flex;
    flex-direction: column;
}

.redretiro-crypto-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.redretiro-crypto-network {
    font-size: 12px;
    color: #64748b;
}

.redretiro-crypto-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: #f97316;
    color: #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.redretiro-crypto-card.active .redretiro-crypto-check {
    display: flex;
}

.redretiro-crypto-check svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}

.redretiro-alert-info {
    margin-top: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.redretiro-alert-icon {
    color: #10b981;
    display: flex;
    align-items: center;
}

.redretiro-alert-text {
    font-size: 13px;
    color: #166534;
    margin: 0;
}

.redretiro-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.redretiro-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redretiro-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.redretiro-input-icon {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.redretiro-amount-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    overflow: hidden;
}

.redretiro-amount-wrapper:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.redretiro-amount-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.redretiro-amount-input:focus {
    outline: none;
}

.redretiro-amount-currency {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
}

.redretiro-btn-max {
    background: #fff7ed;
    color: #f97316;
    border: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.redretiro-btn-max:hover {
    background: #ffedd5;
}

.redretiro-available {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    margin-bottom: 16px;
}

.redretiro-available-value {
    font-weight: 700;
    color: #10b981;
}

.redretiro-min-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 480px) {
    .redretiro-min-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.redretiro-min-item {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redretiro-min-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.redretiro-min-item strong {
    color: #0f172a;
}

/* Sidebar Right */
.redretiro-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.redretiro-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.redretiro-summary-header svg {
    color: #0f172a;
}

.redretiro-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redretiro-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.redretiro-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redretiro-summary-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.redretiro-summary-item-left svg {
    color: #94a3b8;
}

.redretiro-summary-item-right {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    max-width: 180px;
    word-break: break-all;
}

.redretiro-summary-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

.redretiro-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.redretiro-summary-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.redretiro-summary-total-value {
    font-size: 20px;
    font-weight: 800;
    color: #10b981;
}

.redretiro-btn-submit {
    width: 100%;
    background: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.redretiro-btn-submit:hover {
    background: #ea580c;
}

.redretiro-btn-submit:active {
    transform: scale(0.98);
}

.redretiro-btn-submit:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.redretiro-security-badge {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
}

.redretiro-security-icon {
    color: #3b82f6;
    display: flex;
    align-items: flex-start;
}

.redretiro-security-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redretiro-security-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.redretiro-security-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

/* Bottom Important Card */
.redretiro-important-card {
    margin-top: 24px;
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-radius: 12px;
    padding: 20px 24px;
}

.redretiro-important-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.redretiro-important-icon {
    color: #dd6b20;
    display: flex;
    align-items: center;
}

.redretiro-important-title {
    font-size: 15px;
    font-weight: 700;
    color: #dd6b20;
    margin: 0;
}

.redretiro-important-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .redretiro-important-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.redretiro-important-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redretiro-important-item {
    font-size: 13px;
    color: #7b341e;
    line-height: 1.4;
}

/* Modal Overlay */
.redretiro-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.redretiro-modal-overlay.show {
    display: flex;
}

.redretiro-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.redretiro-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.redretiro-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.redretiro-modal-icon-circle {
    width: 64px;
    height: 64px;
    background: #fff7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    margin-bottom: 20px;
}

.redretiro-modal-icon-circle svg {
    width: 32px;
    height: 32px;
}

.redretiro-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-align: center;
}

.redretiro-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.redretiro-pin-digits-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.redretiro-pin-digit {
    width: 44px;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redretiro-pin-digit:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.redretiro-modal-note {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.redretiro-modal-note svg {
    color: #94a3b8;
}

.redretiro-modal-btn-confirm {
    width: 100%;
    background: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.redretiro-modal-btn-confirm:hover {
    background: #ea580c;
}

.redretiro-modal-btn-cancel {
    width: 100%;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redretiro-modal-btn-cancel:hover {
    background: #f8fafc;
    color: #0f172a;
}


/* Alerta de PIN requerido */
.redretiro-alert-pin {
    background: rgba(245, 158, 11, 0.1);
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.redretiro-alert-pin-icon {
    background: #fef3c7;
    color: #d97706;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redretiro-alert-pin-content {
    flex: 1;
}

.redretiro-alert-pin-title {
    font-size: 15px;
    font-weight: 700;
    color: #b45309;
    margin: 0 0 4px 0;
}

.redretiro-alert-pin-desc {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.redretiro-alert-pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d97706;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.redretiro-alert-pin-btn:hover {
    background: #b45309;
    color: #ffffff;
}

/* Variantes de íconos de criptomonedas */
.redretiro-crypto-icon-box--usdt {
    background: #e6fcf5;
}

.redretiro-crypto-icon-box--usdc {
    background: #e6f0ff;
}

/* Input estático / bloqueado para wallet */
.redretiro-input-static {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    cursor: not-allowed !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    user-select: all;
    border-color: #cbd5e1 !important;
}

.redretiro-input-static:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
}

.redretiro-input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 500;
}

.redretiro-commission-free {
    color: #10b981;
}

/* Spinner de carga en botón de confirmación */
.redretiro-btn-spinner {
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: redspin360-rotate 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes redspin360-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================================================================*
 *                           SOPORTE                                *
 * =================================================================*/

.redsoporte-container {
    max-width: 1200px;
}

.redsoporte-page-header {
    margin-bottom: 24px;
}

.redsoporte-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redsoporte-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.redsoporte-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.redsoporte-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.redsoporte-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.redsoporte-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5722;
}

.redsoporte-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Form controls */
.redsoporte-form-group {
    margin-bottom: 20px;
}

.redsoporte-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.redsoporte-select,
.redsoporte-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    color: #334155;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redsoporte-select:focus,
.redsoporte-textarea:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.redsoporte-textarea {
    height: 140px;
    resize: none;
}

.redsoporte-char-counter {
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* Uploader */
.redsoporte-upload-area {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.redsoporte-upload-area:hover,
.redsoporte-upload-area.dragover {
    border-color: #ff5722;
    background: #fffcfb;
}

.redsoporte-upload-icon {
    margin-bottom: 8px;
    color: #64748b;
}

.redsoporte-upload-text {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}

.redsoporte-upload-text span {
    color: #ff5722;
    font-weight: 600;
}

.redsoporte-upload-subtext {
    font-size: 12px;
    color: #94a3b8;
}

/* Alert notice */
.redsoporte-notice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f7ff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.redsoporte-notice-icon {
    color: #0284c7;
    flex-shrink: 0;
}

.redsoporte-notice-text {
    font-size: 13px;
    color: #0369a1;
    line-height: 1.5;
    margin: 0;
}

.redsoporte-notice-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Buttons */
.redsoporte-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #ff5722;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redsoporte-btn-submit:hover {
    background: #e64a19;
}

.redsoporte-btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Ticket List Item */
.redsoporte-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redsoporte-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redsoporte-ticket-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.redsoporte-ticket-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.redsoporte-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 8px;
}

.redsoporte-badge-pendiente {
    background: #fffbeb;
    color: #d97706;
}

.redsoporte-badge-en_revision {
    background: #eff6ff;
    color: #2563eb;
}

.redsoporte-badge-en_progreso {
    background: #faf5ff;
    color: #7c3aed;
}

.redsoporte-badge-resuelto {
    background: #f0fdf4;
    color: #16a34a;
}

.redsoporte-badge-cerrado {
    background: #f1f5f9;
    color: #475569;
}

.redsoporte-ticket-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redsoporte-ticket-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redsoporte-ticket-date {
    font-size: 12px;
    color: #94a3b8;
}

.redsoporte-ticket-chevron {
    color: #94a3b8;
    flex-shrink: 0;
}

/* Ver mÃƒÂ¡s button */
.redsoporte-btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.redsoporte-btn-more:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Modal Overlay & Card */
.redsoporte-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.redsoporte-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.redsoporte-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 16px;
}

.redsoporte-modal-overlay.active .redsoporte-modal-card {
    transform: scale(1);
}

.redsoporte-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.redsoporte-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redsoporte-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.redsoporte-modal-close:hover {
    color: #475569;
}

/* Hide scrollbar while keeping functionality */
.redsoporte-modal-body {
    padding: 24px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.redsoporte-modal-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Modal Content details */
.redsoporte-detail-row {
    margin-bottom: 20px;
}

.redsoporte-detail-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.redsoporte-detail-meta strong {
    color: #334155;
}

.redsoporte-detail-subject {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.redsoporte-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
}

.redsoporte-detail-desc {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.redsoporte-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

/* Attached File Display Card */
.redsoporte-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.redsoporte-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.redsoporte-file-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.redsoporte-file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.redsoporte-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redsoporte-file-meta {
    font-size: 12px;
    color: #94a3b8;
}

.redsoporte-btn-download {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.redsoporte-btn-download:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Admin Response Area */
.redsoporte-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.redsoporte-response-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.redsoporte-response-body {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #166534;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Modal Footer */
.redsoporte-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.redsoporte-btn-close {
    background: #ff5722;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redsoporte-btn-close:hover {
    background: #e64a19;
}

/* Notification banner */
.redsoporte-alert-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.redsoporte-alert-toast.active {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .redsoporte-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================*
 *                           NOTIFICACIONES                         *
 * =================================================================*/

/* Ã¢â€â‚¬Ã¢â€â‚¬ Page Header (igual estilo que subir-rango) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-page-header {
    margin-bottom: 28px;
}

.rednotificaciones-page-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.2;
    padding-left: 16px;
    border-left: 4px solid #f97316;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 6px 0 0 0;
    padding-left: 20px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Container Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-container {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Toolbar de filtros Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.rednotificaciones-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    min-width: 220px;
    flex: 1;
    color: #94a3b8;
    transition: border-color 0.2s ease;
}

.rednotificaciones-search-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
    color: #475569;
}

.rednotificaciones-search {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #334155;
    padding: 10px 0;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-search::placeholder {
    color: #94a3b8;
}

.rednotificaciones-selects-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.rednotificaciones-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rednotificaciones-select-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rednotificaciones-select {
    appearance: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 32px 9px 12px;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    outline: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 130px;
}

.rednotificaciones-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.rednotificaciones-clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    align-self: flex-end;
}

.rednotificaciones-clear-btn:hover {
    background: #fff7ed;
    color: #f97316;
    border-color: #f97316;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Listado Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Cards Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-card {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 0;
    transition: background 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: stretch;
}

.rednotificaciones-card:first-child {
    border-top: 1px solid #f1f5f9;
}

.rednotificaciones-card:hover {
    background: #fafafa;
}

/* Borde de acento lateral por tipo */
.rednotificaciones-card-accent {
    width: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 20px;
    align-self: stretch;
    background-color: var(--cat-color, #e2e8f0);
}

/* Variables de color por tipo */
.rednotificaciones-card.rango,
.rednotificaciones-card.notif-rango          { --cat-color: #a855f7; --cat-bg: #faf5ff; }
.rednotificaciones-card.pago,
.rednotificaciones-card.notif-pago           { --cat-color: #10b981; --cat-bg: #ecfdf5; }
.rednotificaciones-card.sistema,
.rednotificaciones-card.notif-sistema,
.rednotificaciones-card.notif-info           { --cat-color: #3b82f6; --cat-bg: #eff6ff; }
.rednotificaciones-card.registro_red,
.rednotificaciones-card.invitacion,
.rednotificaciones-card.notif-invitacion     { --cat-color: #f59e0b; --cat-bg: #fffbeb; }
.rednotificaciones-card.comision             { --cat-color: #eab308; --cat-bg: #fef9c3; }
.rednotificaciones-card.recarga,
.rednotificaciones-card.notif-recarga        { --cat-color: #10b981; --cat-bg: #ecfdf5; }
.rednotificaciones-card.retiro,
.rednotificaciones-card.notif-retiro         { --cat-color: #f97316; --cat-bg: #fff7ed; }
.rednotificaciones-card.transferencia,
.rednotificaciones-card.notif-transferencia  { --cat-color: #3b82f6; --cat-bg: #eff6ff; }
.rednotificaciones-card.cancelacion,
.rednotificaciones-card.seguridad,
.rednotificaciones-card.notif-seguridad      { --cat-color: #ef4444; --cat-bg: #fef2f2; }
.rednotificaciones-card.mensaje,
.rednotificaciones-card.soporte,
.rednotificaciones-card.notif-soporte        { --cat-color: #0284c7; --cat-bg: #f0f9ff; }
.rednotificaciones-card.sorteo,
.rednotificaciones-card.notif-sorteo         { --cat-color: #ec4899; --cat-bg: #fdf2f8; }
.rednotificaciones-card.boleto_sorteo,
.rednotificaciones-card.notif-boleto         { --cat-color: #16a34a; --cat-bg: #f0fdf4; }

.rednotificaciones-card-body {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

/* Ícono circular */
.rednotificaciones-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--cat-bg, #f1f5f9);
    color: var(--cat-color, #64748b);
}

.rednotificaciones-icon-circle svg {
    width: 22px;
    height: 22px;
}

/* Contenido de texto */
.rednotificaciones-content {
    flex-grow: 1;
    min-width: 0;
}

.rednotificaciones-category {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    color: var(--cat-color);
    text-transform: uppercase;
}

.rednotificaciones-title-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.rednotificaciones-desc-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

/* Columna derecha */
.rednotificaciones-right-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rednotificaciones-time {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.rednotificaciones-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--cat-color, #f97316);
}

.rednotificaciones-chevron {
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.rednotificaciones-card:hover .rednotificaciones-chevron {
    transform: translateX(3px);
    color: #64748b;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Badges de prioridad Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.badge-nuevo {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-importante {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.badge-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Read vs Unread */
.rednotificaciones-card:not(.unread) .rednotificaciones-title-text {
    color: #475569;
    font-weight: 600;
}

.rednotificaciones-card:not(.unread) .rednotificaciones-desc-text {
    color: #94a3b8;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Empty State Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.rednotificaciones-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.rednotificaciones-empty-icon {
    margin-bottom: 16px;
    color: #cbd5e1;
}

.rednotificaciones-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.rednotificaciones-empty-text {
    font-size: 13.5px;
    margin: 0;
}

.rednotificaciones-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.rednotificaciones-modal.active {
    display: flex;
    opacity: 1;
}

.rednotificaciones-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    position: relative;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.rednotificaciones-modal.active .rednotificaciones-modal-card {
    transform: scale(1) translateY(0);
}

.rednotificaciones-modal-card::-webkit-scrollbar { display: none; }

/* Top bar del modal */
.rednotificaciones-modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.rednotificaciones-modal-top-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rednotificaciones-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Hero: ÃƒÂ­cono + texto */
.rednotificaciones-modal-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 24px 20px;
}

.rednotificaciones-modal-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

.rednotificaciones-modal-icon-circle svg {
    width: 34px;
    height: 34px;
}

/* Colores del ÃƒÂ­cono en el modal por tipo */
.rednotificaciones-modal-icon-circle.rango        { background: #faf5ff; color: #a855f7; }
.rednotificaciones-modal-icon-circle.pago         { background: #fff7ed; color: #f97316; }
.rednotificaciones-modal-icon-circle.sistema      { background: #eff6ff; color: #3b82f6; }
.rednotificaciones-modal-icon-circle.registro_red { background: #ecfdf5; color: #10b981; }
.rednotificaciones-modal-icon-circle.comision     { background: #fef9c3; color: #ca8a04; }
.rednotificaciones-modal-icon-circle.retiro       { background: #fff7ed; color: #ea580c; }
.rednotificaciones-modal-icon-circle.cancelacion  { background: #fef2f2; color: #ef4444; }
.rednotificaciones-modal-icon-circle.mensaje,
.rednotificaciones-modal-icon-circle.soporte,
.rednotificaciones-modal-icon-circle.notif-soporte { background: #eff6ff; color: #3b82f6; }
.rednotificaciones-modal-icon-circle.sorteo,
.rednotificaciones-modal-icon-circle.notif-sorteo  { background: #fdf2f8; color: #ec4899; }
.rednotificaciones-modal-icon-circle.boleto_sorteo,
.rednotificaciones-modal-icon-circle.notif-boleto  { background: #f0fdf4; color: #16a34a; }

.rednotificaciones-modal-hero-text {
    flex-grow: 1;
    padding-top: 4px;
}

/* Badge de categoría dentro del modal */
.rednotificaciones-modal-category-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
}

.modal-badge-rango        { background: #faf5ff; color: #a855f7; }
.modal-badge-pago         { background: #fff7ed; color: #f97316; }
.modal-badge-sistema      { background: #eff6ff; color: #3b82f6; }
.modal-badge-registro_red { background: #ecfdf5; color: #059669; }
.modal-badge-comision     { background: #fef9c3; color: #ca8a04; }
.modal-badge-retiro       { background: #fff7ed; color: #ea580c; }
.modal-badge-cancelacion  { background: #fef2f2; color: #dc2626; }
.modal-badge-mensaje,
.modal-badge-soporte,
.modal-badge-notif-soporte { background: #eff6ff; color: #2563eb; }
.modal-badge-sorteo,
.modal-badge-notif-sorteo  { background: #fdf2f8; color: #db2777; }
.modal-badge-boleto_sorteo,
.modal-badge-notif-boleto  { background: #f0fdf4; color: #15803d; }

.rednotificaciones-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-modal-desc-text {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Caja Ã‚Â¿QuÃƒÂ© significa esto? */
.rednotificaciones-modal-meaning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 0 24px 16px;
    border-left: 3px solid #f97316;
}

.rednotificaciones-modal-meaning-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff7ed;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rednotificaciones-modal-meaning-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-modal-meaning-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* Caja de monto */
.rednotificaciones-modal-amount-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 24px 16px;
    border: 1px solid #e2e8f0;
}

.rednotificaciones-modal-amount-left {
    display: flex;
    flex-direction: column;
}

.rednotificaciones-modal-amount-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.rednotificaciones-modal-amount-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.rednotificaciones-modal-amount-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rednotificaciones-modal-amount-copy:hover {
    color: #f97316;
    background: #fff7ed;
}

/* Caja de fecha y hora del evento */
.rednotificaciones-modal-datetime-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 20px;
    margin: 0 24px 16px;
    border: 1px solid #f1f5f9;
}

.rednotificaciones-modal-datetime-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rednotificaciones-modal-datetime-content {
    display: flex;
    flex-direction: column;
}

.rednotificaciones-modal-datetime-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rednotificaciones-modal-datetime-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Tabla detalles */
.rednotificaciones-modal-details-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 24px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rednotificaciones-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 24px 16px;
    border: 1px solid #e2e8f0;
}

.rednotificaciones-modal-details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.rednotificaciones-modal-details-label {
    color: #64748b;
    font-weight: 500;
}

.rednotificaciones-modal-details-value {
    color: #0f172a;
    font-weight: 600;
}

/* Footer del modal */
.rednotificaciones-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.rednotificaciones-modal-btn-close {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rednotificaciones-modal-btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsive Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {
    .rednotificaciones-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .rednotificaciones-search-wrap {
        min-width: unset;
    }
    .rednotificaciones-selects-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .rednotificaciones-container {
        padding: 16px;
    }
    .rednotificaciones-card {
        padding: 14px 0;
    }
    .rednotificaciones-card-body {
        gap: 12px;
    }
    .rednotificaciones-desc-text {
        max-width: 200px;
    }
    .rednotificaciones-right-wrapper {
        gap: 8px;
    }
    .rednotificaciones-modal-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rednotificaciones-modal-meaning-box,
    .rednotificaciones-modal-datetime-box,
    .rednotificaciones-modal-amount-box,
    .rednotificaciones-modal-details-title,
    .rednotificaciones-modal-details-list {
        margin-left: 16px;
        margin-right: 16px;
    }
    .rednotificaciones-modal-top-bar,
    .rednotificaciones-modal-hero,
    .rednotificaciones-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =================================================================*
 *                           ACTUALIZAR RANGOS                      *
 * =================================================================*/

.redactualizarrango-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redactualizarrango-page-header {
    margin-bottom: 8px;
}

.redactualizarrango-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.redactualizarrango-page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Card layout */
.redactualizarrango-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.redactualizarrango-card-header {
    margin-bottom: 20px;
}

.redactualizarrango-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.redactualizarrango-card-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Rank cards row */
.redactualizarrango-rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.redactualizarrango-rank-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.redactualizarrango-rank-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.redactualizarrango-rank-item.active {
    border-color: #e67c00;
    background: #fffdfa;
}

.redactualizarrango-rank-img-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redactualizarrango-rank-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.redactualizarrango-rank-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.redactualizarrango-rank-expiry {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

.redactualizarrango-rank-expiry strong {
    color: #ef4444;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.redactualizarrango-btn-activate {
    width: 100%;
    padding: 8px 16px;
    background: #e67c00;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.redactualizarrango-btn-activate:hover {
    background: #cc6e00;
}

.redactualizarrango-rank-item.active .redactualizarrango-btn-activate {
    background: #e67c00;
}

/* Selected rank banner */
.redactualizarrango-selected-banner {
    background: #fffbf7;
    border: 1px solid #ffd8b3;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.redactualizarrango-selected-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #fff4e6;
    color: #e67c00;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.redactualizarrango-selected-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.redactualizarrango-selected-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.redactualizarrango-selected-info {
    display: flex;
    flex-direction: column;
}

.redactualizarrango-selected-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.redactualizarrango-selected-expiry {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
}

.redactualizarrango-selected-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
}

.redactualizarrango-selected-right {
    flex: 1.5;
}

.redactualizarrango-benefits-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.redactualizarrango-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redactualizarrango-benefit-item {
    font-size: 14px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redactualizarrango-benefit-icon {
    color: #10b981;
    flex-shrink: 0;
}

/* Grid columns */
.redactualizarrango-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.redactualizarrango-payments-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.redactualizarrango-payments-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redactualizarrango-badge-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.redactualizarrango-payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redactualizarrango-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.redactualizarrango-payment-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redactualizarrango-avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redactualizarrango-avatar-user {
    background: #ffebd6;
    color: #e67c00;
}

.redactualizarrango-avatar-company {
    background: #e6f0ff;
    color: #2563eb;
}

.redactualizarrango-payment-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.redactualizarrango-payment-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.redactualizarrango-payment-val {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.redactualizarrango-btn-pay {
    background: #e67c00;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.redactualizarrango-btn-pay:hover {
    background: #cc6e00;
}

/* Right Sidebar Cards */
.redactualizarrango-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.redactualizarrango-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.redactualizarrango-summary-header {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.redactualizarrango-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.redactualizarrango-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
}

.redactualizarrango-summary-row-val {
    font-weight: 600;
    color: #334155;
}

.redactualizarrango-summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.redactualizarrango-summary-row--total {
    color: #0f172a;
}

.redactualizarrango-summary-row--total .redactualizarrango-summary-row-val {
    font-size: 16px;
    font-weight: 700;
    color: #e67c00;
}

.redactualizarrango-btn-pay-all {
    width: 100%;
    background: #e67c00;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.redactualizarrango-btn-pay-all:hover {
    background: #cc6e00;
}

.redactualizarrango-security-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.redactualizarrango-security-icon-box {
    width: 40px;
    height: 40px;
    background: #fff4e6;
    color: #e67c00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redactualizarrango-security-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redactualizarrango-security-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.redactualizarrango-security-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Media Queries */
@media (max-width: 992px) {
    .redactualizarrango-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .redactualizarrango-selected-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .redactualizarrango-selected-arrow-wrapper {
        transform: rotate(90deg);
        align-self: center;
    }
}

/* =================================================================*
 *                     SORTEOS DE LA RED (USUARIO)                  *
 * =================================================================*/

/* Contenedor principal */
.sorteredusu-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Encabezado */
.sorteredusu-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sorteredusu-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sorteredusu-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sorteredusu-title-badge {
    background: linear-gradient(135deg, #e67c00 0%, #ff9800 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(230, 124, 0, 0.25);
}

.sorteredusu-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Badge de Rango Actual del Usuario */
.sorteredusu-user-rank-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
}

.sorteredusu-user-rank-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.sorteredusu-user-rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
    flex-shrink: 0;
}

.sorteredusu-user-rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.sorteredusu-user-rank-avatar svg {
    width: 20px;
    height: 20px;
}

.sorteredusu-user-rank-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sorteredusu-user-rank-title {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sorteredusu-user-rank-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorteredusu-user-rank-limit {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

/* Banner Informativo */
.sorteredusu-alert-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e67c00;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #475569;
}

.sorteredusu-alert-bar-icon {
    color: #e67c00;
    flex-shrink: 0;
}

.sorteredusu-alert-bar strong {
    color: #0f172a;
}

/* Grid de Tarjetas de Sorteos */
.sorteredusu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Tarjeta de Sorteo */
.sorteredusu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.sorteredusu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Modificadores de Tarjeta */
.sorteredusu-card--locked {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
}

.sorteredusu-card--locked:hover {
    border-color: #f87171;
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.08);
}

.sorteredusu-card--participating {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fdfa 100%);
}

.sorteredusu-card--participating:hover {
    border-color: #34d399;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.08);
}

/* Cabecera de la Tarjeta */
.sorteredusu-card-header {
    padding: 18px 22px 14px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sorteredusu-code-badge {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.5px;
}

.sorteredusu-badges-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sorteredusu-badge-active {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sorteredusu-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: sorteredusuPulse 1.8s infinite;
}

@keyframes sorteredusuPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.sorteredusu-badge-revancha {
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sorteredusu-badge-locked {
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Cuerpo de la Tarjeta */
.sorteredusu-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.sorteredusu-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sorteredusu-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    text-transform: capitalize;
}

/* Temporizador Digital */
.sorteredusu-timer-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.sorteredusu-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sorteredusu-timer-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sorteredusu-timer-status {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 600;
}

.sorteredusu-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.sorteredusu-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    padding: 6px 2px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sorteredusu-timer-digit {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.1;
}

.sorteredusu-timer-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cuadrícula de Metadatos */
.sorteredusu-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sorteredusu-meta-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sorteredusu-meta-item-full {
    grid-column: span 2;
}

.sorteredusu-meta-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sorteredusu-meta-val {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pie de Tarjeta y Precios */
.sorteredusu-card-footer {
    padding: 16px 22px 22px 22px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sorteredusu-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sorteredusu-price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sorteredusu-price-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sorteredusu-price-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.sorteredusu-price-currency {
    font-size: 13px;
    font-weight: 700;
    color: #e67c00;
}

.sorteredusu-participants-tag {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Botones de Acción */
.sorteredusu-btn-buy {
    width: 100%;
    background: linear-gradient(135deg, #e67c00 0%, #ff9800 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(230, 124, 0, 0.25);
}

.sorteredusu-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 124, 0, 0.38);
    filter: brightness(1.05);
}

.sorteredusu-btn-buy:active {
    transform: translateY(0);
}

/* Bloque Modo Bloqueado */
.sorteredusu-locked-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sorteredusu-locked-msg {
    font-size: 12px;
    color: #991b1b;
    line-height: 1.45;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sorteredusu-locked-msg svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #dc2626;
}

.sorteredusu-btn-upgrade {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.sorteredusu-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    filter: brightness(1.05);
    color: #ffffff;
}

/* Estado Ya Participando */
.sorteredusu-btn-participating {
    width: 100%;
    background: #ecfdf5;
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Estado Vacío */
.sorteredusu-empty {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sorteredusu-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sorteredusu-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sorteredusu-empty-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 450px;
    margin: 0;
    line-height: 1.5;
}

/* =================================================================*
 *                     MODAL DE COMPRA DE BOLETO                    *
 * =================================================================*/

.sorteredusu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sorteredusu-modal.active {
    opacity: 1;
    visibility: visible;
}

.sorteredusu-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sorteredusu-modal-card {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
}

.sorteredusu-modal.active .sorteredusu-modal-card {
    transform: scale(1);
}

.sorteredusu-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sorteredusu-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorteredusu-modal-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s ease, color 0.2s ease;
}

.sorteredusu-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sorteredusu-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sorteredusu-modal-sorteo-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sorteredusu-modal-summary-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sorteredusu-modal-summary-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.sorteredusu-modal-summary-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sorteredusu-modal-summary-price {
    font-size: 18px;
    font-weight: 800;
    color: #e67c00;
    text-align: right;
    white-space: nowrap;
}

.sorteredusu-modal-options-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 10px 0;
}

.sorteredusu-modal-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sorteredusu-modal-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    user-select: none;
}

.sorteredusu-modal-option-card:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.sorteredusu-modal-option-card.selected {
    border-color: #e67c00;
    background: #fffcf8;
    box-shadow: 0 4px 14px rgba(230, 124, 0, 0.12);
}

.sorteredusu-modal-option-radio {
    margin-top: 2px;
    accent-color: #e67c00;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.sorteredusu-modal-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sorteredusu-modal-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sorteredusu-modal-option-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorteredusu-modal-option-price {
    font-weight: 800;
    font-size: 14px;
    color: #e67c00;
    white-space: nowrap;
}

.sorteredusu-modal-option-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.sorteredusu-modal-total-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed #cbd5e1;
}

.sorteredusu-modal-total-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sorteredusu-modal-total-num {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.sorteredusu-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9;
}

.sorteredusu-modal-btn-cancel {
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sorteredusu-modal-btn-cancel:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sorteredusu-modal-btn-confirm {
    padding: 11px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #e67c00 0%, #ff9800 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(230, 124, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorteredusu-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 124, 0, 0.35);
}

/* Responsividad */
@media (max-width: 768px) {
    .sorteredusu-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sorteredusu-user-rank-box {
        width: 100%;
    }
    
    .sorteredusu-grid {
        grid-template-columns: 1fr;
    }
    
    .sorteredusu-modal-card {
        max-height: 95vh;
    }
}

/* =================================================================*
 *                      MIS BOLETOS (USUARIO)                       *
 * =================================================================*/

/* Contenedor Principal */
.misboletosusu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Encabezado */
.misboletosusu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.misboletosusu-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.misboletosusu-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.misboletosusu-title-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.misboletosusu-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Hero / Anuncio de Próxima Activación */
.misboletosusu-hero-card {
    background: #033E8C;
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 24px;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.misboletosusu-hero-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(230, 124, 0, 0.25) 0%, rgba(230, 124, 0, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.misboletosusu-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.misboletosusu-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 124, 0, 0.16);
    color: #ff9800;
    border: 1px solid rgba(230, 124, 0, 0.35);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
}

.misboletosusu-pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff9800;
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    animation: misboletosusuPulse 2s infinite;
}

@keyframes misboletosusuPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.misboletosusu-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0;
    color: #ffffff;
}

.misboletosusu-hero-desc {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.misboletosusu-hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.misboletosusu-btn-primary {
    background: linear-gradient(135deg, #e67c00 0%, #ff9800 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(230, 124, 0, 0.35);
}

.misboletosusu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(230, 124, 0, 0.45);
    color: #ffffff;
}

.misboletosusu-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.misboletosusu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Tarjetas de Información / Pasos */
.misboletosusu-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.misboletosusu-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.misboletosusu-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.misboletosusu-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.misboletosusu-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.misboletosusu-feature-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Tarjeta Placeholder de Historial */
.misboletosusu-placeholder-card {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.misboletosusu-placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.misboletosusu-placeholder-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.misboletosusu-placeholder-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 480px;
    line-height: 1.5;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .misboletosusu-hero-card {
        padding: 32px 20px;
    }
    
    .misboletosusu-hero-title {
        font-size: 24px;
    }
    
    .misboletosusu-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .misboletosusu-btn-primary,
    .misboletosusu-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}









/* =================================================================*
 *                           TERMINOS Y CONDICIONES                     *
 * =================================================================*/
.termincondi-body {
    background-color: #f8fafc;
    color: #334155;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.termincondi-body * {
    box-sizing: border-box;
}

.termincondi-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.termincondi-hero {
    background: radial-gradient(circle at 85% 20%, rgba(3, 62, 140, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 125px 0 45px 0;
    position: relative;
}

.termincondi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #033E8C;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.termincondi-hero-badge svg {
    flex-shrink: 0;
}

.termincondi-hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.termincondi-hero-highlight {
    background: linear-gradient(135deg, #ff6f00 0%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.termincondi-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 780px;
    margin: 0 0 24px 0;
    line-height: 1.7;
    word-break: break-word;
}

.termincondi-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.termincondi-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.termincondi-meta-pill strong {
    color: #0f172a;
}

.termincondi-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #033E8C;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.termincondi-print-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

/* Breadcrumb */
.termincondi-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    padding: 18px 0;
}

.termincondi-breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.termincondi-breadcrumb-link:hover {
    color: #033E8C;
}

.termincondi-breadcrumb-sep {
    color: #cbd5e1;
}

.termincondi-breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
}

/* Contenido Principal y Layout */
.termincondi-main-sec {
    padding-bottom: 90px;
}

.termincondi-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sidebar & Tabla de Contenido Sticky */
.termincondi-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

.termincondi-toc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
}

.termincondi-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.termincondi-toc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.termincondi-toc-title svg {
    color: #033E8C;
}

.termincondi-toc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #033E8C;
    background: rgba(3, 62, 140, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.termincondi-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.termincondi-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.termincondi-toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.termincondi-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.termincondi-toc-link:hover {
    background: #eff6ff;
    color: #033E8C;
}

.termincondi-toc-link.active {
    background: #eff6ff;
    color: #033E8C;
    border-left-color: #033E8C;
    font-weight: 700;
}

.termincondi-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
}

.termincondi-toc-link.active .termincondi-toc-num {
    background: #033E8C;
    color: #ffffff;
}

/* Widgets Lateral */
.termincondi-quick-box {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.termincondi-quick-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.termincondi-quick-desc {
    font-size: 0.84rem;
    color: #e0f2fe;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.termincondi-quick-btn,
.termincondi-static-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    background: #ff6f00;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    user-select: all;
    cursor: text;
}

.termincondi-quick-btn:hover,
.termincondi-static-email:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Columna de Contenido */
.termincondi-content-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.termincondi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 96px;
    transition: border-color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.termincondi-card:hover {
    border-color: #cbd5e1;
}

.termincondi-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.termincondi-clause-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: #eff6ff;
    color: #033E8C;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.termincondi-card-title {
    font-size: clamp(1.2rem, 3vw, 1.42rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.termincondi-p {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.termincondi-p:last-child {
    margin-bottom: 0;
}

.termincondi-ul {
    margin: 14px 0 18px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.termincondi-li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.65;
    word-break: break-word;
}

.termincondi-li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #033E8C;
}

.termincondi-callout {
    background: #f8fafc;
    border-left: 4px solid #033E8C;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.6;
}

.termincondi-callout-warning {
    background: #fff7ed;
    border-left: 4px solid #ea580c;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #9a3412;
    line-height: 1.6;
}

.termincondi-callout-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #991b1b;
    line-height: 1.6;
}

.termincondi-callout-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.termincondi-callout-text {
    margin: 0;
}

/* Banner de Aceptación */
.termincondi-banner-accept {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    box-shadow: 0 12px 32px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.termincondi-banner-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.termincondi-banner-content p {
    font-size: 0.92rem;
    color: #e0f2fe;
    margin: 0;
    line-height: 1.6;
}

.termincondi-banner-actions {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .termincondi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .termincondi-sidebar {
        position: static;
        width: 100%;
    }

    .termincondi-toc-nav {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .termincondi-container {
        padding: 0 16px;
    }

    .termincondi-hero {
        padding: 100px 0 35px 0;
    }

    .termincondi-hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .termincondi-meta-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .termincondi-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .termincondi-banner-accept {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 18px;
    }

    .termincondi-banner-actions,
    .termincondi-banner-actions a {
        width: 100%;
        display: block;
        text-align: center;
    }
}
/* =================================================================*
 *                           POLITICA DE PRIVACIDAD                      *
 * =================================================================*/
.polipriva-body {
    background-color: #f8fafc;
    color: #334155;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.polipriva-body * {
    box-sizing: border-box;
}

.polipriva-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.polipriva-hero {
    background: radial-gradient(circle at 85% 20%, rgba(3, 62, 140, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 125px 0 45px 0;
    position: relative;
}

.polipriva-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #033E8C;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.polipriva-hero-badge svg {
    flex-shrink: 0;
}

.polipriva-hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.polipriva-hero-highlight {
    background: linear-gradient(135deg, #033E8C 0%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.polipriva-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 780px;
    margin: 0 0 24px 0;
    line-height: 1.7;
    word-break: break-word;
}

.polipriva-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.polipriva-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.polipriva-meta-pill strong {
    color: #0f172a;
}

/* Breadcrumb */
.polipriva-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    padding: 18px 0;
}

.polipriva-breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.polipriva-breadcrumb-link:hover {
    color: #033E8C;
}

.polipriva-breadcrumb-sep {
    color: #cbd5e1;
}

.polipriva-breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
}

/* Contenido Principal y Layout */
.polipriva-main-sec {
    padding-bottom: 90px;
}

.polipriva-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sidebar & Tabla de Contenido Sticky */
.polipriva-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

.polipriva-toc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
}

.polipriva-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.polipriva-toc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.polipriva-toc-title svg {
    color: #033E8C;
}

.polipriva-toc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #033E8C;
    background: rgba(3, 62, 140, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.polipriva-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.polipriva-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.polipriva-toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.polipriva-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.polipriva-toc-link:hover {
    background: #eff6ff;
    color: #033E8C;
}

.polipriva-toc-link.active {
    background: #eff6ff;
    color: #033E8C;
    border-left-color: #033E8C;
    font-weight: 700;
}

.polipriva-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
}

.polipriva-toc-link.active .polipriva-toc-num {
    background: #033E8C;
    color: #ffffff;
}

/* Widgets Lateral */
.polipriva-security-box {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.polipriva-security-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.polipriva-security-desc {
    font-size: 0.84rem;
    color: #e0f2fe;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.polipriva-security-btn,
.polipriva-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    background: #ff6f00;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    user-select: all;
    cursor: text;
}

.polipriva-security-btn:hover,
.polipriva-legal-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Columna de Contenido */
.polipriva-content-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.polipriva-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 96px;
    transition: border-color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.polipriva-card:hover {
    border-color: #cbd5e1;
}

.polipriva-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.polipriva-clause-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: #eff6ff;
    color: #033E8C;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.polipriva-card-title {
    font-size: clamp(1.2rem, 3vw, 1.42rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.polipriva-p {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.polipriva-p:last-child {
    margin-bottom: 0;
}

.polipriva-ul {
    margin: 14px 0 18px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.polipriva-li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.65;
    word-break: break-word;
}

.polipriva-li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #033E8C;
}

.polipriva-callout {
    background: #f8fafc;
    border-left: 4px solid #033E8C;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.6;
}

.polipriva-callout-success {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #166534;
    line-height: 1.6;
}

.polipriva-callout-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.polipriva-callout-text {
    margin: 0;
}

/* Grilla de Derechos */
.polipriva-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.polipriva-right-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.polipriva-right-item:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.polipriva-right-item h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #033E8C;
    margin: 0;
}

.polipriva-right-item p {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* Banner de Aviso */
.polipriva-notice-banner {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    box-shadow: 0 12px 32px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.polipriva-notice-banner h3 {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.polipriva-notice-banner p {
    font-size: 0.92rem;
    color: #e0f2fe;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .polipriva-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .polipriva-sidebar {
        position: static;
        width: 100%;
    }

    .polipriva-toc-nav {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .polipriva-container {
        padding: 0 16px;
    }

    .polipriva-hero {
        padding: 100px 0 35px 0;
    }

    .polipriva-hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .polipriva-meta-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .polipriva-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .polipriva-rights-grid {
        grid-template-columns: 1fr;
    }

    .polipriva-notice-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 18px;
    }
}
/* =================================================================*
 *                           POLITICAS DE COOKIES                     *
 * =================================================================*/
.policoo-body {
    background-color: #f8fafc;
    color: #334155;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.policoo-body * {
    box-sizing: border-box;
}

.policoo-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.policoo-hero {
    background: radial-gradient(circle at 85% 20%, rgba(3, 62, 140, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 125px 0 45px 0;
    position: relative;
}

.policoo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #033E8C;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.policoo-hero-badge svg {
    flex-shrink: 0;
}

.policoo-hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.policoo-hero-highlight {
    background: linear-gradient(135deg, #033E8C 0%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policoo-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 780px;
    margin: 0 0 24px 0;
    line-height: 1.7;
    word-break: break-word;
}

.policoo-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.policoo-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.policoo-meta-pill strong {
    color: #0f172a;
}

/* Breadcrumb */
.policoo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    padding: 18px 0;
}

.policoo-breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.policoo-breadcrumb-link:hover {
    color: #033E8C;
}

.policoo-breadcrumb-sep {
    color: #cbd5e1;
}

.policoo-breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
}

/* Contenido Principal y Layout */
.policoo-main-sec {
    padding-bottom: 90px;
}

.policoo-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sidebar & Tabla de Contenido Sticky */
.policoo-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

.policoo-toc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
}

.policoo-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.policoo-toc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policoo-toc-title svg {
    color: #033E8C;
}

.policoo-toc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #033E8C;
    background: rgba(3, 62, 140, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.policoo-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.policoo-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.policoo-toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.policoo-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.policoo-toc-link:hover {
    background: #eff6ff;
    color: #033E8C;
}

.policoo-toc-link.active {
    background: #eff6ff;
    color: #033E8C;
    border-left-color: #033E8C;
    font-weight: 700;
}

.policoo-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
}

.policoo-toc-link.active .policoo-toc-num {
    background: #033E8C;
    color: #ffffff;
}

/* Widgets Lateral */
.policoo-security-box {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.policoo-security-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.policoo-security-desc {
    font-size: 0.84rem;
    color: #e0f2fe;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.policoo-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    background: #ff6f00;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    user-select: all;
    cursor: text;
}

.policoo-legal-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Columna de Contenido */
.policoo-content-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.policoo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 96px;
    transition: border-color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.policoo-card:hover {
    border-color: #cbd5e1;
}

.policoo-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.policoo-clause-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: #eff6ff;
    color: #033E8C;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.policoo-card-title {
    font-size: clamp(1.2rem, 3vw, 1.42rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.policoo-p {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.policoo-p:last-child {
    margin-bottom: 0;
}

.policoo-ul {
    margin: 14px 0 18px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policoo-li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.65;
    word-break: break-word;
}

.policoo-li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #033E8C;
}

/* Tablas de Cookies */
.policoo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 18px 0;
    max-width: 100%;
}

.policoo-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.policoo-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.policoo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.55;
    word-break: break-word;
}

.policoo-table tr:last-child td {
    border-bottom: none;
}

.policoo-cookie-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.policoo-badge-tech {
    background: #eff6ff;
    color: #033E8C;
    border: 1px solid #bfdbfe;
}

.policoo-badge-sec {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Tarjetas de Navegadores */
.policoo-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.policoo-browser-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
    color: #033E8C;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.92rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.policoo-browser-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.policoo-browser-card span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

/* Banner de Aviso */
.policoo-notice-banner {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    box-shadow: 0 12px 32px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.policoo-notice-banner h3 {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.policoo-notice-banner p {
    font-size: 0.92rem;
    color: #e0f2fe;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .policoo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .policoo-sidebar {
        position: static;
        width: 100%;
    }

    .policoo-toc-nav {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .policoo-container {
        padding: 0 16px;
    }

    .policoo-hero {
        padding: 100px 0 35px 0;
    }

    .policoo-hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .policoo-meta-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .policoo-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .policoo-notice-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 18px;
    }
}

/* ── CMP Gestor de Consentimiento (ePrivacy / RGPD) ── */
#cmp-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    padding: 20px 28px;
    box-shadow: 0 -6px 32px rgba(0,0,0,0.35);
    border-top: 2px solid rgba(3,62,140,0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#cmp-banner.cmp-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
#cmp-banner .cmp-text {
    flex: 1;
    min-width: 220px;
}
#cmp-banner .cmp-text strong {
    display: block;
    font-size: 0.97rem;
    color: #e2e8f0;
    margin-bottom: 4px;
}
#cmp-banner .cmp-text a {
    color: #60a5fa;
    text-decoration: underline;
}
#cmp-banner .cmp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.cmp-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cmp-btn-accept {
    background: #033E8C;
    color: #fff;
}
.cmp-btn-accept:hover { background: #0253b8; }
.cmp-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}
.cmp-btn-reject:hover { background: #1e293b; color: #f1f5f9; }
.cmp-btn-config {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #1e40af;
}
.cmp-btn-config:hover { background: #1e3a5f; }

#cmp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#cmp-modal-overlay.cmp-modal-visible {
    opacity: 1;
    pointer-events: all;
}
#cmp-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#cmp-modal h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
#cmp-modal .cmp-modal-sub {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 24px;
}
.cmp-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 14px;
}
.cmp-pref-row:last-of-type { border-bottom: none; }
.cmp-pref-label { font-size: 0.9rem; font-weight: 700; color: #0f172a; }
.cmp-pref-desc { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.cmp-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cmp-toggle input { opacity: 0; width: 0; height: 0; }
.cmp-slider {
    position: absolute; inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s;
}
.cmp-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.cmp-toggle input:checked + .cmp-slider { background: #033E8C; }
.cmp-toggle input:checked + .cmp-slider::before { transform: translateX(18px); }
.cmp-toggle input:disabled + .cmp-slider { opacity: 0.55; cursor: not-allowed; }
.cmp-modal-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#cmp-reconfigure-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9998;
    background: #033E8C;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 20px rgba(3,62,140,0.35);
    transition: opacity 0.3s ease, transform 0.2s ease;
    font-family: system-ui, sans-serif;
    opacity: 0;
    pointer-events: none;
}
#cmp-reconfigure-btn.cmp-fab-visible {
    opacity: 1;
    pointer-events: all;
}
#cmp-reconfigure-btn:hover {
    background: #0253b8;
    transform: translateY(-2px);
}

/* =================================================================*
 *                           DESCARGO DE RESPONSABILIDAD                     *
 * =================================================================*/
.desrespon-body {
    background-color: #f8fafc;
    color: #334155;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.desrespon-body * {
    box-sizing: border-box;
}

.desrespon-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.desrespon-hero {
    background: radial-gradient(circle at 85% 20%, rgba(3, 62, 140, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 125px 0 45px 0;
    position: relative;
}

.desrespon-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #033E8C;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.desrespon-hero-badge svg {
    flex-shrink: 0;
}

.desrespon-hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.desrespon-hero-highlight {
    background: linear-gradient(135deg, #033E8C 0%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desrespon-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 780px;
    margin: 0 0 24px 0;
    line-height: 1.7;
    word-break: break-word;
}

.desrespon-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.desrespon-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.desrespon-meta-pill strong {
    color: #0f172a;
}

/* Breadcrumb */
.desrespon-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    padding: 18px 0;
}

.desrespon-breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.desrespon-breadcrumb-link:hover {
    color: #033E8C;
}

.desrespon-breadcrumb-sep {
    color: #cbd5e1;
}

.desrespon-breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
}

/* Contenido Principal y Layout */
.desrespon-main-sec {
    padding-bottom: 90px;
}

.desrespon-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sidebar & Tabla de Contenido Sticky */
.desrespon-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

.desrespon-toc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
}

.desrespon-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.desrespon-toc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desrespon-toc-title svg {
    color: #033E8C;
}

.desrespon-toc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #033E8C;
    background: rgba(3, 62, 140, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.desrespon-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.desrespon-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.desrespon-toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.desrespon-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.desrespon-toc-link:hover {
    background: #eff6ff;
    color: #033E8C;
}

.desrespon-toc-link.active {
    background: #eff6ff;
    color: #033E8C;
    border-left-color: #033E8C;
    font-weight: 700;
}

.desrespon-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
}

.desrespon-toc-link.active .desrespon-toc-num {
    background: #033E8C;
    color: #ffffff;
}

/* Widgets Lateral */
.desrespon-alert-box {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 8px 24px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.desrespon-alert-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.desrespon-alert-desc {
    font-size: 0.84rem;
    color: #e0f2fe;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.desrespon-alert-btn,
.desrespon-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    background: #ff6f00;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    user-select: all;
    cursor: text;
}

.desrespon-alert-btn:hover,
.desrespon-legal-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Columna de Contenido */
.desrespon-content-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.desrespon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 96px;
    transition: border-color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.desrespon-card:hover {
    border-color: #cbd5e1;
}

.desrespon-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.desrespon-clause-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: #eff6ff;
    color: #033E8C;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.desrespon-card-title {
    font-size: clamp(1.2rem, 3vw, 1.42rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.desrespon-p {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.desrespon-p:last-child {
    margin-bottom: 0;
}

.desrespon-ul {
    margin: 14px 0 18px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desrespon-li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.65;
    word-break: break-word;
}

.desrespon-li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #033E8C;
}

.desrespon-callout {
    background: #f8fafc;
    border-left: 4px solid #033E8C;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.6;
}

.desrespon-callout-critical {
    background: #fff7ed;
    border-left: 4px solid #ea580c;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #9a3412;
    line-height: 1.6;
}

.desrespon-callout-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.desrespon-callout-text {
    margin: 0;
}

/* Grilla de Responsabilidades */
.desrespon-liability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.desrespon-liability-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.desrespon-liability-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.desrespon-liability-card h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #033E8C;
    margin: 0;
}

.desrespon-liability-card p {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* Banner de Aviso */
.desrespon-notice-banner {
    background: linear-gradient(135deg, #033E8C 0%, #02295e 100%);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    box-shadow: 0 12px 32px -4px rgba(3, 62, 140, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.desrespon-notice-banner h3 {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.desrespon-notice-banner p {
    font-size: 0.92rem;
    color: #e0f2fe;
    margin: 0;
    line-height: 1.6;
}

.desrespon-notice-banner a {
    flex-shrink: 0;
}

.desrespon-callout-shield {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #166534;
    line-height: 1.6;
}

.desrespon-callout-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.92rem;
    color: #991b1b;
    line-height: 1.6;
}

/* Checkbox Interactivo de Consentimiento */
.desrespon-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 18px 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.desrespon-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.desrespon-checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: #ff6f00;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.desrespon-checkbox-label {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #ffffff;
    cursor: pointer;
}

.desrespon-btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
    cursor: not-allowed !important;
    transition: all 0.25s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .desrespon-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .desrespon-sidebar {
        position: static;
        width: 100%;
    }

    .desrespon-toc-nav {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .desrespon-container {
        padding: 0 16px;
    }

    .desrespon-hero {
        padding: 100px 0 35px 0;
    }

    .desrespon-hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .desrespon-meta-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .desrespon-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .desrespon-liability-grid {
        grid-template-columns: 1fr;
    }

    .desrespon-notice-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 18px;
    }

    .desrespon-notice-banner a {
        width: 100%;
        display: block;
        text-align: center;
    }
}
