/* ============================================================
   Sistema de Sorteos — UTHGRA Brand Theme
   Colores del logo: lavanda, azul cyan, fondo oscuro
   ============================================================ */

:root {
    --uthgra-purple: #8a7fbf;
    --uthgra-purple-dark: #6b5f9e;
    --uthgra-purple-light: #a399d4;
    --uthgra-blue: #00b4e6;
    --uthgra-blue-dark: #0090bb;
    --uthgra-dark: #0a0a0a;
    --uthgra-dark-soft: #1a1a1a;
    --uthgra-gray: #444444;
    --uthgra-gray-light: #b8b8b8;
    --uthgra-bg: #f5f4f8;
    --uthgra-surface: #ffffff;
    --uthgra-border: #e4e2ea;
    --uthgra-text: #2c2c2c;
    --uthgra-muted: #6c757d;
    --uthgra-success: #1a7f4b;
    --uthgra-warning: #d97706;
    --uthgra-danger: #b91c1c;
    --uthgra-shadow: 0 4px 24px rgba(44, 44, 44, 0.08);
    --uthgra-shadow-lg: 0 12px 40px rgba(44, 44, 44, 0.12);
    --uthgra-radius: 1rem;
    --uthgra-radius-lg: 1.25rem;
    --uthgra-font: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Alias semánticos */
    --brand-primary: var(--uthgra-purple);
    --brand-primary-dark: var(--uthgra-purple-dark);
    --brand-accent: var(--uthgra-blue);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--uthgra-font);
    background-color: var(--uthgra-bg);
    color: var(--uthgra-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

/* ── Navbar + Logo ── */
.site-navbar {
    background: #f9f9f9;
    padding: 0.65rem 0;
    border-bottom: 2px solid var(--uthgra-purple-dark);
}

.navbar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.navbar-logo {
    height: 42px;
    width: auto;
    max-width: min(280px, 55vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}

.navbar-logo-sm {
    height: 36px;
    max-width: 200px;
}

.navbar-sorteo-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--uthgra-blue);
    background: rgba(0, 180, 230, 0.12);
    border: 1px solid rgba(0, 180, 230, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
}

.navbar-admin-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--uthgra-gray-light);
    white-space: nowrap;
}

.site-navbar .btn-nav {
    border: 1px solid rgba(255, 255, 255, 0.185);
    color: #0091CF;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
    background: transparent;
}

.site-navbar .btn-nav:hover {
    background: var(--uthgra-blue);
    border-color: var(--uthgra-blue);
    color: #fff;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, var(--uthgra-dark) 0%, var(--uthgra-purple-dark) 50%, var(--uthgra-blue-dark) 100%);
    color: #fff;
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(0, 180, 230, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(138, 127, 191, 0.25) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 180, 230, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 180, 230, 0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--uthgra-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--uthgra-blue);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── Countdown ── */
.countdown-wrapper {
    margin-top: 2rem;
}

.countdown-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 127, 191, 0.35);
    border-radius: var(--uthgra-radius);
    padding: 1rem 0.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s;
}

.countdown-box:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 180, 230, 0.5);
}

.countdown-value {
    display: block;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.countdown-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 0.35rem;
}

.countdown-finished .countdown-box {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.15);
}

.countdown-finished .countdown-title {
    color: #fbbf24;
}

/* ── Content sections ── */
.content-section {
    padding: 2.5rem 0;
}

.section-card {
    background: var(--uthgra-surface);
    border: 1px solid var(--uthgra-border);
    border-radius: var(--uthgra-radius-lg);
    box-shadow: var(--uthgra-shadow);
    overflow: hidden;
}

.section-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--uthgra-border);
    background: linear-gradient(to bottom, #fafafa, #fff);
}

.section-card-header h2,
.section-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--uthgra-purple-dark);
}

.section-card-header p {
    font-size: 0.875rem;
    color: var(--uthgra-muted);
    margin: 0.25rem 0 0;
}

.section-card-body {
    padding: 1.5rem;
}

.section-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--uthgra-purple), var(--uthgra-blue));
    color: #fff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ── Forms ── */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--uthgra-purple-dark);
    margin-bottom: 0.35rem;
}

