* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --border: #e5e7eb;

    --primary: #172033;
    --primary-hover: #27334a;

    --success-bg: #ecfdf3;
    --success-text: #027a48;
    --success-border: #abefc6;

    --danger-bg: #fef3f2;
    --danger-text: #b42318;
    --danger-border: #fecdca;

    --warning-bg: #fffaf0;
    --warning-text: #7a2e0b;
    --warning-border: #fedf89;

    --info-bg: #e8f0ff;
    --info-text: #315fbd;

    --radius: 10px;
    --radius-large: 16px;
}


/* =========================
   BASE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* =========================
   HEADER
========================= */

header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 17px 25px;
}

.header-content {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    font-size: 19px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.back,
.admin-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.back:hover,
.admin-link:hover {
    text-decoration: underline;
}


/* =========================
   MAIN
========================= */

main {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 30px 20px;
}


/* =========================
   HERO
========================= */

.hero {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
}

.badge {
    display: inline-block;

    background: var(--info-bg);
    color: var(--info-text);

    padding: 7px 13px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 18px;
}

.hero h1,
.page-title h1 {
    line-height: 1.1;
}

.hero p {
    max-width: 650px;
    margin: 18px auto 0;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   PAGE TITLE
========================= */

.page-title {
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 30px;
    margin-bottom: 7px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   CARDS
========================= */

.card {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    padding: 25px;
}

.card h2 {
    font-size: 19px;
    margin-bottom: 6px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 22px;
}


/* =========================
   INFO GRID
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    max-width: 1100px;
    margin: 0 auto 30px;
}

.card-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 25px;
    font-weight: 700;
}


/* =========================
   STATS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 25px;
}

.stat {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 20px;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 27px;
    font-weight: 700;
}


/* =========================
   SECTIONS
========================= */

.section {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 22px;

    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 19px;
}

.section-header p {
    color: var(--text-secondary);

    font-size: 13px;

    margin-top: 4px;
}


/* =========================
   NAVIGATION
========================= */

.navigation {
    display: flex;
    gap: 8px;

    margin-bottom: 20px;

    overflow-x: auto;
}

.nav-button {
    border: 1px solid var(--border);

    background: var(--surface);
    color: var(--text);

    padding: 10px 15px;

    border-radius: 8px;

    white-space: nowrap;

    font-weight: 600;
}

.nav-button:hover {
    background: #f9fafb;
}

.nav-button.active {
    background: var(--primary);
    color: #ffffff;

    border-color: var(--primary);
}


/* =========================
   ACTIONS
========================= */

.actions {
    display: flex;
    align-items: center;
    gap: 9px;

    flex-wrap: wrap;
}


/* =========================
   BUTTONS
========================= */

button {
    border: none;

    border-radius: 8px;

    padding: 10px 14px;

    font-size: 13px;
    font-weight: 600;

    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        transform 0.05s ease;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: translateY(1px);
}

.primary {
    background: var(--primary);
    color: #ffffff;
}

.primary:hover {
    background: var(--primary-hover);
}

.secondary {
    background: #eef1f5;
    color: var(--text);
}

.danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.warning {
    background: var(--warning-bg);
    color: #b54708;
}


/* =========================
   FORMS
========================= */

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 7px;
}

.required {
    color: var(--danger-text);
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid #d0d5dd;

    border-radius: 8px;

    padding: 12px 13px;

    outline: none;

    font-size: 14px;

    background: #ffffff;
    color: var(--text);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #667085;
    box-shadow: 0 0 0 2px rgba(102, 112, 133, 0.08);
}

.help {
    display: block;

    color: var(--text-muted);

    font-size: 12px;

    margin-top: 6px;
}


/* =========================
   SEARCH
========================= */

.search {
    width: 100%;

    border: 1px solid #d0d5dd;

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 18px;

    outline: none;
}

.search:focus {
    border-color: #667085;
}


/* =========================
   TABLES
========================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    min-width: 750px;
}

th,
td {
    padding: 13px 10px;

    border-bottom: 1px solid #eaecf0;

    text-align: left;

    font-size: 13px;
}

th {
    color: var(--text-secondary);

    font-weight: 600;

    background: #fafafa;
}

tbody tr:hover {
    background: #fafafa;
}


/* =========================
   STATUS
========================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #98a2b3;
}

.status.live .status-dot {
    background: #12b76a;
}

.status-valid {
    display: inline-block;

    background: var(--success-bg);
    color: var(--success-text);

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.status-invalid {
    display: inline-block;

    background: var(--danger-bg);
    color: var(--danger-text);

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}


/* =========================
   MESSAGES
========================= */

.message {
    display: none;

    border-radius: 9px;

    padding: 13px;

    font-size: 13px;
    line-height: 1.5;

    margin-bottom: 20px;
}

.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}


/* =========================
   WARNING
========================= */

.warning-box,
.warning {
    background: var(--warning-bg);

    border: 1px solid var(--warning-border);

    color: var(--warning-text);

    border-radius: 10px;

    padding: 15px;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 18px;
}


/* =========================
   BACKUPS
========================= */

.backup-box {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.backup {
    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 18px;
}

.backup h3 {
    font-size: 16px;

    margin-bottom: 7px;
}

.backup p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 15px;
}


/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.login-main {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 18px;
}

.login-card {
    width: 100%;
    max-width: 430px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 32px;
}

.login-title {
    text-align: center;

    margin-bottom: 28px;
}

.login-title h1 {
    font-size: 27px;

    margin-bottom: 8px;
}

.login-title p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.5;
}

