/* ==========================================================================
   LINCOLN MOTOS - ESTILOS PRINCIPALES (ORANGE & CARBON MOTORCYCLE LUXURY)
   Estética inspirada en LG Cars adaptada a Guías Digitales & Adjudicación de Motos
   ========================================================================== */

:root {
    --bg-main: #06070a;
    --bg-surface: #0c0e14;
    --bg-card: #12151e;
    --bg-glass: rgba(18, 21, 30, 0.88);
    --border-glass: rgba(234, 91, 12, 0.22);
    --border-glow: rgba(255, 107, 0, 0.45);
    
    --primary: #ea5b0c;
    --primary-hover: #ff6d1e;
    --primary-glow: rgba(234, 91, 12, 0.45);
    
    --accent: #ff7b29;
    --accent-glow: rgba(255, 123, 41, 0.45);
    
    --orange-light: #ffedd5;
    --orange-dark: #c2410c;
    --orange-gradient: linear-gradient(135deg, #ff8c42 0%, #ea5b0c 50%, #c2410c 100%);
    
    --green-wa: #25d366;
    --green-wa-hover: #20ba59;
    --green-wa-glow: rgba(37, 211, 102, 0.35);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(234, 91, 12, 0.35);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(234, 91, 12, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(194, 65, 12, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 50% 95%, rgba(255, 107, 0, 0.05) 0%, transparent 55%);
    background-attachment: fixed;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Live Ticker Bar (Exacto estilo LG Cars) */
.top-ticker-bar {
    background: linear-gradient(90deg, #120904 0%, #2a1005 50%, #120904 100%);
    border-bottom: 1px solid rgba(234, 91, 12, 0.35);
    padding: 9px 16px;
    font-size: 0.84rem;
    color: #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-weight: 700;
}

.top-ticker-bar .badge-live {
    background: #ef4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: blinker 1.5s infinite;
}

@keyframes blinker {
    50% { opacity: 0.35; }
}

/* Header & Nav */
.site-header {
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-wrap:hover .brand-logo-img {
    transform: scale(1.03);
}

.brand-pill {
    background: rgba(234, 91, 12, 0.15);
    border: 1px solid rgba(234, 91, 12, 0.4);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-btn-ticket {
    background: rgba(234, 91, 12, 0.12);
    border-color: rgba(234, 91, 12, 0.35);
    color: #ffedd5;
}

.nav-btn-ticket:hover {
    background: rgba(234, 91, 12, 0.25);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.nav-btn-wa {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
    color: #86efac;
}

.nav-btn-wa:hover {
    background: #25d366;
    color: #000;
    transform: translateY(-1px);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #ffffff 0%, #ff8c42 50%, #ea5b0c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* AutoLoop Main Grid (Layout LG Cars) */
.autoloop-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    margin: 36px 0 48px;
}

/* Galería de la Moto */
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.gallery-main-view {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-main-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at center, #1b202c 0%, #080a0e 100%);
    transition: transform 0.4s ease;
}

.gallery-main-view:hover img {
    transform: scale(1.03);
}

.gallery-badges-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.badge-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tag-0km {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.badge-tag-flete {
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 85px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #000;
    cursor: pointer;
    border: 2px solid rgba(234, 91, 12, 0.25);
    opacity: 0.7;
    transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.05);
}

/* Temporizador Countdown */
.countdown-box {
    background: rgba(10, 12, 18, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.countdown-digits {
    display: flex;
    gap: 8px;
}

.countdown-item {
    text-align: center;
    min-width: 44px;
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

/* Columna Derecha: Selección de Chances */
.raffle-info-col {
    display: flex;
    flex-direction: column;
}

.raffle-header-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.raffle-desc-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Barra de Progreso */
.progress-card {
    background: rgba(14, 17, 24, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bar-track {
    height: 10px;
    border-radius: var(--radius-full);
    background: #1c2230;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #ea5b0c 0%, #ff8c42 100%);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 1s ease-in-out;
}

/* Selector de Chances (Formato Exacto LG Cars) */
.autoloop-chances-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.chance-row {
    background: rgba(16, 19, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.chance-row:hover {
    border-color: rgba(234, 91, 12, 0.5);
    background: rgba(22, 27, 40, 0.98);
    transform: translateY(-2px);
}

.chance-row.selected {
    border: 2px solid var(--primary);
    background: rgba(30, 20, 14, 0.98);
    box-shadow: 0 0 25px rgba(234, 91, 12, 0.35);
    transform: translateY(-2px);
}

.chance-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chance-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #475569;
    display: grid;
    place-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    background: transparent;
}

.chance-row.selected .chance-radio {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.chance-radio i {
    font-size: 0.65rem;
    display: none;
    font-weight: 900;
}

.chance-row.selected .chance-radio i {
    display: block;
}

.chance-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.chance-label strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.chance-discount-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.chance-popular-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.chance-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent);
}

.chance-row.selected .chance-price {
    color: #fff;
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Botón Principal de Compra de Chances */
.btn-participate-now {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ff8c42 0%, #ea5b0c 50%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(234, 91, 12, 0.45);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-participate-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(234, 91, 12, 0.6);
    background: linear-gradient(135deg, #ffa25e 0%, #ff6d1e 50%, #d4470d 100%);
}

.participate-subtext {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Ficha Técnica de la Moto */
.specs-section {
    margin: 50px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

.spec-card:hover {
    border-color: rgba(234, 91, 12, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(234, 91, 12, 0.12);
    color: var(--primary);
    display: grid;
    place-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.spec-key {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.spec-val {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
}

/* Sección Mis Números / Verificador */
.my-numbers-box {
    background: linear-gradient(135deg, rgba(234, 91, 12, 0.08) 0%, rgba(18, 21, 30, 0.98) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: 0 0 35px rgba(234, 91, 12, 0.15);
    margin: 40px 0;
}

/* Modales */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
    transform: scale(0.93);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
}

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

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 91, 12, 0.2);
}

/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.floating-wa-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
    .autoloop-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gallery-main-view {
        height: 320px;
    }
}