.form-control {
    border: 1.5px solid var(--uthgra-border);
    border-radius: 0.65rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--uthgra-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 230, 0.15);
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 2.5rem;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--uthgra-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 4;
}

.btn-uthgra {
    background: linear-gradient(135deg, var(--uthgra-purple), var(--uthgra-blue-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.65rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-uthgra:hover,
.btn-uthgra:focus {
    background: linear-gradient(135deg, var(--uthgra-purple-light), var(--uthgra-blue));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 95, 158, 0.35);
}

.btn-uthgra:active {
    transform: translateY(0);
}

.btn-uthgra-outline {
    background: transparent;
    border: 1.5px solid var(--uthgra-purple);
    color: var(--uthgra-purple-dark);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.65rem;
    transition: all 0.2s;
}

.btn-uthgra-outline:hover {
    background: var(--uthgra-purple);
    border-color: var(--uthgra-purple);
    color: #fff;
}

/* ── Alerts ── */
.alert {
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf3;
    color: var(--uthgra-success);
}

.alert-danger {
    background: #fef2f2;
    color: var(--uthgra-danger);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-left: 4px solid var(--uthgra-blue);
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--uthgra-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--uthgra-purple);
}

/* ── History cards ── */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fafafa;
    border: 1px solid var(--uthgra-border);
    border-radius: var(--uthgra-radius);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.history-item:hover {
    box-shadow: var(--uthgra-shadow);
    border-color: rgba(138, 127, 191, 0.4);
}

.history-trophy {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--uthgra-purple-light), var(--uthgra-blue));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.history-trophy.no-winner {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.history-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--uthgra-purple-dark);
}

