/* --- Rifas: estilos públicos, comprobante y administración --- */
:root {
    --rif-violet: #6d28d9;
    --rif-violet2: #8b5cf6;
    --rif-dark: #0f0a1a;
    --rif-card: rgba(255, 255, 255, 0.06);
    --rif-border: rgba(255, 255, 255, 0.12);
    --rif-text: #f4f4f5;
    --rif-muted: #a1a1aa;
    --rif-ok: #22c55e;
    --rif-err: #f87171;
    --rif-radius: 16px;
    --rif-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

.rif-body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--rif-text);
    background: var(--rif-dark);
}

.rif-public {
    position: relative;
    overflow-x: hidden;
}
.rif-stage {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    padding-bottom: 2rem;
}

.rif-pub-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, #3b0764 0%, var(--rif-dark) 55%);
    pointer-events: none;
}

.rif-pub-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.rif-pub-orb1 { width: 420px; height: 420px; background: var(--rif-violet2); top: 10%; left: -10%; }
.rif-pub-orb2 { width: 360px; height: 360px; background: #ec4899; bottom: 20%; right: -5%; }

.rif-pub-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.rif-pub-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.25rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.rif-pub-logo {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.rif-pub-logo i { color: var(--rif-violet2); margin-right: 0.35rem; }

.rif-pub-price-badge {
    background: linear-gradient(135deg, var(--rif-violet), var(--rif-violet2));
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
}
.rif-pub-price-badge span { font-weight: 500; opacity: 0.85; font-size: 0.8rem; margin-left: 0.25rem; }

.rif-head-chip {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(167, 139, 250, 0.45);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.83rem;
    color: #ddd6fe;
    max-width: min(360px, calc(100vw - 2.5rem));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rif-head-chip i { margin-right: 0.35rem; color: #c4b5fd; }

.rif-hero {
    position: relative;
    z-index: 5;
    padding: 0 1.25rem 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.rif-hero-inner { animation: rifFadeUp 0.7s ease-out; }

@keyframes rifFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.rif-hero-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.15;
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rif-hero-imgwrap {
    border-radius: var(--rif-radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--rif-shadow);
    border: 1px solid var(--rif-border);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}
.rif-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.rif-hero-card {
    background: var(--rif-card);
    border: 1px solid var(--rif-border);
    border-radius: var(--rif-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(12px);
}
.rif-hero-card-alt { border-color: rgba(236, 72, 153, 0.25); }

.rif-hero-card h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
    color: #e9d5ff;
}
.rif-hero-card h2 i { margin-right: 0.4rem; color: var(--rif-violet2); }
.rif-hero-card p {
    margin: 0;
    color: var(--rif-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.rif-grid-section {
    position: relative;
    z-index: 6;
    max-width: 760px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
}

.rif-grid-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.rif-grid-head h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
}
.rif-grid-head h2 i { color: var(--rif-violet2); margin-right: 0.35rem; }

.rif-muted { color: var(--rif-muted); }
.rif-small { font-size: 0.85rem; }

.rif-floating-info {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0.5rem 0 1rem;
    pointer-events: auto;
}

.rif-float-card {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.17), rgba(255, 255, 255, 0.04));
    border-color: rgba(196, 181, 253, 0.32);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    animation: none;
}

.rif-float-card h2 {
    font-size: 0.95rem;
}

.rif-float-card p {
    font-size: 0.9rem;
}

.rif-float-tone-1 { background: linear-gradient(145deg, rgba(99, 102, 241, 0.30), rgba(30, 41, 59, 0.24)); border-color: rgba(129, 140, 248, 0.55); }
.rif-float-tone-2 { background: linear-gradient(145deg, rgba(14, 165, 233, 0.30), rgba(12, 74, 110, 0.24)); border-color: rgba(56, 189, 248, 0.55); }
.rif-float-tone-3 { background: linear-gradient(145deg, rgba(16, 185, 129, 0.30), rgba(20, 83, 45, 0.24)); border-color: rgba(52, 211, 153, 0.55); }
.rif-float-tone-4 { background: linear-gradient(145deg, rgba(234, 179, 8, 0.30), rgba(113, 63, 18, 0.24)); border-color: rgba(250, 204, 21, 0.55); }
.rif-float-tone-5 { background: linear-gradient(145deg, rgba(249, 115, 22, 0.30), rgba(124, 45, 18, 0.24)); border-color: rgba(251, 146, 60, 0.55); }
.rif-float-tone-6 { background: linear-gradient(145deg, rgba(236, 72, 153, 0.30), rgba(131, 24, 67, 0.24)); border-color: rgba(244, 114, 182, 0.55); }
.rif-float-tone-7 { background: linear-gradient(145deg, rgba(168, 85, 247, 0.30), rgba(76, 29, 149, 0.24)); border-color: rgba(192, 132, 252, 0.55); }
.rif-float-tone-8 { background: linear-gradient(145deg, rgba(239, 68, 68, 0.30), rgba(127, 29, 29, 0.24)); border-color: rgba(248, 113, 113, 0.55); }

/* Fractal / lluvia de huellitas */
.rif-paw-rain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.rif-paw-cluster {
    position: absolute;
    top: -80px;
    display: block;
    font-size: 19px;
    color: #ffffff;
    opacity: 0.9;
    text-shadow:
        0 0 8px rgba(255,255,255,0.65),
        0 0 18px rgba(255,255,255,0.45),
        0 4px 12px rgba(0,0,0,0.3);
    animation-name: rifPawFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.rif-paw-cluster i {
    position: absolute;
    font-style: normal;
}

.rif-paw-cluster i:nth-child(1) { left: 0; top: 0; font-size: 1em; }
.rif-paw-cluster i:nth-child(2) { left: 13px; top: 14px; font-size: 0.82em; opacity: 0.92; }
.rif-paw-cluster i:nth-child(3) { left: -10px; top: 19px; font-size: 0.7em; opacity: 0.85; }

@keyframes rifPawFall {
    0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
    8% { opacity: 0.95; }
    86% { opacity: 0.88; }
    100% { transform: translate3d(var(--paw-drift, 30px), 115vh, 0) rotate(260deg); opacity: 0; }
}

/* Cuadrícula 3D */
.rif-cells {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 7px;
    perspective: 900px;
}

.rif-cell {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    color: #faf5ff;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotateX(6deg) translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(15, 10, 26, 0.9));
    box-shadow:
        0 4px 0 rgba(76, 29, 149, 0.85),
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rif-cell::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 7px;
    background: linear-gradient(160deg, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.rif-cell:hover:not(:disabled) {
    transform: rotateX(0deg) translateY(-4px) scale(1.04);
    box-shadow:
        0 6px 0 rgba(109, 40, 217, 0.9),
        0 18px 32px rgba(109, 40, 217, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rif-cell:active:not(:disabled) {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 0 rgba(76, 29, 149, 0.9), 0 4px 12px rgba(0,0,0,0.3);
}

.rif-cell-taken {
    cursor: not-allowed;
    opacity: 0.28;
    filter: grayscale(0.6);
    transform: rotateX(12deg) scale(0.95);
    box-shadow: 0 2px 0 rgba(0,0,0,0.3), inset 0 0 20px rgba(0,0,0,0.4);
}

.rif-pub-foot {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem 2.5rem;
}
.rif-foot-admin {
    color: var(--rif-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.rif-foot-admin:hover { color: #fff; }

/* Modal */
.rif-modal[hidden] { display: none !important; }

.rif-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rif-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.rif-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(165deg, #1e1535 0%, #120a22 100%);
    border: 1px solid var(--rif-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--rif-shadow);
    animation: rifModalIn 0.35s ease-out;
}

@keyframes rifModalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.rif-modal-x {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}
.rif-modal-x:hover { background: rgba(255,255,255,0.15); }

.rif-modal-panel h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    padding-right: 2rem;
}
#rifModalNum {
    color: var(--rif-violet2);
    font-weight: 800;
}
.rif-modal-price { margin: 0 0 1rem; color: var(--rif-muted); font-size: 0.95rem; }
.rif-modal-price strong { color: #fff; }

.rif-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.rif-modal-actions .rif-btn { flex: 1; }

/* Formularios compartidos */
.rif-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rif-muted);
    margin: 0.75rem 0 0.35rem;
}
.rif-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--rif-border);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}
.rif-input:focus {
    outline: none;
    border-color: var(--rif-violet2);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.rif-textarea { min-height: 100px; resize: vertical; }

.rif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, var(--rif-violet), var(--rif-violet2));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.45);
}
.rif-btn:hover { filter: brightness(1.08); }
.rif-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.rif-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #e4e4e7;
}

.rif-flash {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.rif-flash-ok { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.rif-flash-err { background: rgba(248, 113, 113, 0.12); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.35); }

/* Auth */
.rif-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: radial-gradient(ellipse at top, #3b0764, var(--rif-dark));
}
.rif-auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 21, 53, 0.9);
    border: 1px solid var(--rif-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--rif-shadow);
}
.rif-auth-card h1 {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}
.rif-auth-card code { font-size: 0.85rem; color: #c4b5fd; }

/* Admin */
.rif-admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 10, 26, 0.95);
    border-bottom: 1px solid var(--rif-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.rif-admin-brand {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.rif-admin-head nav {
    display: flex;
    gap: 1rem;
}
.rif-admin-head a {
    color: var(--rif-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.rif-admin-head a:hover { color: #fff; }

.rif-admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.rif-admin-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.rif-kpi {
    background: var(--rif-card);
    border: 1px solid var(--rif-border);
    border-radius: var(--rif-radius);
    padding: 1.25rem;
}
.rif-kpi-accent {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(30, 21, 53, 0.9));
    border-color: rgba(139, 92, 246, 0.35);
}
.rif-kpi-label { font-size: 0.8rem; color: var(--rif-muted); display: block; }
.rif-kpi-val { font-family: "Outfit", sans-serif; font-size: 1.75rem; display: block; margin: 0.25rem 0; }
.rif-kpi-sub { font-size: 0.75rem; color: var(--rif-muted); }

.rif-admin-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
    .rif-admin-grid2 { grid-template-columns: 1fr; }
    .rif-pub-head {
        justify-content: center;
        gap: 0.5rem;
    }
    .rif-head-chip {
        width: 100%;
        max-width: none;
    }
}

.rif-card {
    background: rgba(30, 21, 53, 0.65);
    border: 1px solid var(--rif-border);
    border-radius: var(--rif-radius);
    padding: 1.35rem 1.5rem;
}
.rif-card h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    margin: 0 0 1rem;
}
.rif-chart-wrap { height: 260px; position: relative; }

.rif-card-table { margin-top: 0; }

.rif-table-scroll { overflow-x: auto; }
.rif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.rif-table th, .rif-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--rif-border);
}
.rif-table th { color: var(--rif-muted); font-weight: 600; }
.rif-table a { color: var(--rif-violet2); }

.rif-dash-charts { margin-bottom: 1.25rem; }
.rif-dash-intro { margin: 0 0 0.25rem; font-size: 0.9rem; }
.rif-admin-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}
@media (max-width: 1024px) {
    .rif-admin-grid3 { grid-template-columns: 1fr; }
}
.rif-chart-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--rif-border);
    border-radius: var(--rif-radius);
    padding: 1rem 1rem 1.1rem;
}
.rif-chart-title {
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #e9d5ff;
}
.rif-chart-title i { margin-right: 0.35rem; color: var(--rif-violet2); }
.rif-chart-wrap-sm { height: 220px; position: relative; }

