:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-hover: #60a5fa;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Barra de Scroll Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Estilos de la Navbar */
.navbar {
    background-color: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 800;
    color: var(--text-main) !important;
    letter-spacing: -0.5px;
}
.navbar-brand span {
    color: var(--accent);
}
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1.2rem;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2.4rem);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

/* Animación Flotante del SVG */
.floating-svg {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Botones Custom */
.btn-custom-primary {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
    color: white;
}
.btn-custom-outline {
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.btn-custom-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Estilos de Secciones Generales */
section {
    padding: 100px 0;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent);
    bottom: -12px;
    left: 0;
    border-radius: 2px;
}

/* Tarjetas de Proyectos */
.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.project-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #1a202c;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-body {
    padding: 1.75rem;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}
.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.project-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.project-link:hover {
    color: var(--accent);
}

/* Badges de Habilidades */
.skills-section {
    background-color: var(--bg-secondary);
}
.skill-badge {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
    background-color: rgba(59, 130, 246, 0.03);
}
.skill-badge i {
    font-size: 1.25rem;
    color: var(--accent);
}

/* Formulario de Contacto */
.contact-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}
.form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.form-control:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background-color: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Clases de Animación Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Círculos Brillantes de Fondo (Blobs) */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
.blob-1 { top: 15%; right: -100px; }
.blob-2 { bottom: 20%; left: -150px; }