:root {
    --sc-navy: #0F172A;
    --sc-navy-mid: #1E293B;
    --sc-orange: #F97316;
    --sc-orange-hover: #EA580C;
    --sc-emerald: #10B981;
    --sc-bg: #F8FAFC;
    --sc-slate: #475569;
    --sc-border: #E2E8F0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--sc-bg);
    color: var(--sc-navy);
}

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Montserrat', sans-serif;
}

.sc-navbar {
    background-color: var(--sc-navy);
    border-bottom: 2px solid rgba(249, 115, 22, 0.35);
    padding: 0.65rem 0;
}

.sc-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 0.5rem;
    transition: all 0.18s ease;
}

.sc-navbar .nav-link:hover, .sc-navbar .nav-link.active {
    color: #fff;
    background-color: rgba(249, 115, 22, 0.16);
}

.sc-btn-orange {
    background-color: var(--sc-orange);
    border-color: var(--sc-orange);
    color: #fff;
}

.sc-btn-orange:hover, .sc-btn-orange:focus {
    background-color: var(--sc-orange-hover);
    border-color: var(--sc-orange-hover);
    color: #fff;
}

.sc-btn-navy {
    background-color: var(--sc-navy);
    border-color: var(--sc-navy);
    color: #fff;
}

.sc-btn-navy:hover {
    background-color: var(--sc-navy-mid);
    color: #fff;
}

.text-sc-orange { color: var(--sc-orange) !important; }
.text-sc-navy { color: var(--sc-navy) !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.bg-sc-navy { background-color: var(--sc-navy) !important; }
.bg-sc-orange-soft { background-color: #FFEDD5 !important; color: #9A3412 !important; }

.sc-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 65%, #271A12 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #FDBA74;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
}

.sc-progress {
    height: 12px;
    border-radius: 999px;
    background-color: #E2E8F0;
    overflow: hidden;
}

.sc-progress .progress-bar {
    background: linear-gradient(90deg, #F97316 0%, #10B981 100%);
    border-radius: 999px;
}

.sc-pay-box {
    border: 2px solid var(--sc-border);
    border-radius: 0.9rem;
    padding: 1rem;
    background: #fff;
}

.sc-pay-box.yape { border-color: #742284; }
.sc-pay-box.lemon { border-color: #00D95F; }
.sc-pay-box.banco { border-color: var(--sc-navy); }

/* Tablero de Tickets del Sorteo Solidario */
.sc-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.5rem;
}

.sc-ticket-btn {
    border: 2px solid #CBD5E1;
    border-radius: 0.7rem;
    padding: 0.55rem 0.35rem;
    text-align: center;
    background: #fff;
    transition: all 0.15s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 68px;
}

.sc-ticket-btn .num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
}

.sc-ticket-btn .lbl {
    font-size: 0.68rem;
    line-height: 1.15;
    margin-top: 0.2rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-ticket-btn.disponible {
    border-color: #CBD5E1;
    color: var(--sc-navy);
}
.sc-ticket-btn.disponible:hover {
    border-color: var(--sc-orange);
    background: #FFF7ED;
    transform: translateY(-2px);
}
.sc-ticket-btn.seleccionado {
    border-color: var(--sc-orange);
    background: var(--sc-orange);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.sc-ticket-btn.reservado {
    border-color: #F59E0B;
    background: #FEF3C7;
    color: #92400E;
    cursor: not-allowed;
}
.sc-ticket-btn.confirmado {
    border-color: #10B981;
    background: #ECFDF5;
    color: #065F46;
    cursor: default;
}
.sc-ticket-btn.resaltado {
    outline: 3px solid var(--sc-orange);
    transform: scale(1.06);
}

.sc-footer {
    background-color: var(--sc-navy);
}

.sc-footer-link {
    color: #CBD5E1;
    text-decoration: none;
}

.sc-footer-link:hover {
    color: var(--sc-orange);
}

.sc-social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Caja de pagos con pestañas en /sorteo */
.sc-sorteo-paybox {
    background: linear-gradient(155deg, #0F172A 0%, #16223A 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sc-pay-tabs {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px;
}

.sc-pay-tabs .nav-link {
    color: #CBD5E1;
    border-radius: 999px;
    font-size: 0.78rem;
    transition: all 0.18s ease;
}

.sc-pay-tabs .nav-link:hover {
    color: #fff;
}

.sc-pay-tabs .nav-link.active {
    background: var(--sc-orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* Widget flotante profesional WhatsApp (2 líneas principales) */
.sc-wa-widget {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.sc-wa-float {
    position: relative;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sc-wa-float:hover {
    transform: scale(1.07);
    background: #1FB858;
    color: #fff;
}

.sc-wa-float .sc-wa-icon-close {
    display: none;
}

.sc-wa-widget.open .sc-wa-float {
    background: var(--sc-navy);
}

.sc-wa-widget.open .sc-wa-icon-open,
.sc-wa-widget.open .sc-wa-badge {
    display: none;
}

.sc-wa-widget.open .sc-wa-icon-close {
    display: inline-block;
}

.sc-wa-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--sc-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.sc-wa-popup {
    width: 295px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sc-wa-widget.open .sc-wa-popup {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.sc-wa-popup-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: #fff;
    padding: 0.85rem 1rem;
}

.sc-wa-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.sc-wa-popup-body {
    padding: 0.75rem;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sc-wa-line-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sc-wa-line-item:hover {
    border-color: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.14);
}

.sc-wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.14);
    color: #16A34A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sc-wa-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
}

/* Tarjetas Premium con Portada Real + Reproductor Modal (Opción 2) */
.sc-video-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 13;
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 60%, #2A1910 100%);
    overflow: hidden;
    cursor: pointer;
}

.sc-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sc-video-poster:hover img {
    transform: scale(1.06);
}

.sc-video-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.18) 0%, rgba(15,23,42,0.12) 45%, rgba(15,23,42,0.86) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem;
}

.sc-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.94);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.55);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sc-video-poster:hover .sc-play-circle {
    transform: translate(-50%, -50%) scale(1.1);
    background: #EA580C;
}

.sc-modal-video-frame {
    position: relative;
    width: 100%;
    min-width: 325px;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}

.sc-modal-video-frame.vertical {
    height: 620px;
}

.sc-modal-video-frame.horizontal {
    aspect-ratio: 16 / 9;
}

.sc-modal-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