.rif-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rif-badge-ok {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.rif-badge-warn {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.rif-admin-table-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
}
.rif-admin-filters {
    margin-bottom: 1.15rem;
}
.rif-admin-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.rif-admin-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
    flex: 1 1 200px;
}
.rif-admin-filter-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a1aa;
}
.rif-admin-filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rif-cell-pago { min-width: 130px; vertical-align: middle; }
.rif-pay-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.rif-pay-form { margin: 0; }
.rif-btn-pay-icon {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    min-width: 2.15rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}
.rif-btn-pay-icon:hover { filter: brightness(1.12); }
.rif-btn-pay-ok {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.12);
}
.rif-btn-pay-pend {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
}
.rif-card-hint p strong { color: #e4e4e7; }
.rif-hint-ok { color: #86efac; }
.rif-hint-bad { color: #fca5a5; }

/* Comprobante */
.rif-comp-body {
    background: linear-gradient(160deg, #1a0b2e 0%, #0f0a1a 50%, #312e81 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.rif-comp-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.rif-comp-ticket {
    background: linear-gradient(180deg, #faf5ff 0%, #fff 12%, #f4f4f5 100%);
    color: #18181b;
    border-radius: 24px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.rif-comp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.rif-comp-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rif-violet), var(--rif-violet2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.rif-comp-title { font-family: "Outfit", sans-serif; font-size: 1.25rem; margin: 0; line-height: 1.2; }
.rif-comp-sub { margin: 0.2rem 0 0; font-size: 0.85rem; color: #71717a; }

.rif-comp-imgbox {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e4e4e7;
}
.rif-comp-imgbox img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.rif-comp-gracias {
    text-align: center;
    padding: 1rem 0 1.25rem;
    border-bottom: 2px dashed #d4d4d8;
}
.rif-comp-heart { color: #e11d48; font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.rif-comp-gracias h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    background: linear-gradient(90deg, var(--rif-violet), #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rif-comp-gracias p { margin: 0; color: #52525b; font-size: 0.95rem; }

.rif-comp-bignum {
    text-align: center;
    padding: 1.25rem 0;
}
.rif-comp-biglabel { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: #71717a; margin-bottom: 0.25rem; }
.rif-comp-digits {
    font-family: "Outfit", sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--rif-violet);
    text-shadow: 0 4px 0 #ddd6fe;
    letter-spacing: 0.08em;
}

.rif-comp-details {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rif-comp-details li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e4e4e7;
    font-size: 0.9rem;
}
.rif-comp-details span { color: #71717a; }
.rif-comp-details strong { text-align: right; }

.rif-comp-pago-msg {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border-radius: 12px;
    border: 1px solid #ddd6fe;
}
.rif-comp-pago-msg p {
    margin: 0;
    font-size: 0.92rem;
    color: #4c1d95;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}
.rif-comp-pago-msg i { margin-right: 0.4rem; color: var(--rif-violet); }

.rif-comp-perf {
    height: 10px;
    margin: 1.25rem -1.5rem 0;
    background: repeating-linear-gradient(90deg, #e4e4e7, #e4e4e7 8px, transparent 8px, transparent 14px);
}
.rif-comp-foot {
    text-align: center;
    font-size: 0.72rem;
    color: #a1a1aa;
    margin: 0.75rem 0 0;
}

.rif-comp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.rif-comp-actions .rif-btn { color: #fff; }
.rif-comp-actions .rif-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

@media print {
    .rif-comp-actions { display: none; }
    .rif-comp-body { background: #fff; padding: 0; }
}
