/* ============================================================
   MILAN RICH — Ruleta · Minimal (Airbnb/Apple style)
   Casi solo texto · un acento rojo · sin badges ni gradientes
   ============================================================ */

:root {
    --mrc-red: #950606;
    --mrc-red-hover: #7a0505;
    --mrc-ink: #111;
    --mrc-ink-2: #717171;
    --mrc-ink-3: #b0b0b0;
    --mrc-hairline: #ebebeb;
    --mrc-bg: #ffffff;
}

/* ── Overlay ── */
.rl-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.rl-overlay.is-open { opacity: 1; visibility: visible; }

/* ── Modal ── */
.rl-modal {
    background: var(--mrc-bg);
    border-radius: 12px;
    width: 100%; max-width: 440px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.rl-overlay.is-open .rl-modal { transform: translateY(0); opacity: 1; }

/* ── Close ── */
.rl-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    background: transparent;
    border: none;
    color: var(--mrc-ink);
    font-size: 22px;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.rl-close:hover { background: #f7f7f7; }

/* ── Header ── */
.rl-header {
    text-align: center;
    padding: 40px 32px 4px;
}
.rl-gift-icon, .rl-eyebrow { display: none; }
.rl-title {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 32px; font-weight: 700;
    color: var(--mrc-red);
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.rl-sub {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    color: var(--mrc-ink-2);
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ── Wheel ── */
.rl-wheel-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 0 16px;
    width: 320px; height: 340px;
    margin: 0 auto;
}
.rl-wheel-img {
    width: 280px; height: 280px;
    position: absolute;
    top: 50%; left: 50%;
    margin-top: -140px; margin-left: -140px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.10));
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transform-origin: center center;
}
.rl-pointer-img {
    position: absolute;
    top: 32px; left: 50%;
    transform: translateX(-50%);
    width: 44px;
    z-index: 5;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.20));
    user-select: none;
    -webkit-user-select: none;
}
.rl-center-img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    z-index: 4;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    user-select: none;
    -webkit-user-select: none;
}
.rl-pointer, #rl-canvas { display: none; }

/* ── Form ── */
.rl-form { padding: 4px 32px 32px; }

.rl-input-wrap {
    position: relative;
    margin-bottom: 10px;
}
.rl-input-icon { display: none; }
.rl-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--mrc-hairline);
    border-radius: 8px;
    background: var(--mrc-bg);
    color: var(--mrc-ink);
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.rl-input::placeholder { color: var(--mrc-ink-3); }
.rl-input:focus {
    border-color: var(--mrc-ink);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}

.rl-error {
    color: var(--mrc-red);
    font-size: 12px;
    font-family: 'Manrope', sans-serif;
    margin: 4px 0 8px;
    text-align: left;
    font-weight: 500;
}

/* ── Spin Button ── */
.rl-spin-btn {
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: var(--mrc-red);
    color: #fff;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.rl-spin-btn:hover { background: var(--mrc-red-hover); }
.rl-spin-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.rl-legal {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 12px;
    color: var(--mrc-ink-3);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ────────────────────────────────────────────
   RESULT SCREEN — Editorial estructurado
   ──────────────────────────────────────────── */
#rl-step-result {
    padding: 40px 32px 32px;
    text-align: left;
}

.rl-result-hi {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 13px;
    color: var(--mrc-ink-2);
    margin: 0 0 20px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.rl-result-eyebrow {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mrc-red);
    margin: 22px 0 10px;
}

.rl-result-prize {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 40px; font-weight: 800;
    color: var(--mrc-ink);
    margin: 0 0 10px;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.rl-result-detail {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    color: var(--mrc-ink-2);
    margin: 0 0 22px;
    line-height: 1.5;
    max-width: 340px;
}

/* ── Conditions Box ── */
.rl-result-conditions {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 16px 0 20px;
    background: #fdf8f8;
    border: 1px solid #f0e0e0;
    border-radius: 10px;
    text-align: left;
}
.rl-conditions-icon {
    flex-shrink: 0;
    color: var(--mrc-red);
    margin-top: 1px;
}
.rl-conditions-text {
    flex: 1;
}
.rl-conditions-title {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--mrc-ink);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 6px;
}
.rl-conditions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rl-conditions-list li {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 12px;
    color: var(--mrc-ink-2);
    line-height: 1.55;
    padding: 3px 0;
    position: relative;
    padding-left: 16px;
}
.rl-conditions-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mrc-red);
    font-weight: 700;
    font-size: 11px;
}
.rl-conditions-list li strong {
    color: var(--mrc-ink);
    font-weight: 600;
}

