:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
}

main {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.alert {
    border: none;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.1);
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.1);
    border-left-color: var(--danger-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    overflow: hidden;
}

/* Formas geométricas decorativas */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(-45deg);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes div {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-shapes div:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes div:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.hero-shapes div:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

/* Features Section */
.features {
    background-color: #f8f9fa;
}

.feature-item {
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Areas Section */
.area-card {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
}

.area-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.area-card:hover .area-icon {
    color: white;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), #2e59d9);
    color: white;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .area-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e59d9;
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #2e59d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Dashboard Cards */
.border-left-primary {
    border-left: .25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: .25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: .25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: .25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: .25rem solid var(--danger-color) !important;
}

.border-left-secondary {
    border-left: .25rem solid var(--secondary-color) !important;
}

.text-xs {
    font-size: .7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Animación de recompensas */
.reward-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1060;
    animation: popIn 0.3s ease-out;
}

.reward-content {
    text-align: center;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Estilos para las misiones */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    transform: translateX(5px);
    background-color: #f8f9fa;
}

.complete-mission {
    transition: all 0.2s ease;
}

.complete-mission:hover {
    transform: scale(1.1);
}

/* Alertas mejoradas */
.alert {
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.alert-success {
    border-left-color: var(--success-color);
    color: #155724;
    background-color: #d4edda;
}

.alert-danger {
    border-left-color: var(--danger-color);
    color: #721c24;
    background-color: #f8d7da;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0.5rem;
}