.history-meta {
    font-size: 0.82rem;
    color: var(--uthgra-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.history-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.history-winner {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--uthgra-purple-dark);
}

.history-winners-list {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.history-winners-list li {
    font-size: 0.9rem;
    color: var(--uthgra-purple-dark);
}

/* ── Footer ── */
.site-footer {
    background: hsl(0deg 0% 0% / 90%);
    color: rgba(255, 255, 255, 0.75);
    padding: 1.75rem 0;
    margin-top: auto;
    font-size: 0.85rem;
    border-top: 2px solid var(--uthgra-purple-dark);
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.footer-brand {
    font-weight: 600;
    color: var(--uthgra-gray-light);
    font-size: 0.82rem;
}

.footer-copy {
    font-size: 0.8rem;
}

.footer-link {
    color: var(--uthgra-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

/* ── Admin ── */
body.admin-body {
    background: var(--uthgra-bg);
}

.admin-navbar {
    padding: 0.6rem 0;
}

.admin-stat-card {
    background: linear-gradient(135deg, var(--uthgra-purple-dark), var(--uthgra-blue-dark));
    color: #fff;
    border-radius: var(--uthgra-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.admin-stat-card .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.admin-stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.admin-stat-card .stat-detail {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 0.35rem;
}

.btn-execute {
    background: linear-gradient(135deg, var(--uthgra-blue), var(--uthgra-blue-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-execute:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 180, 230, 0.35);
}

.btn-execute:disabled {
    opacity: 0.55;
}

.admin-table {
    font-size: 0.875rem;
}

.admin-table thead th {
    background: #f3f2f7;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--uthgra-purple-dark);
    border-bottom: 2px solid var(--uthgra-border);
}

.admin-table tbody tr {
    transition: background 0.15s;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.badge-estado-pendiente {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-estado-aprobado {
    background: #d1fae5;
    color: #065f46;
}

.badge-estado-rechazado {
    background: #fee2e2;
    color: #991b1b;
}

.badge-estado-inhabilitado {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
    font-size: 0.75rem;
}

.btn-action-sm {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 0.4rem;
}

.whatsapp-link {
    color: #128c7e;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.whatsapp-link:hover {
    color: #075e54;
    text-decoration: underline;
}

.whatsapp-link .bi-whatsapp {
    font-size: 1em;
}

/* ── Participantes accordion ── */
.participantes-accordion .accordion-item {
    overflow: hidden;
}

.participantes-accordion .accordion-button {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: #fff;
    color: var(--uthgra-text);
    box-shadow: none;
}

.participantes-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(to bottom, #fafafa, #fff);
    color: var(--uthgra-purple-dark);
    box-shadow: none;
}

.participantes-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--uthgra-border);
}

.participantes-accordion .accordion-button::after {
    filter: none;
}

/* ── Login ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(107, 95, 158, 0.85)),
        var(--uthgra-dark);
}

.login-card {
    background: #fff;
    border-radius: var(--uthgra-radius-lg);
    box-shadow: var(--uthgra-shadow-lg);
    overflow: hidden;
    border: none;
}

.login-card-header {
    background: var(--uthgra-dark);
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--uthgra-purple-dark);
}

.login-card-header .login-logo {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-card-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--uthgra-gray-light);
}

.login-card-body {
    padding: 2rem 1.75rem;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .navbar-logo {
        height: 32px;
        max-width: 180px;
    }

    .navbar-logo-sm {
        height: 28px;
        max-width: 150px;
    }

    .countdown-grid {
        gap: 0.5rem;
    }

    .countdown-box {
        padding: 0.75rem 0.25rem;
    }

    .hero-section {
        padding: 2rem 0 2.5rem;
    }

    .section-card-body {
        padding: 1.15rem;
    }

    .history-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .history-meta {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .navbar-logo {
        height: 48px;
        max-width: 320px;
    }

    .content-section {
        padding: 3rem 0;
    }
}

/* ── Sala de sorteo en vivo ── */
.sorteo-live-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #6b5f9e 45%, #0090bb 100%);
    overflow: hidden;
}

.sorteo-live-back {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.sorteo-live-back:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sorteo-live-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.sorteo-live-content {
    text-align: center;
    color: #fff;
    max-width: 560px;
    animation: fadeInUp 0.6s ease;
}

.sorteo-live-logo {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.sorteo-live-badge {
    display: inline-block;
    background: rgba(0, 180, 230, 0.2);
    border: 1px solid rgba(0, 180, 230, 0.45);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.sorteo-live-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sorteo-live-meta {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.sorteo-live-hint {
    font-size: 0.9rem;
    opacity: 0.75;
}

.btn-sorteo-live {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sorteo-live:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.5);
    color: #1a1a1a;
}

.btn-sorteo-live:disabled {
    opacity: 0.45;
}

.btn-sorteo-live-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 2rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-sorteo-live-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-nav-live {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.45) !important;
}

.btn-nav-live:hover {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1a1a1a !important;
}

.sorteo-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
}

.sorteo-countdown-number {
    font-size: clamp(6rem, 25vw, 12rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 60px rgba(0, 180, 230, 0.6);
}

.sorteo-countdown-number.pop {
    animation: countdownPop 0.5s ease;
}

.sorteo-countdown-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

.sorteo-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #00b4e6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sorteo-loading-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    animation: pulse 1s infinite;
}

.sorteo-winners-overlay {
    background: rgba(10, 10, 10, 0.95);
}

.sorteo-winners-content {
    text-align: center;
    color: #fff;
    max-width: 520px;
    width: 100%;
    padding: 1rem;
    animation: fadeInUp 0.5s ease;
}

.sorteo-winners-header i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    display: block;
}

.sorteo-winners-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.sorteo-winners-header p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.sorteo-winners-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sorteo-winner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(138, 127, 191, 0.35), rgba(0, 180, 230, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    text-align: left;
    animation: winnerReveal 0.6s ease backwards;
}

.sorteo-winner-rank {
    width: 36px;
    height: 36px;
    background: #fbbf24;
    color: #1a1a1a;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sorteo-winner-info {
    flex-grow: 1;
    min-width: 0;
}

.sorteo-winner-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.sorteo-winner-info span {
    font-size: 0.85rem;
    opacity: 0.75;
}

.sorteo-winner-icon {
    font-size: 1.5rem;
    color: #fbbf24;
    flex-shrink: 0;
}

@keyframes countdownPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes winnerReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

