/* Base Styles & Variables */
        :root {
            --bg-dark: #121212;
            --bg-card: #1f1f1f;
            --bg-card-alt: #242423;
            --accent: #e74c3c;
            --accent-hover: #c0392b;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --border: #333;
            --shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-dark);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* HEADER - Se eliminan interferencias de estilos globales h2 */
        header {
            background-color: var(--bg-card);
            color: white;
            padding: 1rem 5%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* Selector específico para evitar que herede estilos decorativos del h2 general */
        header .Name h2 {
            margin: 0;
            padding: 0;
            font-size: 1.5rem;
            font-weight: 600;
            white-space: nowrap;
            color: #ffffff;
            text-decoration: none;
            border: none;
            background: none;
        }

        /* Eliminamos cualquier pseudoelemento que pudiera heredar en el header */
        header .Name h2::after {
            display: none;
        }

        .container-menu nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .container-menu nav ul li a {
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
            color: var(--text-primary);
            text-decoration: none;
        }

        .container-menu nav ul li a:not(.btn-contact-nav):hover {
            background-color: #333;
            color: #ffffff;
        }

        .btn-contact-nav {
            background-color: var(--accent) !important;
            color: white !important;
            padding: 0.6rem 1.2rem !important;
            border-radius: 50px !important;
            font-weight: bold !important;
            box-shadow: 0 4px 6px rgba(231, 76, 60, 0.4);
        }

        .btn-contact-nav:hover {
            background-color: var(--accent-hover) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(231, 76, 60, 0.6);
        }

        /* MAIN Content */
        main {
            flex-grow: 1;
            padding: 3rem 5%;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }

        /* PROJECT DETAIL STYLES */
        .project-hero {
            text-align: center;
            margin-bottom: 4rem;
        }

        .project-hero h1 {
            font-size: clamp(2rem, 8vw, 3.5rem);
            margin: 0 0 1rem 0;
            color: white;
            line-height: 1.2;
        }

        .project-hero p {
            color: var(--text-secondary);
            font-size: clamp(1rem, 4vw, 1.2rem);
            max-width: 800px;
            margin: 0 auto;
        }

        .project-image-main {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            max-height: 500px;
            background: #252525;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 4rem;
            border: 1px solid var(--border);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        }

        .project-image-main img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.9;
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1.8fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        /* Estilizamos h2 solo dentro de main para evitar afectar al header */
        main h2 {
            color: var(--accent);
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            position: relative;
        }

        main h2::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background: var(--accent);
            margin-top: 0.5rem;
        }

        .description-text p {
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .features-list {
            list-style: none;
            padding: 0;
            margin: 2rem 0;
        }

        .features-list li {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .features-list li::before {
            content: '✔';
            color: var(--accent);
            font-weight: bold;
        }

        .tech-stack {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid var(--border);
            height: auto;
            position: -webkit-sticky;
            position: sticky;
            top: 100px;
        }

        .tech-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .tech-list li {
            background: #252525;
            margin-bottom: 0.8rem;
            padding: 1rem;
            border-radius: 10px;
            border-left: 4px solid var(--accent);
            transition: transform 0.3s;
        }

        .tech-list li:hover {
            transform: translateX(5px);
        }

        .tech-list li strong {
            display: block;
            color: var(--accent);
            font-size: 0.8rem;
            text-transform: uppercase;
            margin-bottom: 2px;
        }

        /* FOOTER */
        footer {
            background-color: var(--bg-card);
            padding: 4rem 5% 2rem;
            margin-top: 5rem;
            border-top: 1px solid var(--border);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto 3rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h4 {
            color: var(--accent);
            margin-bottom: 1rem;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .footer-section p, .footer-section a {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
            transition: color 0.3s;
        }

        .footer-section a:hover { color: white; }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            background: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: 0.3s;
        }

        .social-icon:hover {
            background: var(--accent);
            transform: translateY(-3px);
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            color: #666;
            font-size: 0.8rem;
            text-align: center;
        }

        /* RESPONSIVE - Mejoras de compatibilidad */
        @media (max-width: 992px) {
            .content-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .tech-stack {
                position: static;
                width: 100%;
                box-sizing: border-box;
            }
        }

        @media (max-width: 768px) {
            header {
                flex-direction: column;
                padding: 1.5rem 1rem;
                gap: 1rem;
            }
            .container-menu nav ul {
                gap: 0.8rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .container-menu nav ul li a {
                font-size: 0.8rem;
                padding: 0.4rem 0.6rem;
            }
            main {
                padding: 2rem 5%;
            }
            .project-hero {
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 480px) {
            .Name h2 {
                font-size: 1.2rem;
            }
            .btn-contact-nav {
                padding: 0.5rem 1rem !important;
            }
        }