/* Premium Custom CSS - Gran Rifa Pelluhue (Light & Energetic Edition) */

:root {
    --primary-bg: #f0f9ff; /* Celeste cielo claro y alegre */
    --secondary-bg: #ffffff;
    --accent: #0ea5e9; /* Celeste cielo */
    --accent-hover: #0284c7;
    --accent-sunset: #f97316; /* Naranja atardecer enérgico */
    --text-light: #0f172a; /* Texto oscuro principal para legibilidad */
    --text-muted: #475569; /* Gris oscuro secundario */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(14, 165, 233, 0.15);
    --glass-shadow: 0 10px 30px 0 rgba(14, 165, 233, 0.1);
    --glow-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    --state-available: #10b981;
    --state-reserved: #f59e0b;
    --state-sold: #ef4444;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--primary-bg);
    background-image: 
        radial-gradient(at 10% 20%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(249, 115, 22, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1 0 auto;
    padding-top: 1.5rem;
}

/* Fonts */
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navigation Bar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.brand-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-sunset) 100%);
    color: white;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-light) !important;
}

.custom-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    border-bottom: 2px solid transparent;
}

.custom-navbar .nav-link:hover {
    color: var(--accent) !important;
    transform: translateY(-1px);
}

.custom-navbar .nav-link.active {
    color: var(--accent) !important;
}

.text-accent {
    color: var(--accent) !important;
    font-weight: 700;
}

.user-profile-badge {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    height: 38px;
}

/* Navigation Dropdown styling */
.custom-navbar .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.custom-navbar .dropdown-item {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light) !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.custom-navbar .dropdown-item:hover {
    background-color: rgba(14, 165, 233, 0.08) !important;
    color: var(--accent) !important;
}

.custom-navbar .dropdown-item i {
    font-size: 1rem;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

.btn-sunset {
    background: linear-gradient(135deg, var(--accent-sunset) 0%, #c2410c 100%);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-sunset:hover {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

/* Top Raffle Banner */
.raffle-top-banner {
    background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 50%, #f97316 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Glassmorphism Cards */
.premium-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 35px 0 rgba(14, 165, 233, 0.15);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--accent-sunset);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-sunset) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Timeline & Campaign Details */
.destination-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.destination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.05);
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-img {
    transform: scale(1.08);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.8) 60%, transparent 100%);
}

.destination-info h3 {
    color: #0f172a !important;
}

.destination-info p {
    color: #334155 !important;
}

/* Raffle Ticket Grid */
.tickets-container {
    max-height: 950px;
    overflow-y: auto;
    padding-right: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
}

.tickets-container::-webkit-scrollbar {
    width: 6px;
}

.tickets-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.tickets-container::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.2);
    border-radius: 4px;
}

.tickets-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 1.5rem;
}

.ticket-node {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.ticket-node.available {
    background: #e6fcf5; /* Verde muy claro */
    color: #087f5b; /* Verde oscuro para contraste */
    border-color: #a3e635; /* Borde lima claro */
    border: 1px solid #10b981;
}

.ticket-node.available:hover {
    background: var(--state-available);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.ticket-node.reserved {
    background: #fff9db; /* Amarillo/naranja muy claro */
    color: #e67e22; /* Contraste */
    border: 1px solid var(--state-reserved);
}

.ticket-node.sold {
    background: #fff5f5; /* Rojo muy claro */
    color: #c92a2a; /* Contraste */
    border: 1px solid var(--state-sold);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Glassmorphic Login Form */
.glass-form-wrapper {
    max-width: 450px;
    margin: 4rem auto;
}

.glass-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 3rem 2.5rem;
}

.glass-form-title {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
}

.glass-form-group {
    margin-bottom: 1.5rem;
}

.glass-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--text-light) !important;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: #ffffff;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Dashboard & Tables */
.premium-table {
    color: var(--text-light) !important;
}

.premium-table th {
    border-bottom: 2px solid #e2e8f0 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background: transparent !important;
}

.premium-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
    vertical-align: middle;
    font-size: 0.95rem;
}

.badge-available {
    background: #e6fcf5;
    color: #087f5b;
    border: 1px solid #10b981;
}

.badge-reserved {
    background: #fff9db;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.badge-sold {
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Footer styling */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    margin-top: auto;
    font-size: 0.75rem; /* Much smaller */
}

.footer-logo {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f172a;
    font-size: 0.85rem;
}

/* Utilities */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.font-size-sm {
    font-size: 0.875rem;
}

.text-dark-blue {
    color: #1e3a8a !important; /* Azul oscuro */
}