.rl-result-divider {
    height: 1px;
    background: var(--mrc-hairline);
    margin: 0;
    border: none;
}

/* Filas meta (label izquierda / value derecha) */
.rl-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 12px;
}

.rl-result-meta-label {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mrc-ink-2);
    flex-shrink: 0;
}

.rl-result-meta-value {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Manrope', -apple-system, sans-serif;
}

.rl-result-countdown {
    font-size: 22px;
    font-weight: 700;
    color: var(--mrc-red);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1;
}

.rl-result-meta-unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--mrc-ink-2);
    letter-spacing: 0.01em;
}

.rl-result-meta-value-alt {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--mrc-ink);
    letter-spacing: 0.01em;
    text-align: right;
}

.rl-result-timer-line { display: none; } /* legacy */

.rl-shop-btn {
    width: 100%;
    padding: 15px 16px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: var(--mrc-red);
    color: #fff;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: block;
    text-align: center;
}
.rl-shop-btn:hover { background: var(--mrc-red-hover); }

/* ── Confetti (mantengo pero más discreto) ── */
.rl-confetti-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.rl-confetti-piece {
    position: absolute; top: -10px;
    width: 6px; height: 6px; border-radius: 1px;
    animation: rl-confetti-fall linear forwards;
}
@keyframes rl-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

/* ────────────────────────────────────────────
   STICKY BANNER — Minimal
   ──────────────────────────────────────────── */
.rl-sticky-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99990;
    background: var(--mrc-bg);
    color: var(--mrc-ink);
    padding: 0;
    border-bottom: 1px solid var(--mrc-hairline);
    animation: rl-banner-in 0.3s ease;
}
@keyframes rl-banner-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.rl-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}
.rl-sticky-icon, .rl-sticky-timer-wrap, .rl-sticky-sep { display: none; }

.rl-sticky-text {
    color: var(--mrc-ink-2);
    flex: 1 1 auto;
}
.rl-sticky-text strong {
    color: var(--mrc-ink);
    font-weight: 700;
}
.rl-sticky-detail { color: var(--mrc-ink-2); }

.rl-sticky-timer {
    color: var(--mrc-red);
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
}

/* ── Responsive ── */
@media (max-width: 440px) {
    .rl-modal { border-radius: 12px; max-height: 95vh; overflow-y: auto; }
    .rl-header { padding: 36px 24px 4px; }
    .rl-title { font-size: 28px; }
    .rl-form { padding: 4px 24px 24px; }
    .rl-wheel-wrap { width: 260px; height: 280px; }
    .rl-wheel-img { width: 240px; height: 240px; margin-top: -120px; margin-left: -120px; }
    .rl-pointer-img { width: 38px; top: 30px; }
    .rl-center-img { width: 50px; height: 50px; }
    #rl-step-result { padding: 40px 24px 24px; }
    .rl-result-prize { font-size: 34px; }
    .rl-sticky-inner { gap: 12px; padding: 10px 16px; font-size: 12px; }
    .rl-sticky-timer { font-size: 12px; }
}

/* ────────────────────────────────────────────
   REOPEN BANNER — "Girar la ruleta"
   ──────────────────────────────────────────── */
.rl-reopen-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99990;
    background: var(--mrc-bg);
    border-bottom: 1px solid var(--mrc-hairline);
    animation: rl-banner-in 0.3s ease;
}
.rl-reopen-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 24px;
    font-family: 'Manrope', -apple-system, sans-serif;
}
.rl-reopen-text {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--mrc-ink-2);
    flex: 1;
}
.rl-reopen-text svg { color: var(--mrc-red); flex-shrink: 0; }
.rl-reopen-text strong { color: var(--mrc-ink); font-weight: 700; }
.rl-reopen-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--mrc-red);
    color: #fff;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.rl-reopen-btn:hover { background: var(--mrc-red-hover); }

@media (max-width: 440px) {
    .rl-reopen-inner { padding: 8px 16px; gap: 10px; }
    .rl-reopen-text { font-size: 12px; }
    .rl-reopen-text svg { width: 14px; height: 14px; }
    .rl-reopen-btn { padding: 7px 14px; font-size: 11px; }
}

.hidden { display: none !important; }
