/* Variables Generales */
:root {
    --primary: #0066FF;
    --primary-hover: #0052cc;
    --secondary: #FF7A00;
    --secondary-hover: #e66e00;
    --bg-color: #121212;
    --panel-bg: rgba(27, 27, 27, 0.7);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--secondary);
    background: linear-gradient(90deg, var(--secondary), #ffd166);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 140, 0, 0.35);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Glassmorphism utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Layout y Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #004ecc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
    color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0a0a0a;
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(255,165,0,0.13) 0%, transparent 65%),
        radial-gradient(ellipse at 15% 80%, rgba(0,82,204,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(255,165,0,0.06) 0%, transparent 50%);
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
}

/* Partículas decorativas de fondo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,165,0,0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,165,0,0.04) 0%, transparent 40%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

/* Logo del hero */
.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 40px rgba(255,165,0,0.35)) drop-shadow(0 0 80px rgba(255,165,0,0.15));
    animation: logoPulse 3s ease-in-out infinite;
}

.hero-logo {
    width: 340px;
    max-width: 80vw;
    height: auto;
    display: block;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 35px rgba(255,165,0,0.35)) drop-shadow(0 0 70px rgba(255,165,0,0.12)); }
    50%       { filter: drop-shadow(0 0 55px rgba(255,165,0,0.55)) drop-shadow(0 0 110px rgba(255,165,0,0.22)); }
}

.hero p {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Cards de Rifas */
.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.raffle-card {
    background: var(--panel-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.raffle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.raffle-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.raffle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.raffle-card:hover .raffle-img-wrapper img {
    transform: scale(1.1);
}

.raffle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.raffle-info {
    padding: 25px;
}

.vehicle-model {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.price-tag .value {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.tickets-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* WhatsApp Flotante */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control, .form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-control:focus, .form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Raffle Detail Grid */
.raffle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 100px; /* offset for fixed nav */
}

.main-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vehicle-specs {
    padding: 30px;
}

.vehicle-specs ul {
    list-style: none;
}

.vehicle-specs li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.vehicle-specs li i {
    width: 25px;
    color: var(--primary);
}

.vehicle-specs li strong {
    color: #fff;
    margin-left: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: #fff;
}

.tickets-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ticket-badge {
    background: var(--secondary);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.account-card {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-logo { width: 240px; }
    .raffle-detail-grid { grid-template-columns: 1fr; }
}
