:root {
    --primary: #1554cc;
    --primary-dark: #0b317b;
    --secondary: #f6b51e;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --border: #dbe4ef;
    --success: #16834a;
    --warning: #b7791f;
    --danger: #c53030;
    --shadow: 0 20px 45px rgba(15, 23, 42, .11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-login {
    color: var(--primary) !important;
}

.menu-toggle,
.menu-button {
    display: none;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 32px;
    align-items: center;
    min-height: 560px;
}

.hero-content h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: .98;
    letter-spacing: -.06em;
    color: var(--primary-dark);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: 1.12rem;
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(21, 84, 204, .1);
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-actions,
.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(21, 84, 204, .25);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    border-color: var(--border);
}

.btn-full {
    width: 100%;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.stat-card,
.hero-note,
.empty-box,
.raffle-card,
.consulta-form,
.ticket-public-card,
.contact-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 26px;
}

.stat-card span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-card small,
.info-grid small,
.prize-box small,
.progress-text,
.hero-note p,
.raffle-body p,
.section-heading p,
.ticket-public-card p,
.contact-section p {
    color: var(--muted);
}

.hero-note {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #eef4ff);
}

.hero-note p {
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--primary-dark);
}

.empty-box {
    padding: 34px;
}

.raffle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.raffle-card {
    overflow: hidden;
}

.raffle-image {
    position: relative;
    height: 230px;
    background: linear-gradient(135deg, #eaf1ff, #fff7dc);
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary);
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--success);
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
}

.raffle-body {
    padding: 22px;
}

.raffle-body h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.prize-box {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
}

.prize-box strong {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-grid div {
    padding: 12px;
    border-radius: 14px;
    background: #f7f9fc;
}

.info-grid strong,
.info-grid small {
    display: block;
}

.progress-wrap {
    margin: 18px 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.progress {
    height: 10px;
    background: #e7edf5;
    border-radius: 999px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: inherit;
}

.consulta-section {
    padding-top: 40px;
}

.consulta-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.consulta-form {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.consulta-form label {
    font-weight: 800;
    color: var(--primary-dark);
}

.consulta-form input,
.consulta-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
}

.consulta-form input:focus,
.consulta-form select:focus {
    outline: 3px solid rgba(21, 84, 204, .14);
    border-color: var(--primary);
}

.ticket-public-card {
    padding: 26px;
    min-height: 100%;
}

.ticket-public-card h3 {
    margin: 10px 0 14px;
    color: var(--primary-dark);
}

.ticket-number {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(246, 181, 30, .16);
    color: #875b00;
    font-weight: 900;
}

.status-ok {
    color: var(--success);
}

.status-warn {
    color: var(--warning);
}

.status-bad {
    color: var(--danger);
}

.not-found {
    border-color: rgba(197, 48, 48, .25);
}

.muted-card {
    background: linear-gradient(135deg, #fff, #eef4ff);
}

.contact-section {
    margin-bottom: 44px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero,
    .consulta-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .navbar {
        min-height: 68px;
    }

    .menu-button {
        display: grid;
        gap: 5px;
        cursor: pointer;
    }

    .menu-button span {
        width: 26px;
        height: 3px;
        border-radius: 999px;
        background: var(--primary-dark);
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        width: 100%;
        padding: 12px 0;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .section {
        width: min(100% - 24px, 1180px);
        padding: 42px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 14vw, 4rem);
    }

    .hero-actions,
    .contact-section {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .raffle-image {
        height: 210px;
    }
}

/* === REGISTRO PREMIUM 20260428 === */
.registro-premium-page {
    min-height: 100vh;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #0f1f3d;
    background:
        radial-gradient(circle at 8% 22%, rgba(21, 84, 204, .10) 0 18%, transparent 19%),
        radial-gradient(circle at 94% 80%, rgba(21, 84, 204, .08) 0 18%, transparent 19%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f9fbff 100%);
    overflow-x: hidden;
}

.registro-bg-shape,
.registro-dots {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.registro-bg-shape-left {
    width: 360px;
    height: 360px;
    left: -145px;
    top: 145px;
    border-radius: 999px;
    background: rgba(21, 84, 204, .06);
}

.registro-bg-shape-right {
    width: 420px;
    height: 420px;
    right: -190px;
    bottom: 20px;
    border-radius: 999px;
    background: rgba(21, 84, 204, .08);
}

.registro-dots::before {
    content: '';
    display: block;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(rgba(21, 84, 204, .22) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.registro-dots-left {
    left: 34px;
    top: 300px;
}

.registro-dots-right {
    right: 58px;
    bottom: 170px;
}

.registro-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(203, 213, 225, .72);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
}

.registro-navbar {
    min-height: 86px;
}

.registro-brand {
    gap: 16px;
    color: #071936;
    font-size: clamp(1.25rem, 2vw, 2rem);
    letter-spacing: -.045em;
}

.registro-brand img,
.registro-brand .brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: contain;
}

.registro-nav {
    gap: 28px;
    font-size: 1rem;
}

.registro-nav a {
    color: #5f6f8d;
    font-weight: 800;
}

.registro-login-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1554cc, #2378ff);
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(21, 84, 204, .25);
}

.registro-premium-main {
    position: relative;
    z-index: 1;
    padding: 42px 16px 24px;
}

.registro-shell {
    width: min(1020px, 100%);
    margin: 0 auto;
}

.registro-premium-card {
    border: 1px solid rgba(219, 228, 239, .88);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 35, 70, .12);
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
}

.registro-card-head {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(219, 228, 239, .88);
    margin-bottom: 24px;
}

.registro-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1554cc, #267dff);
    color: #fff;
    font-weight: 900;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(21, 84, 204, .2);
}

.registro-premium-card h1 {
    margin: 18px 0 10px;
    max-width: 850px;
    color: #071936;
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.registro-premium-card p {
    margin: 0;
    max-width: 720px;
    color: #53637f;
    font-size: clamp(.98rem, 1.8vw, 1.1rem);
}

.registro-premium-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px 22px;
}

.registro-premium-form .form-field {
    grid-column: span 4;
}

.registro-premium-form .form-field-wide {
    grid-column: span 6;
}

.registro-premium-form .form-field-full {
    grid-column: 1 / -1;
}

.registro-premium-form label {
    display: block;
    margin: 0 0 8px;
    color: #13264a;
    font-weight: 800;
    font-size: .92rem;
}

.input-wrap {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #cfd9e8;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input-wrap:focus-within {
    border-color: #1554cc;
    box-shadow: 0 0 0 4px rgba(21, 84, 204, .10);
    transform: translateY(-1px);
}

.input-wrap input {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f1f3d;
    font: inherit;
    font-weight: 600;
}

.input-wrap input::placeholder {
    color: #8a99b2;
    font-weight: 500;
}

.input-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #1554cc;
    font-weight: 900;
    font-size: .88rem;
}

.input-icon-wa {
    color: #16a34a;
}

.input-wrap-disabled {
    background: linear-gradient(180deg, #f8fafc, #eef3f9);
}

.input-wrap-disabled input {
    color: #40506a;
    cursor: not-allowed;
}

.input-lock {
    color: #64748b;
    font-size: .9rem;
}

.registro-submit {
    grid-column: 1 / -1;
    min-height: 54px;
    margin-top: 2px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #1452d4 0%, #2584ff 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(21, 84, 204, .24);
    gap: 10px;
    font-size: 1rem;
}

.registro-submit:hover {
    box-shadow: 0 18px 36px rgba(21, 84, 204, .32);
}

.registro-alert-success,
.registro-alert-error {
    margin-bottom: 22px;
    border-radius: 16px;
    padding: 16px 18px;
}

.registro-alert-success {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(22, 163, 74, .22);
    background: rgba(22, 163, 74, .08);
    color: #14532d;
}

.registro-alert-error {
    border: 1px solid rgba(220, 38, 38, .22);
    background: rgba(220, 38, 38, .08);
    color: #7f1d1d;
}

.registro-alert-error ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.registro-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(203, 213, 225, .72);
    background: rgba(255, 255, 255, .88);
    padding: 22px 16px;
}

.registro-footer-inner {
    width: min(1020px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #5f6f8d;
}

.registro-footer p {
    margin: 0;
}

.registro-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1554cc;
    font-weight: 900;
}

.footer-shield {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(21, 84, 204, .10);
    color: #1554cc;
    font-weight: 900;
}

@media (max-width: 900px) {
    .registro-navbar {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .registro-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        font-size: .92rem;
    }

    .registro-login-btn {
        min-height: 40px;
    }

    .registro-premium-form .form-field,
    .registro-premium-form .form-field-wide,
    .registro-premium-form .form-field-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .registro-premium-main {
        padding: 20px 12px;
    }

    .registro-brand img,
    .registro-brand .brand-mark {
        width: 50px;
        height: 50px;
    }

    .registro-premium-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .registro-premium-card h1 {
        font-size: 2rem;
    }

    .registro-premium-form {
        gap: 14px;
    }

    .input-wrap {
        min-height: 48px;
    }

    .registro-footer-inner {
        gap: 10px;
        text-align: center;
    }
}


/* =========================================================
   Animaciones web pública
   Sección aislada: no afecta registro.php ni compra_publica.php
   ========================================================= */

.public-animated-page {
    overflow-x: hidden;
}

.public-animated-page::before,
.public-animated-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    opacity: .28;
    filter: blur(18px);
    animation: publicFloatBlob 12s ease-in-out infinite;
}

.public-animated-page::before {
    top: 90px;
    left: -170px;
    background: radial-gradient(circle, rgba(37, 99, 235, .28), rgba(37, 99, 235, 0) 66%);
}

.public-animated-page::after {
    right: -160px;
    bottom: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, .26), rgba(245, 158, 11, 0) 66%);
    animation-delay: -5s;
}

@keyframes publicFloatBlob {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(26px, -22px, 0) scale(1.08);
    }
}

.public-animated-page header,
.public-animated-page .header,
.public-animated-page .navbar,
.public-animated-page .topbar {
    animation: publicSlideDown .65s ease both;
}

@keyframes publicSlideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-animated-page .hero,
.public-animated-page .public-hero,
.public-animated-page .premium-hero {
    position: relative;
    isolation: isolate;
}

.public-animated-page .hero::after,
.public-animated-page .public-hero::after,
.public-animated-page .premium-hero::after {
    content: "";
    position: absolute;
    inset: auto 6% 8% auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,.38), rgba(255,255,255,0) 70%);
    z-index: -1;
    animation: publicPulseGlow 4.5s ease-in-out infinite;
}

@keyframes publicPulseGlow {
    0%, 100% {
        transform: scale(.92);
        opacity: .35;
    }
    50% {
        transform: scale(1.12);
        opacity: .72;
    }
}

.public-animated-page .hero img,
.public-animated-page .public-hero img,
.public-animated-page .premium-hero img,
.public-animated-page .sorteo-card img,
.public-animated-page .raffle-card img,
.public-animated-page .premio-card img,
.public-animated-page .prize-card img {
    transition: transform .45s ease, filter .45s ease;
}

.public-animated-page .hero img:hover,
.public-animated-page .public-hero img:hover,
.public-animated-page .premium-hero img:hover,
.public-animated-page .sorteo-card:hover img,
.public-animated-page .raffle-card:hover img,
.public-animated-page .premio-card:hover img,
.public-animated-page .prize-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.03);
}

.public-animated-page .card,
.public-animated-page .sorteo-card,
.public-animated-page .raffle-card,
.public-animated-page .premio-card,
.public-animated-page .prize-card,
.public-animated-page .stats-card,
.public-animated-page .feature-card {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.public-animated-page .card:hover,
.public-animated-page .sorteo-card:hover,
.public-animated-page .raffle-card:hover,
.public-animated-page .premio-card:hover,
.public-animated-page .prize-card:hover,
.public-animated-page .stats-card:hover,
.public-animated-page .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.public-animated-page a,
.public-animated-page button,
.public-animated-page .btn,
.public-animated-page .button {
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}

.public-animated-page a.btn:hover,
.public-animated-page button:hover,
.public-animated-page .btn:hover,
.public-animated-page .button:hover {
    transform: translateY(-2px);
}

.public-animated-page .btn-primary,
.public-animated-page .primary,
.public-animated-page .cta,
.public-animated-page .button-primary {
    position: relative;
    overflow: hidden;
}

.public-animated-page .btn-primary::after,
.public-animated-page .primary::after,
.public-animated-page .cta::after,
.public-animated-page .button-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: skewX(-18deg);
    animation: publicButtonShine 4.8s ease-in-out infinite;
}

@keyframes publicButtonShine {
    0%, 35% {
        left: -85%;
    }
    55%, 100% {
        left: 125%;
    }
}

.public-animated-page .js-reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease var(--anim-delay, 0ms), transform .7s ease var(--anim-delay, 0ms);
}

.public-animated-page .js-reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.public-animated-page .progress,
.public-animated-page .progress-bar,
.public-animated-page .barra-progreso,
.public-animated-page [class*="progress"] {
    position: relative;
    overflow: hidden;
}

.public-animated-page .progress::after,
.public-animated-page .progress-bar::after,
.public-animated-page .barra-progreso::after,
.public-animated-page [class*="progress"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-100%);
    animation: publicProgressSweep 2.8s ease-in-out infinite;
}

@keyframes publicProgressSweep {
    0% {
        transform: translateX(-100%);
    }
    55%, 100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-animated-page *,
    .public-animated-page *::before,
    .public-animated-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .public-animated-page .js-reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .public-animated-page::before,
    .public-animated-page::after {
        width: 260px;
        height: 260px;
        opacity: .18;
    }

    .public-animated-page .card:hover,
    .public-animated-page .sorteo-card:hover,
    .public-animated-page .raffle-card:hover,
    .public-animated-page .premio-card:hover,
    .public-animated-page .prize-card:hover {
        transform: none;
    }
}


/* =========================================================
   Sorteos activos: sorteo a la izquierda y premios a la derecha
   Sección aislada de la web pública
   ========================================================= */

.raffle-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.raffle-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
}

.raffle-summary-panel {
    display: grid;
    grid-template-columns: minmax(250px, .78fr) minmax(0, 1fr);
    gap: 0;
    min-width: 0;
    background: #ffffff;
}

.raffle-summary-image {
    min-height: 100%;
    height: auto;
    border-radius: 0;
}

.raffle-summary-image img,
.raffle-summary-image .image-placeholder {
    height: 100%;
    min-height: 360px;
}

.raffle-summary-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.raffle-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(21, 84, 204, .09);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.raffle-summary-body h3 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.raffle-summary-body p {
    font-size: 15px;
    line-height: 1.7;
}

.raffle-summary-info {
    margin-top: 18px;
}

.raffle-prizes-panel {
    position: relative;
    padding: 32px;
    background:
        radial-gradient(circle at top right, rgba(246, 181, 30, .16), transparent 34%),
        linear-gradient(145deg, rgba(21, 84, 204, .06), rgba(255,255,255,.94));
    border-left: 1px solid rgba(219, 228, 239, .95);
    min-width: 0;
}

.prizes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.prizes-header h4 {
    margin: 5px 0 0;
    color: var(--primary-dark);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
}

.small-eyebrow {
    font-size: 11px;
}

.prize-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.split-prizes-list {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.split-prize-item {
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(219, 228, 239, .95);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.split-prize-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, .10);
}

.split-prize-item img,
.split-prize-item .prize-thumb {
    width: 82px;
    height: 82px;
    border-radius: 18px;
}

.split-prize-item small {
    display: block;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.split-prize-item strong {
    color: var(--primary-dark);
    font-size: 15px;
    line-height: 1.35;
}

.split-prize-item span {
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .raffle-split-card {
        grid-template-columns: 1fr;
    }

    .raffle-prizes-panel {
        border-left: 0;
        border-top: 1px solid rgba(219, 228, 239, .95);
    }
}

@media (max-width: 820px) {
    .raffle-summary-panel {
        grid-template-columns: 1fr;
    }

    .raffle-summary-image img,
    .raffle-summary-image .image-placeholder {
        min-height: 260px;
        max-height: 320px;
    }

    .raffle-summary-body,
    .raffle-prizes-panel {
        padding: 24px;
    }

    .prizes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .split-prize-item {
        grid-template-columns: 70px 1fr;
    }

    .split-prize-item img,
    .split-prize-item .prize-thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 520px) {
    .raffle-summary-body,
    .raffle-prizes-panel {
        padding: 20px;
    }

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

    .split-prize-item {
        grid-template-columns: 62px 1fr;
        padding: 12px;
    }

    .split-prize-item img,
    .split-prize-item .prize-thumb {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }
}