.login-button {
    width: 100%;

    margin-top: 5px;

    padding: 12px;
}


/* =========================
   PASSWORD
========================= */

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 80px;
}

.show-password {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--text-secondary);

    font-size: 12px;

    padding: 5px;
}


/* =========================
   TICKET RESULT
========================= */

.ticket-result {
    display: none;

    text-align: center;

    background: #f8faff;

    border: 1px solid #d9e4ff;

    border-radius: 12px;

    padding: 25px;

    margin-top: 20px;
}

.ticket-label {
    color: var(--text-secondary);

    font-size: 13px;

    margin-bottom: 8px;
}

.ticket-number {
    font-size: 48px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.ticket-name {
    font-size: 15px;

    color: #475467;
}


/* =========================
   LIVE DRAW
========================= */

.draw-page {
    background: #0b1020;

    color: #ffffff;

    min-height: 100vh;

    display: flex;

    flex-direction: column;
}

.draw-page header {
    background: transparent;

    border-bottom-color:
        rgba(255,255,255,0.08);
}

.draw-container {
    width: 100%;

    max-width: 1000px;

    margin: auto;

    text-align: center;

    padding: 50px 20px;
}

.draw-title {
    font-size: clamp(35px, 7vw, 68px);

    line-height: 1;

    margin-bottom: 15px;
}

.draw-subtitle {
    color: #98a2b3;

    font-size: 16px;

    margin-bottom: 45px;
}

.draw-area {
    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 22px;

    padding: 45px 25px;

    margin-bottom: 30px;
}

.draw-label {
    color: #98a2b3;

    font-size: 13px;

    letter-spacing: 1px;

    margin-bottom: 15px;
}

.ticket {
    font-size: clamp(70px, 15vw, 150px);

    font-weight: 800;

    letter-spacing: 8px;

    line-height: 1;

    font-variant-numeric:
        tabular-nums;
}

.winner-name {
    min-height: 30px;

    margin-top: 20px;

    color: #d0d5dd;

    font-size: 19px;

    font-weight: 600;
}

.draw-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    max-width: 550px;

    margin: 0 auto 40px;
}

.draw-stat {
    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 14px;

    padding: 18px;
}

.draw-stat-label {
    color: #98a2b3;

    font-size: 12px;

    margin-bottom: 7px;
}

.draw-stat-value {
    font-size: 25px;

    font-weight: 700;
}

