        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #964B00;
            --primary-light: #b8610f;
            --primary-dark: #7a3e00;
            --secondary-color: #000;
            --background: #f2f2f2;
            --white: #ffffff;
            --text-dark: #333;
            --text-light: #666;
            --shadow: rgba(0, 0, 0, 0.1);
            --shadow-hover: rgba(0, 0, 0, 0.2);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(var(--text-light), var(--text-dark), var(--secondary-color));
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Header mejorado */
        header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: var(--white);
            text-align: center;
            padding: 2rem 1rem;
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0;
            opacity: 0;
            animation: slideInDown 1s ease forwards;
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Navegación mejorada - ahora sticky */
        nav {
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            position:sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 2px solid var(--primary-color);
        }

        nav h2 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
            text-align: center;
        }

        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        nav ul li a {
            color: var(--white);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border: 1px solid var(--primary-color);
            border-radius: 20px;
            transition: all 0.3s ease;
            display: inline-block;
            font-size: 0.9rem;
        }

        nav ul li a:hover {
            background: var(--primary-color);
            transform: scale(1.05);
        }
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
}

.social-links ul li {
  position: relative;
}

.social-links ul li a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Efecto base que ya usabas */
.social-links ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}

/* Hover: el color se desliza */
.social-links ul li a:hover::before {
  left: 0;
}

/* Colores corporativos */
.facebook {
  background: var(--secondary-color);
}
.facebook::before {
  background: linear-gradient(90deg, #1877f2, #3b5998);
}

.instagram {
  background: var(--secondary-color);
}
.instagram::before {
  background: linear-gradient(90deg, #f09433, #e95950, #bc1888, #fccc63);
}

.linkedin {
  background: var(--secondary-color);
}
.linkedin::before {
  background: linear-gradient(90deg, #0a66c2, lightblue);
}

.github {
  background: var(--secondary-color);
}
.github::before {
  background: linear-gradient(90deg, #333, #B013D0);
}


        /* Redes Sociales - Footer
        .social-links {
            background: linear-gradient(135deg, #333, #000);
            color: var(--white);
            padding: 1rem 0;
            text-align: center;
            border-radius: 25px;
        }

        .social-links ul {
            list-style: none;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            flex-wrap: wrap;
            border: 25%;
        }

        .social-links ul li a {
            color: var(--white);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-links ul li a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            transition: left 0.3s ease;
            z-index: -1;
        }

        .social-links:hover {
            left: 0;
            background-color: #b8610f;
            border-color: #fff;
        }

        .social-links ul li a:hover {
            transform: translateZ(-2px);
        } */

        /* Main content */
        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* Secciones mejoradas */
        section {
            margin-bottom: 4rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        section:nth-child(2) { animation-delay: 0.2s; }
        section:nth-child(3) { animation-delay: 0.4s; }
        section:nth-child(4) { animation-delay: 0.6s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #informacion-personal {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: 0 15px 40px var(--shadow);
            position: relative;
            overflow: hidden;
        }

        #informacion-personal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        }

        #informacion-personal h2 {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            position: relative;
        }

        #informacion-personal p {
            margin-bottom: 1rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .letras {
            font-weight: 600;
            color: var(--primary-color);
        }

        /* Sistema de pestañas/solapas */
        .tab-container {
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 15px 40px var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .tab-buttons {
            display: flex;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            border-radius: 20px 20px 0 0;
        }

        .tab-button {
            flex: 1;
            padding: 1.5rem 2rem;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .tab-button:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .tab-button.active {
            background: var(--white);
            color: var(--primary-color);
        }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
        }

        .tab-content {
            display: none;
            padding: 2.5rem;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tab-content h2 {
            font-size: 2rem;
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
        }

        .tab-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            border-radius: 2px;
        }

        /* Cards mejoradas */
        #cardswrapper {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
        }

        .project-card {
            background: var(--white);
            border-radius: 15px;
            padding: 1.5rem;
            box-shadow: 0 10px 30px var(--shadow);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(150, 75, 0, 0.1);
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(150, 75, 0, 0.05), transparent);
            transition: left 0.6s ease;
        }

        .project-card:hover::before {
            left: 100%;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 50px var(--shadow-hover);
        }

        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 1rem;
            transition: transform 0.3s ease;
        }

        .project-card:hover img {
            transform: scale(1.05);
        }

        .project-card h3 {
            font-size: 1.4rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .project-info {
            margin-bottom: 1rem;
        }

        .project-info p {
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        .project-info strong {
            color: var(--primary-color);
            font-weight: 600;
        }

        .project-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .btn {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: var(--white);
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(150, 75, 0, 0.3);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            color: var(--white);
        }

        /* Modal para información adicional */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: var(--white);
            margin: 5% auto;
            padding: 2rem;
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            position: relative;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .close {
            position: absolute;
            right: 1rem;
            top: 1rem;
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary-color);
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close:hover {
            background: var(--primary-color);
            color: var(--white);
            transform: rotate(90deg);
        }

        /* Main content con margen para nav fijo */
        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
            margin-top: 80px; /* Espacio para el nav fijo */
        }

        /* Links de GitHub mejorados */
        .github-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .repo-card {
            background: linear-gradient(135deg, #f9f9f9, #fff);
            color: var(--text-dark);
            border-radius: 15px;
            border: 1px solid rgba(150, 75, 0, 0.1);
            padding: 1.5rem;
            text-decoration: none;
            box-shadow: 0 8px 25px var(--shadow);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .repo-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .repo-card:hover::before {
            transform: scaleX(1);
        }

        .repo-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px var(--shadow-hover);
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: var(--white);
        }

        .repo-card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .repo-card p {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Responsive mejorado */
        @media (max-width: 768px) {
            header h1 {
                font-size: 2rem;
            }

            nav ul {
                gap: 1rem;
            }

            .social-links ul {
                flex-direction: column;
                gap: 1rem;
            }

            main {
                margin-top: 100px; /* Más espacio en móvil */
            }

            #cardswrapper {
                grid-template-columns: 1fr;
            }

            .project-actions {
                flex-direction: column;
            }

            .tab-button {
                padding: 1rem;
                font-size: 1rem;
            }

            .tab-buttons {
                flex-direction: column;
            }
        }

        /* Footer mejorado */
        footer {
            background: var(--secondary-color);
            color: var(--white);
            text-align: center;
            padding: 2rem;
            margin-top: 3rem;
            position: relative;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        }

        /* Responsive */
        nav{
            color: #e8e8e8;
        }
        @media (max-width: 768px) {
            nav ul {
                gap: 1rem;
            }

            aside ul {
                flex-direction: column;
                gap: 1rem;
            }

            #cardswrapper {
                grid-template-columns: 1fr;
            }

            .project-actions {
                flex-direction: column;
            }
        }

        /* Scroll reveal animation */
        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s ease;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }