/* ================= LANDING PAGE ================= */

.landing-page {
    background: linear-gradient(180deg, var(--raffle-color-primary-soft) 0%, #ffffff 320px, #ffffff 100%);
    min-height: 100vh;
    color: #212529;
}

/* Bootstrap success → paleta del cliente (morado + acento magenta) */
.landing-page .text-success {
    color: var(--raffle-color-accent) !important;
}

.landing-page .bg-success {
    background-color: var(--raffle-color-primary) !important;
    color: #ffffff !important;
}

.landing-page .bg-success-subtle.text-success {
    background-color: var(--raffle-color-accent-muted) !important;
    color: var(--raffle-color-primary) !important;
}

.landing-page .border-success-subtle {
    border-color: rgba(var(--raffle-color-primary-rgb), 0.15) !important;
}

.landing-page .btn-success {
    background-color: var(--raffle-color-primary);
    border-color: var(--raffle-color-primary);
    color: #ffffff;
}

.landing-page .btn-success:hover,
.landing-page .btn-success:focus {
    background-color: var(--raffle-color-primary-light);
    border-color: var(--raffle-color-primary-light);
    color: #ffffff;
}

.landing-page .progress-bar.bg-success {
    background: linear-gradient(90deg, var(--raffle-color-accent), var(--raffle-color-accent-light)) !important;
}

.landing-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1030;
}

.landing-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.landing-social {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-section {
    padding-top: 1.5rem;
}

.landing-section-sm {
    margin-top: 2rem;
}

.landing-hero-card {
    border-radius: 1.25rem !important;
    position: relative;
}

.landing-hero-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--raffle-color-primary), var(--raffle-color-accent), var(--raffle-color-primary));
}

.landing-title {
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.landing-subtitle {
    font-size: 1.05rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.landing-stat-badge {
    font-size: 0.95rem;
    font-weight: 600;
}

.landing-numbers-card,
.landing-checkout-card {
    border-radius: 1.25rem !important;
}

.landing-progress {
    height: 8px;
    border-radius: 999px;
    background: #e9ecef;
}

.landing-progress .progress-bar {
    border-radius: 999px;
    transition: width 0.4s ease;
}

.landing-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.landing-legend-free {
    background: var(--raffle-color-available-bg);
    border: 2px solid var(--raffle-color-available-border);
}

.landing-legend-selected {
    background: var(--raffle-color-selected-bg);
}

.landing-legend-sold {
    background: var(--raffle-color-sold-bg);
    border: 2px solid var(--raffle-color-sold-border);
}

.landing-checkout-icon {
    width: 42px;
    height: 42px;
    background: var(--raffle-color-primary-muted);
    font-size: 1.25rem;
}

.landing-checkout-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.landing-btn-primary {
    box-shadow: 0 4px 14px rgba(var(--raffle-color-primary-rgb), 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--raffle-color-primary-rgb), 0.32);
}

.landing-paused-banner {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #664d03;
}

.landing-modal-numbers {
    font-size: 1.05rem;
    word-break: break-word;
    line-height: 1.4;
}

.landing-alert-icon {
    width: 72px;
    height: 72px;
    background: rgba(var(--bs-danger-rgb), 0.1);
}

.landing-alert-icon.text-warning { background: rgba(var(--bs-warning-rgb), 0.15); }
.landing-alert-icon.text-info { background: rgba(var(--bs-info-rgb), 0.12); }
.landing-alert-icon.text-success { background: rgba(var(--bs-success-rgb), 0.12); }
.landing-alert-icon.text-danger { background: rgba(var(--bs-danger-rgb), 0.12); }

.landing-ticket-avatar {
    width: 64px;
    height: 64px;
    background-color: #adb5bd;
}

.landing-maintenance-icon {
    width: 88px;
    height: 88px;
    background: rgba(var(--bs-warning-rgb), 0.15);
}

.landing-footer {
    background: linear-gradient(180deg, var(--raffle-color-primary), var(--raffle-color-primary-dark));
    margin-top: 3rem !important;
}

/* Crédito desarrollador — WhatsApp Cristian Ceballos */
.landing-footer__dev {
    color: rgba(255, 255, 255, 0.5);
}

.landing-footer__dev-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
    color: #25d366;
    text-decoration: none !important;
    font-weight: 600;
    vertical-align: middle;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.landing-footer__dev-link em {
    font-style: italic;
    color: inherit;
}

.landing-footer__dev-link .bi-whatsapp {
    font-size: 1.15rem;
    line-height: 1;
}

.landing-footer__dev-link:hover,
.landing-footer__dev-link:focus-visible {
    color: #1ebe5d;
    opacity: 0.95;
}

.ticket-status.reservado {
    background: rgba(var(--bs-warning-rgb), 0.15);
    color: #997404;
}

.ticket-status.vendido {
    background: rgba(var(--bs-success-rgb), 0.15);
    color: var(--raffle-color-primary-dark);
}

/* Premio cards (renderizados por JS) */
.premio-card {
    border-radius: 1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.premio-card:hover {
    transform: translateY(-2px);
}

.premio-card--main {
    border: 2px solid rgba(var(--raffle-color-primary-rgb), 0.2) !important;
    background: linear-gradient(180deg, #fff, var(--raffle-color-primary-soft));
}

.premio-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.premio-card--main .premio-card__icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    background: var(--raffle-color-accent-muted);
    color: var(--raffle-color-accent);
}

.premio-card:not(.premio-card--main) .premio-card__icon {
    background: var(--raffle-color-primary-muted);
    color: var(--raffle-color-primary);
}

/* ================= SKELETON ================= */

.skeleton {
    position: relative;
    background: #e9ecef;
    overflow: hidden;
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    animation: loading 1.2s infinite;
}

@keyframes loading {
    100% { transform: translateX(100%); }
}

.skeleton-text { height: 14px; }
.skeleton-title { height: 26px; width: 60%; margin: auto; }
.skeleton-badge { height: 32px; width: 120px; border-radius: 999px; }
.skeleton-box { aspect-ratio: 1 / 1; border-radius: var(--raffle-number-radius); }


.number-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--raffle-color-available-border);
    border-radius: var(--raffle-number-radius);
    padding: 4px 2px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    user-select: none;
    background: var(--raffle-color-available-bg);
}

.number-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--raffle-color-primary-rgb), 0.1);
    border-color: var(--raffle-color-accent);
}

.number-box.selected {
    background: var(--raffle-color-selected-bg);
    color: var(--raffle-color-selected-text);
    border-color: var(--raffle-color-selected-border);
    box-shadow: 0 4px 12px rgba(var(--raffle-color-primary-rgb), 0.28);
}

.number-box.sold,
.number-box.reserved {
    background: var(--raffle-color-sold-bg);
    color: var(--raffle-color-sold-text);
    border-color: var(--raffle-color-sold-border);
    cursor: pointer;
    justify-content: center;
    gap: 1px;
}

.number-box.sold:hover,
.number-box.reserved:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.checkout-card {
    top: 100px;
}

.landing-checkout-card {
    top: 88px;
}

/* ================= MOBILE CHECKOUT PRO ================= */

.mobile-checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: #ffffff;
    padding: 14px 16px;

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

    border-top: 1px solid #e9ecef;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);

    z-index: 999;
}

/* Info izquierda */
.mobile-checkout .checkout-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mobile-checkout small {
    font-size: 12px;
    color: #6c757d;
}

.mobile-checkout strong {
    font-size: 18px;
    font-weight: 700;
}

/* Botón principal */
.btn-checkout-mobile {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    white-space: nowrap;
}

/* Animación */
.translate-bottom {
    transform: translateY(110%);
    transition: transform 0.35s ease-in-out;
}

.translate-show {
    transform: translateY(0);
}

/* ================= CAJA BASE (GRID) ================= */

.number-box__num {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    flex-shrink: 0;
}

.number-box.free .number-box__num {
    font-size: 1.15rem;
}

.number-box.sold .number-box__num,
.number-box.reserved .number-box__num {
    font-size: 0.92rem;
}

.number-box__owner {
    display: block;
    width: 100%;
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 1px;
    padding: 0 3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--raffle-color-primary-dark);
}

.number-box__detail {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--raffle-color-accent);
    opacity: 0.55;
    line-height: 1;
    margin-top: 0;
    pointer-events: none;
}

.number-box.sold:hover .number-box__detail,
.number-box.reserved:hover .number-box__detail {
    opacity: 1;
}

@media (max-width: 991px) {
    #numbers {
        padding-bottom: 120px;
    }

    body.landing-page.mobile-checkout-open {
        padding-bottom: 96px;
    }
}

.mobile-checkout .label {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
}

.mobile-checkout .value {
    font-size: 19px;
    font-weight: 800;
}

.mobile-checkout {
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.2);
}

.card.raffle-paused .number-box[data-status="0"] {
    cursor: not-allowed;
    opacity: 0.72;
}

.card.raffle-paused .number-box[data-status="0"]:hover {
    transform: none;
}

/* CCM Software brand credit — enlace claramente clicable */
.ccm-footer-brand,
a.footer-dev-brand,
a.site-footer-dev--brand,
a.site-footer-dev.ccm-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none !important;
    vertical-align: middle;
    margin-left: 0.2rem;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.ccm-footer-brand:hover,
.ccm-footer-brand:focus-visible,
a.footer-dev-brand:hover,
a.footer-dev-brand:focus-visible,
a.site-footer-dev--brand:hover,
a.site-footer-dev--brand:focus-visible {
    text-decoration: none !important;
    opacity: 1;
    border-bottom-color: rgba(6, 182, 212, 0.85);
}
.ccm-footer-brand__logo,
.footer-dev-logo,
.site-footer-dev__logo {
    display: inline-block;
    height: 1.65rem;
    width: auto;
    max-width: min(100%, 10.5rem);
    vertical-align: middle;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.ccm-footer-brand:hover .ccm-footer-brand__logo,
.ccm-footer-brand:hover .footer-dev-logo,
.ccm-footer-brand:hover .site-footer-dev__logo,
a.footer-dev-brand:hover .footer-dev-logo,
a.site-footer-dev--brand:hover .site-footer-dev__logo {
    opacity: 0.9;
    transform: translateY(-1px);
}
.ccm-footer-brand__hint {
    font-size: 0.85rem;
    line-height: 1;
    color: #06b6d4;
    opacity: 0.9;
    flex-shrink: 0;
}
.ccm-footer-brand:hover .ccm-footer-brand__hint,
.ccm-footer-brand:focus-visible .ccm-footer-brand__hint {
    opacity: 1;
}