.draw-controls {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.draw-primary {
    background: #ffffff;

    color: #0b1020;
}

.draw-secondary {
    background:
        rgba(255,255,255,0.08);

    color: #ffffff;

    border:
        1px solid rgba(255,255,255,0.1);
}

.winner {
    display: none;

    background:
        rgba(18,183,106,0.08);

    border:
        1px solid rgba(18,183,106,0.25);

    border-radius: 18px;

    padding: 25px;

    margin-top: 25px;
}

.winner-title {
    color: #98a2b3;

    font-size: 12px;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

.winner-ticket {
    font-size: 38px;

    font-weight: 800;

    margin-bottom: 7px;
}

.winner-participant {
    color: #d0d5dd;

    font-size: 17px;
}

.verification {
    margin-top: 30px;

    color: #667085;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 30px 20px;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================
   UTILITIES
========================= */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.full-width {
    width: 100%;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .backup-box {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .info-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        width: 100%;
    }

    .section-header {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 600px) {

    header {
        padding: 16px 18px;
    }

    .container {
        padding: 22px 14px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 25px 20px;
    }

    .draw-area {
        padding: 35px 15px;
    }

    .ticket {
        letter-spacing: 4px;
    }

    .draw-stats {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .header-content {
        align-items: flex-start;
    }

    .header-right {
        flex-direction: column;

        align-items: flex-end;

        gap: 6px;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }

    .login-title h1 {
        font-size: 24px;
    }

}
/* =========================================================
   MODALES
========================================================= */

body.modal-open {
    overflow: hidden;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.app-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.app-modal {
    position: relative;

    width: 100%;
    max-width: 440px;

    background: #ffffff;
    color: #172033;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    padding: 30px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.20);

    transform:
        translateY(12px)
        scale(0.98);

    transition:
        transform 0.18s ease;
}

.app-modal-overlay.visible
.app-modal {
    transform:
        translateY(0)
        scale(1);
}

.app-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 32px;
    height: 32px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #667085;

    font-size: 24px;
    font-weight: 400;

    border-radius: 8px;
}

.app-modal-close:hover {
    background: #f2f4f7;
}

.app-modal-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 22px;
    font-weight: 800;
}

.app-modal-icon-info {
    background: #eef4ff;
    color: #315fbd;
}

.app-modal-icon-success {
    background: #ecfdf3;
    color: #027a48;
}

.app-modal-icon-warning {
    background: #fff7e8;
    color: #b54708;
}

.app-modal-icon-danger,
.app-modal-icon-error {
    background: #fef3f2;
    color: #b42318;
}

.app-modal h2 {
    margin: 0 35px 10px 0;

    font-size: 22px;
    line-height: 1.25;
}

.app-modal-content {
    color: #667085;

    font-size: 14px;
    line-height: 1.65;
}

.app-modal-content strong {
    color: #172033;
}

.app-modal-content .modal-ticket {
    display: block;

    margin: 18px 0 10px;

    font-size: 34px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #172033;
}

.app-modal-content .modal-status {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.modal-status-valid {
    background: #ecfdf3;
    color: #027a48;
}

.modal-status-invalid {
    background: #fef3f2;
    color: #b42318;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;
}

.app-modal-button {
    min-width: 100px;

    padding: 11px 17px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;
}

.app-modal-confirm {
    background: #172033;
    color: #ffffff;
}

.app-modal-cancel {
    background: #eef1f5;
    color: #172033;
}

@media (max-width: 520px) {

    .app-modal {
        padding: 25px 20px;
    }

    .app-modal-actions {
        flex-direction: column-reverse;
    }

    .app-modal-button {
        width: 100%;
    }

}
/* =========================================================
   HOME / INDEX
========================================================= */

.home-page {
    background:
        radial-gradient(
            circle at top,
            #ffffff 0,
            #f7f9fc 34%,
            #f3f6fa 100%
        );

    color: #172033;
}


/* HEADER */

.home-header {
    background:
        rgba(
            255,
            255,
            255,
            0.85
        );

    border-bottom:
        1px solid #e8ecf2;

    backdrop-filter:
        blur(12px);

    position:
        sticky;

    top:
        0;

    z-index:
        100;
}


.home-nav {
    width:
        calc(100% - 40px);

    max-width:
        1120px;

    min-height:
        68px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;
}


.home-brand {
    color:
        #172033;

    font-size:
        19px;

    font-weight:
        800;

    text-decoration:
        none;

    letter-spacing:
        -0.3px;
}


.organizer-link {
    color:
        #475467;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        600;

    padding:
        9px 12px;

    border-radius:
        9px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.organizer-link:hover {
    background:
        #f2f4f7;

    color:
        #172033;
}


/* MAIN */

.home-main {
    width:
        calc(100% - 40px);

    max-width:
        1120px;

    margin:
        0 auto;

    padding:
        72px 0 60px;
}


/* HERO */

.home-hero {
    max-width:
        720px;

    margin:
        0 auto 55px;

    text-align:
        center;
}


.home-badge {
    width:
        fit-content;

    margin:
        0 auto 18px;

    padding:
        7px 13px;

    background:
        #edf4ff;

    border:
        1px solid #dbe8ff;

    color:
        #2458b3;

    border-radius:
        999px;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.7px;
}


.home-hero h1 {
    margin:
        0;

    font-size:
        clamp(
            38px,
            6vw,
            58px
        );

    line-height:
        1.04;

    letter-spacing:
        -1.9px;

    color:
        #101828;
}


.home-hero p {
    max-width:
        650px;

    margin:
        20px auto 0;

    color:
        #667085;

    font-size:
        16px;

    line-height:
        1.7;
}


/* ESTADÍSTICAS */

.home-stats {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        16px;

    margin-bottom:
        20px;
}


.home-stat-card {
    min-height:
        112px;

    padding:
        22px;

    display:
        flex;

    align-items:
        center;

    gap:
        17px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    border:
        1px solid #e4e8ef;

    border-radius:
        17px;

    box-shadow:
        0 4px 14px
        rgba(
            16,
            24,
            40,
            0.025
        );
}


.home-stat-icon {
    flex:
        0 0 auto;

    width:
        45px;

    height:
        45px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        #f2f5fa;

    border-radius:
        12px;

    color:
        #344054;

    font-size:
        19px;

    font-weight:
        800;
}


.home-stat-label {
    display:
        block;

    margin-bottom:
        6px;

    color:
        #667085;

    font-size:
        12px;

    font-weight:
        600;
}


.home-stat-value {
    display:
        block;

    color:
        #101828;

    font-size:
        21px;

    font-weight:
        800;

    line-height:
        1.15;
}


/* ACCIONES */

.home-actions-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        16px;

    margin-bottom:
        16px;
}


.home-action-card {
    min-height:
        245px;

    padding:
        28px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    background:
        #ffffff;

    border:
        1px solid #e4e8ef;

    border-radius:
        18px;

    box-shadow:
        0 5px 16px
        rgba(
            16,
            24,
            40,
            0.025
        );

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}


.home-action-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #d7dde7;

    box-shadow:
        0 10px 25px
        rgba(
            16,
            24,
            40,
            0.055
        );
}


.home-action-icon {
    width:
        46px;

    height:
        46px;

    margin-bottom:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        13px;

    background:
        #f2f5fa;

    color:
        #344054;

    font-size:
        19px;

    font-weight:
        800;
}


.home-action-content {
    flex:
        1;
}


.home-action-card h2 {
    margin:
        0 0 9px;

    color:
        #101828;

    font-size:
        20px;

    line-height:
        1.25;
}


.home-action-card p {
    margin:
        0;

    max-width:
        430px;

    color:
        #667085;

    font-size:
        14px;

    line-height:
        1.65;
}


.home-action-button {
    margin-top:
        24px;

    min-width:
        145px;

    min-height:
        42px;

    padding:
        10px 16px;

    border-radius:
        10px;
}


/* SORTEO */

.home-live-card {
    padding:
        32px;

    background:
        linear-gradient(
            135deg,
            #101828,
            #1d2939
        );

    border:
        1px solid #27364a;

    border-radius:
        20px;

    color:
        #ffffff;

    box-shadow:
        0 12px 32px
        rgba(
            16,
            24,
            40,
            0.13
        );
}


.home-live-top {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        40px;
}


.home-live-status {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-bottom:
        18px;

    color:
        #cbd5e1;

    font-size:
        12px;

    font-weight:
        700;
}


.home-live-dot {
    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #98a2b3;
}


.home-live-card h2 {
    margin:
        0 0 10px;

    color:
        #ffffff;

    font-size:
        27px;

    letter-spacing:
        -0.5px;
}


.home-live-card p {
    max-width:
        690px;

    margin:
        0;

    color:
        #b8c1ce;

    font-size:
        14px;

    line-height:
        1.65;
}


.home-live-symbol {
    flex:
        0 0 auto;

    width:
        74px;

    height:
        74px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius:
        20px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    color:
        #ffffff;

    font-size:
        31px;
}


.home-live-footer {
    margin-top:
        28px;

    padding-top:
        22px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;
}


.home-live-footer span {
    color:
        #98a2b3;

    font-size:
        12px;
}


.home-live-footer
.secondary {
    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    color:
        #cbd5e1;
}


/* FOOTER */

.home-footer {
    width:
        calc(100% - 40px);

    max-width:
        1120px;

    margin:
        0 auto;

    padding:
        0 0 35px;

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        #98a2b3;

    font-size:
        11px;

    text-align:
        left;
}


.home-footer strong {
    color:
        #667085;
}


/* RESPONSIVE */

@media
(max-width: 800px) {

    .home-main {
        padding-top:
            48px;
    }


    .home-stats {
        grid-template-columns:
            1fr;
    }


    .home-actions-grid {
        grid-template-columns:
            1fr;
    }


    .home-action-card {
        min-height:
            auto;
    }


    .home-live-top {
        align-items:
            flex-start;
    }


    .home-live-symbol {
        width:
            58px;

        height:
            58px;
    }

}


@media
(max-width: 560px) {

    .home-nav,
    .home-main,
    .home-footer {
        width:
            calc(100% - 28px);
    }


    .home-nav {
        min-height:
            62px;
    }


    .home-brand {
        font-size:
            17px;
    }


    .organizer-link {
        font-size:
            12px;
    }


    .home-main {
        padding-top:
            38px;
    }


    .home-hero {
        margin-bottom:
            38px;
    }


    .home-hero h1 {
        font-size:
            39px;

        letter-spacing:
            -1.4px;
    }


    .home-hero p {
        font-size:
            14px;
    }


    .home-stat-card {
        min-height:
            96px;

        padding:
            18px;
    }


    .home-action-card {
        padding:
            22px;
    }


    .home-action-button {
        width:
            100%;
    }


    .home-live-card {
        padding:
            24px;
    }


    .home-live-symbol {
        display:
            none;
    }


    .home-live-footer {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .home-live-footer
    button {
        width:
            100%;
    }


    .home-footer {
        flex-direction:
            column;

        gap:
            5px;
    }

}
/* =========================================================
   SORTEOS PÚBLICOS
========================================================= */

.public-draws-section {
    margin-top: 18px;
}


.public-draws-header {
    margin-bottom: 18px;
}


.public-section-badge {
    display: inline-block;

    margin-bottom: 10px;

    padding: 6px 10px;

    background: #eef4ff;

    color: #315fbd;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.public-draws-header h2 {
    margin: 0 0 7px;

    color: #101828;

    font-size: 25px;

    letter-spacing: -0.4px;
}


.public-draws-header p {
    margin: 0;

    color: #667085;

    font-size: 13px;
}


.public-draws-list {
    display: grid;

    gap: 12px;
}


.public-draw-card {
    min-height: 125px;

    padding: 22px;

    display: grid;

    grid-template-columns:
        48px 1fr auto;

    align-items: center;

    gap: 20px;

    background: #ffffff;

    border: 1px solid #e4e8ef;

    border-radius: 16px;

    box-shadow:
        0 4px 14px
        rgba(16, 24, 40, 0.025);
}


.public-draw-order {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f2f4f7;

    color: #344054;

    border-radius: 12px;

    font-size: 17px;

    font-weight: 800;
}


.public-draw-top {
    margin-bottom: 8px;
}


.public-draw-card h3 {
    margin: 0 0 10px;

    color: #101828;

    font-size: 18px;
}


.public-draw-prize span {
    display: block;

    margin-bottom: 3px;

    color: #98a2b3;

    font-size: 10px;

    text-transform: uppercase;

    font-weight: 700;
}


.public-draw-prize strong {
    color: #475467;

    font-size: 13px;
}


.public-draw-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;
}


.public-draw-status.pending {
    background: #f2f4f7;

    color: #475467;
}


.public-draw-status.live {
    background: #ecfdf3;

    color: #067647;
}


.public-draw-status.finished {
    background: #eef4ff;

    color: #315fbd;
}


.public-draw-dot {
    width: 6px;
    height: 6px;

    background: currentColor;

    border-radius: 50%;
}


.public-draw-status.live
.public-draw-dot {
    animation:
        publicLivePulse
        1.5s infinite;
}


@keyframes publicLivePulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(18, 183, 106, 0.4);
    }

    70% {
        box-shadow:
            0 0 0 7px
            rgba(18, 183, 106, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(18, 183, 106, 0);
    }

}


.public-draw-button {
    min-width: 125px;

    min-height: 40px;

    padding: 9px 14px;

    background: #f2f4f7;

    color: #344054;

    border: 0;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


.public-draw-button:not(:disabled):hover {
    background: #e4e7ec;
}


.public-draw-button.live-button {
    background: #101828;

    color: #ffffff;
}


.public-draw-button:disabled {
    cursor: default;

    opacity: 0.7;
}


.public-draw-empty,
.public-draw-loading {
    padding: 35px;

    background: #ffffff;

    border: 1px solid #e4e8ef;

    border-radius: 16px;

    text-align: center;

    color: #667085;
}


.public-draw-empty h3 {
    margin: 8px 0;

    color: #101828;
}


.public-draw-empty p {
    margin: 0;

    font-size: 13px;
}


.public-draw-empty-icon {
    font-size: 28px;
}


@media
(max-width: 650px) {

    .public-draw-card {
        grid-template-columns:
            42px 1fr;
    }


    .public-draw-action {
        grid-column:
            1 / -1;
    }


    .public-draw-button {
        width: 100%;
    }

}