
        /* ==================== VARIABLES Y RESET ==================== */
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #34495e;
            --accent-color: #3498db;
            --text-color: #333;
            --bg-color: #d3d3d3;
            --card-bg: #e9e8e8;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
            --border-radius: 12px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat' , 'sans-serif';
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            padding: 40px 5px;
            margin-top: 70px;
        }
        /* ==================== NAV BAR FIJO ==================== */
         /* Navbar fijo */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 2px 20px rgba(45, 52, 54, 0.1);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.3s ease;
        }

        .navbar-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            width: 13rem;
        }
       
        .project-title {
            font-size: 2rem;
            font-weight: 500;
            color: var(--color-primary);
            text-align: center;
            flex-grow: 1;
            margin: 0 2rem;
        }

        .back-button {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background:  #5e91dd;
            color: #fdfdfd;
            text-decoration: none;
            border-radius: 25px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .back-button:hover {
            background: #375eb3fb;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(94, 145, 221, 0.3);
        }

        .back-button i {
            transition: transform 0.3s ease;
        }

        .back-button:hover i {
            transform: translateX(-3px);
        }

        @media (max-width: 768px) {
            .navbar-container {
                padding: 0 1rem;
            }
            
            .logo{
              width: 9rem;
            }
            
            .project-title {
                font-size: 1rem;
                margin: 0 1rem;
            }

            .back-button {
                padding: 0.4rem 0.8rem;
                font-size: 0.9rem;
            }
        }
        
        /* ==================== ESTRUCTURA DE PROYECTO ==================== */
        .proyecto-container {
            max-width: 1900px;
            margin: 0 auto 80px;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            padding: 40px;
        }

        .proyecto-container:last-child {
            margin-bottom: 40px;
        }

        .proyecto-titulo {
            font-size: 1.9rem;
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 300;
        }

        .proyecto-subtitulo {
            font-size: 1.2rem;
            color: var(--secondary-color);
            margin-bottom: 30px;
            font-weight: 500;
        }

        @media (max-width: 500px) {
            .proyecto-container {
                padding: 15px 5px;
            }
        }

        /* ==================== DESCRIPCIÓN DEL PROYECTO ==================== */
        .proyecto-descripcion {
            padding: 0 1rem;
        }

        .descripcion-titulo {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            font-weight: 500;
            text-align: center;
            text-justify: auto;
        }

        .descripcion-texto {
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--text-color);
            /* text-align: justify; */
            text-align: left;
            text-justify: auto;
        }

        @media (max-width: 500px){

        }

        /* ==================== SLIDER/CARROUSEL ==================== */
        .slider-wrapper {
            position: relative;
            margin-bottom: 40px;
            padding: 20px 0;
        }

        .slider-container {
            overflow: hidden;
            position: relative;
            border-radius: var(--border-radius);
        }

        .slider-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 20px;
        }

        .slider-card {
            flex: 0 0 100%;
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            background: var(--card-bg);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .slider-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .slider-card img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            display: block;
            background: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
        }

        /* Efecto blur para lazy loading (opcional) */
        /* .slider-card img[loading="lazy"] {
            filter: blur(5px);
            transition: filter 0.3s;
        }

        .slider-card img[loading="lazy"].loaded {
            filter: blur(0);
        } */

        .card-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 20px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        /* ==================== CONTROLES DEL SLIDER ==================== */
        .slider-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 20px;
        }

        .slider-button {
            background: var(--accent-color);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .slider-button:hover {
            background: var(--primary-color);
            transform: scale(1.1);
        }

        .slider-button:focus {
            outline: 3px solid var(--accent-color);
            outline-offset: 3px;
        }

        .slider-button:active {
            transform: scale(0.95);
        }

        /* Botón de pausa/play */
        .pause-button {
            background: var(--secondary-color);
            width: 45px;
            height: 45px;
        }

        .pause-button:hover {
            background: var(--primary-color);
        }

        @media (max-width: 500px){
            .prev-btn{
                display: none;
            }

            .next-btn{
                display: none;
            }
        }

        /* ==================== PAGINACIÓN (DOTS) ==================== */
        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ddd;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }

        .dot:hover {
            background: var(--accent-color);
            transform: scale(1.2);
        }

        .dot.active {
            background: var(--accent-color);
            width: 30px;
            border-radius: 6px;
        }

        .dot:focus {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }

        /* ==================== BARRA DE PROGRESO (OPCIONAL) ==================== */
        .progress-bar {
            width: 100%;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            overflow: hidden;
            margin-top: 15px;
        }

        .progress-fill {
            height: 100%;
            background: var(--accent-color);
            width: 0%;
            transition: width 0.1s linear;
        }


        /* ==================== MINI-THUMBNAILS (OPCIONAL) ==================== */
        .thumbnails {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .thumbnail {
            width: 80px;
            height: 60px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: var(--transition);
            opacity: 0.6;
        }

        .thumbnail:hover {
            opacity: 1;
            transform: scale(1.05);
        }

        .thumbnail.active {
            border-color: var(--accent-color);
            opacity: 1;
        }

        .thumbnail:focus {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }

        @media (max-width: 500px){
            .thumbnails{
                display: none;
            }
        }

        /* ==================== RESPONSIVE DESIGN ==================== */
        
        
        @media (min-width: 768px) {
            
            /* Tablets - Mostrar 2 tarjetas por vista */
            .slider-card {
                flex: 0 0 calc(100% - 10px);
            }
            
            .proyecto-titulo {
                font-size: 2.5rem;
            }

        }

        /* Desktop - Mostrar 3 tarjetas por vista */
        /* CAMBIAR AQUÍ: Modifica "calc(33.333% - 14px)" para ajustar cuántas tarjetas mostrar:
           - 2 tarjetas: calc(50% - 10px)
           - 3 tarjetas: calc(33.333% - 14px)
           - 4 tarjetas: calc(25% - 15px)
        */
        @media (min-width: 1024px) {
            .slider-card {
                flex: 0 0 calc(50% - 14px);
            }

            body {
                padding: 60px 40px;
            }
        }

        /* ==================== ACCESIBILIDAD Y UX ==================== */
        
        /* Focus visible para navegación por teclado */
        *:focus-visible {
            outline: 3px solid var(--accent-color);
            outline-offset: 3px;
        }

        /* Reducir movimiento para usuarios con preferencias de accesibilidad */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition: none !important;
            }
        }

        /* ==================== INDICADOR DE CARGA ==================== */
        .loading-placeholder {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ==================== MENSAJE DE ESTADO ==================== */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }