* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Colores basados en el logo de Datosistemas */
:root {
    --primary-blue: #1E9FD9;
    --primary-purple: #6B4FA0;
    --dark-blue: #0B4F71;
    --text-dark: #1a202c;
}

.bg {
    background: linear-gradient(135deg, #1E9FD9 0%, #6B4FA0 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1E9FD9 0%, #6B4FA0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 159, 217, 0.15);
}

.dark .card:hover {
    box-shadow: 0 20px 40px rgba(107, 79, 160, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #1E9FD9 0%, #6B4FA0 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #6B4FA0;
}

.dark .nav-link:hover {
    color: #9F7AEA;
}

.btn-primary {
    background: linear-gradient(135deg, #1E9FD9 0%, #6B4FA0 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(30, 159, 217, 0.4);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.project-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.1) 0%, rgba(107, 79, 160, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.dark .project-img {
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.2) 0%, rgba(107, 79, 160, 0.2) 100%);
}

/* Tech tags */
.tech-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.tag-purple {
    background-color: #F3E8FF;
    color: #6B4FA0;
}

.dark .tag-purple {
    background-color: rgba(107, 79, 160, 0.3);
    color: #C4B5FD;
}

.tag-blue {
    background-color: #DBEAFE;
    color: #0B4F71;
}

.dark .tag-blue {
    background-color: rgba(30, 159, 217, 0.3);
    color: #93C5FD;
}

/* Theme toggle */
.theme-toggle {
    cursor: pointer;
    width: 50px;
    height: 26px;
    background: #E5E7EB;
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
}

.dark .theme-toggle {
    background: #4B5563;
}

.theme-toggle-circle {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .theme-toggle-circle {
    transform: translateX(24px);
    background: #1F2937;
}