
        :root {
            /* Paleta personalizada */
            --tech-bg: #14251F;        /* Fondo principal: Verde casi negro */
            --tech-panel: #1C3329;     /* Navegación y tarjetas: Verde bosque */
            --tech-accent: #789681;    /* Detalles y botones: Verde salvia */
            --tech-text: #DCE7DD;      /* Texto destacado: Verde grisáceo claro */
            --tech-muted: #A7B9AA;     /* Texto secundario: Salvia suave */
            --tech-border: rgba(120, 150, 129, 0.25);
            --tech-dark-bg: #0d1915;   /* Fondo secundario oscuro */
        }

        body {
            background: var(--tech-bg);
            color: var(--tech-text);
            font-family: 'Montserrat', sans-serif;
            line-height: 1.75;
        }

        h1, h2, h3, h4, h5, .navbar-brand {
            font-family: 'Oswald', sans-serif;
            letter-spacing: .3px;
            color: var(--tech-text);
        }

        a {
            transition: color .2s ease, border-color .2s ease, transform .2s ease;
        }

        .topbar-tech {
            background: var(--tech-dark-bg);
            border-bottom: 1px solid var(--tech-border);
        }

        .topbar-tech a {
            color: var(--tech-muted);
        }

        .topbar-tech a:hover {
            color: var(--tech-text);
            text-decoration: none;
        }

        .nav-bar {
            background: var(--tech-panel);
        }

        .navbar.bg-secondary {
            background: var(--tech-panel) !important;
            border-bottom: 1px solid var(--tech-border);
        }

        .navbar-brand {
            font-size: 1.55rem;
            color: var(--tech-text) !important;
        }

        .navbar-brand span {
            color: var(--tech-accent) !important;
        }

        .navbar-dark .navbar-nav .nav-link {
            color: var(--tech-muted);
            padding: 1rem .85rem;
        }

        .navbar-dark .navbar-nav .nav-link:hover, 
        .navbar-dark .navbar-nav .nav-link.active {
            color: var(--tech-text);
        }

        .dropdown-menu {
            background: var(--tech-panel);
            border: 1px solid var(--tech-border);
        }

        .dropdown-item {
            color: var(--tech-text);
        }

        .dropdown-item:hover {
            background: rgba(120, 150, 129, 0.15);
            color: var(--tech-text);
        }

        .hero-tech {
            position: relative;
            overflow: hidden;
            background: radial-gradient(ellipse at 85% 20%, rgba(120, 150, 129, 0.18), transparent 40%), linear-gradient(125deg, var(--tech-dark-bg) 20%, var(--tech-panel) 100%);
            border-bottom: 1px solid var(--tech-border);
        }

        .hero-tech:before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: linear-gradient(rgba(120, 150, 129, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 129, 0.05) 1px, transparent 1px);
            background-size: 32px 32px;
            mask-image: linear-gradient(to right, transparent, #000);
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .eyebrow {
            color: var(--tech-accent);
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .hero-tech h1 {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            line-height: 1.08;
            color: var(--tech-text);
        }

        .hero-tech h1 span {
            color: var(--tech-accent);
        }

        .hero-lead {
            max-width: 720px;
            color: var(--tech-muted);
            font-size: 1.08rem;
        }

        .btn-tech {
            background: var(--tech-accent);
            color: var(--tech-dark-bg);
            border: 1px solid var(--tech-accent);
            font-weight: 700;
            border-radius: 4px;
            padding: .75rem 1.25rem;
        }

        .btn-tech:hover {
            background: var(--tech-text);
            border-color: var(--tech-text);
            color: var(--tech-dark-bg);
            transform: translateY(-2px);
        }

        .btn-outline-tech {
            border: 1px solid var(--tech-accent);
            color: var(--tech-text);
            border-radius: 4px;
            padding: .75rem 1.25rem;
        }

        .btn-outline-tech:hover {
            border-color: var(--tech-text);
            color: var(--tech-text);
            background: rgba(120, 150, 129, 0.1);
        }

        .hero-card {
            background: rgba(28, 51, 41, 0.8);
            border: 1px solid var(--tech-border);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 20px 60px rgba(0,0,0,.3);
        }

        .hero-symbol {
            width: 100%;
            min-height: 230px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tech-accent);
            font-size: 6rem;
            background: linear-gradient(145deg, rgba(120, 150, 129, 0.15), rgba(20, 37, 31, 0.4));
            border: 1px solid var(--tech-border);
            border-radius: 8px;
            position: relative;
        }

        .hero-symbol:after {
            content: "ELECTRÓNICA / ELECTRONICS";
            position: absolute;
            bottom: 14px;
            font-size: .65rem;
            letter-spacing: 2px;
            color: var(--tech-muted);
        }

        .section-tech {
            padding: 5rem 0;
            background: var(--tech-bg);
        }

        .section-alt {
            background: var(--tech-dark-bg);
        }

        .section-title-tech {
            font-size: 2.3rem;
            margin-bottom: .8rem;
            color: var(--tech-text);
        }

        .section-intro {
            color: var(--tech-muted);
            max-width: 720px;
        }

        .tech-card {
            height: 100%;
            background: var(--tech-panel);
            border: 1px solid var(--tech-border);
            border-radius: 8px;
            padding: 1.5rem;
            transition: transform .2s, border-color .2s;
        }

        .tech-card:hover {
            transform: translateY(-4px);
            border-color: var(--tech-accent);
        }

        .tech-icon {
            color: var(--tech-accent);
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .tech-card h3 {
            font-size: 1.3rem;
            color: var(--tech-text);
        }

        .tech-card p, .muted {
            color: var(--tech-muted);
        }

        .timeline {
            position: relative;
            padding-left: 1.7rem;
        }

        .timeline:before {
            content: "";
            position: absolute;
            left: 5px;
            top: 8px;
            bottom: 8px;
            width: 2px;
            background: linear-gradient(var(--tech-accent), rgba(120, 150, 129, 0.1));
        }

        .timeline-item {
            position: relative;
            padding: 0 0 2rem 1.2rem;
        }

        .timeline-item:before {
            content: "";
            position: absolute;
            left: -1.7rem;
            top: 7px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--tech-accent);
            box-shadow: 0 0 0 4px rgba(120, 150, 129, 0.2);
        }

        .timeline-item h3 {
            font-size: 1.25rem;
            margin-bottom: .25rem;
            color: var(--tech-text);
        }

        .timeline-label {
            font-size: .75rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--tech-accent);
            font-weight: 700;
        }

        .tag-tech {
            display: inline-block;
            border: 1px solid var(--tech-border);
            background: rgba(120, 150, 129, 0.12);
            color: var(--tech-text);
            border-radius: 4px;
            padding: .4rem .65rem;
            margin: .25rem .25rem .25rem 0;
            font-size: .82rem;
        }

        .gallery-tech img, .gallery-tech iframe {
            width: 100%;
            height: 100%;
            min-height: 220px;
            object-fit: cover;
            border: 1px solid var(--tech-border);
            border-radius: 8px;
        }

        .gallery-tech .media-box {
            height: 100%;
            min-height: 220px;
        }

        .footer-tech {
            background: var(--tech-dark-bg);
            border-top: 1px solid var(--tech-border);
            color: var(--tech-muted);
        }

        .footer-tech a {
            color: var(--tech-muted);
        }

        .footer-tech a:hover {
            color: var(--tech-text);
            text-decoration: none;
        }

        .small-label {
            font-size: .75rem;
            letter-spacing: 1.5px;
            color: var(--tech-accent);
            text-transform: uppercase;
        }

        @media(max-width:767.98px) {
            .section-tech { padding: 3.5rem 0; }
            .hero-tech { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
            .hero-symbol { min-height: 180px; margin-top: 1rem; }
            .navbar-brand { font-size: 1.25rem; }
        }


        /* Mantiene la paleta tech existente: --tech-bg, --tech-panel, etc. */
        .repairs-section { padding: 5rem 0; background: var(--tech-dark-bg); }
        .repairs-header { margin-bottom: 2rem; }
        .repairs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.4rem; }
        .repair-card { overflow: hidden; height: 100%; background: var(--tech-panel); border: 1px solid var(--tech-border); border-radius: 8px; transition: transform .2s ease, border-color .2s ease; }
        .repair-card:hover { transform: translateY(-4px); border-color: var(--tech-accent); }
        .repair-media { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--tech-bg); overflow: hidden; }
        .repair-media img, .repair-media iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
        .repair-media .media-placeholder { display:flex; align-items:center; justify-content:center; height:100%; color:var(--tech-accent); font-size:2.8rem; }
        .repair-content { padding: 1.35rem; }
        .repair-tag { display:inline-block; margin-bottom:.65rem; padding:.2rem .55rem; border:1px solid var(--tech-border); border-radius:3px; color:var(--tech-accent); font-size:.72rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
        .repair-content h3 { margin-bottom:.6rem; font-size:1.35rem; color:var(--tech-text); }
        .repair-content p { margin:0; color:var(--tech-muted); }
        @media (max-width: 575px) { .repairs-section { padding: 3.5rem 0; } }

        /* ==================================================
        Correcciones generales de layout
        ================================================== */

        @media (min-width: 576px) {
            .container,
            .container-sm {
                max-height: none;
            }
        }

        @media (min-width: 768px) {
            .container,
            .container-sm,
            .container-md {
                max-height: none;
            }
        }

        @media (min-width: 992px) {
            .container,
            .container-sm,
            .container-md,
            .container-lg {
                max-height: none;
            }
        }
        /* Corregir la superposición del menú de navegación */
        .nav-bar {
            position: relative;
            z-index: 1030;
            overflow: visible;
        }

        .nav-bar .navbar,
        .nav-bar .navbar-collapse,
        .nav-bar .navbar-nav {
            overflow: visible;
        }

        .nav-bar .dropdown-menu {
            z-index: 1031;
        }
        /* Estilos para tarjetas clickeables de proyectos */
        .project-card-link {
            text-decoration: none !important;
            color: inherit;
            display: block;
        }

        .project-card-link .repair-card {
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;
        }

        .project-card-link:hover .repair-card {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        /* Tarjetas clickeables de proyectos */
        .project-card-link {
            text-decoration: none !important;
            color: inherit;
            display: block;
        }

        .project-card-link .repair-card {
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .project-card-link:hover .repair-card {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        /* Línea superior indicativa en cada tarjeta (Borde superior de acento) */
        .repair-card.card-academic {
            border-top: 25px solid #284aa7; /* Verde claro/clásico institucional */
        }

        .repair-card.card-personal {
            border-top: 25px solid #030604; /* Verde oscuro / oliva sobrio */
        }

        /* Estilos de la leyenda superior */
        .legend-dot {
            width: 25px;
            height: 25px;
            display: inline-block;
            border-radius: 4px;
            margin-right: 6px;
        }

        .academic-dot {
            background-color: #284aa7;
        }

        .personal-dot {
            background-color: #030604;
        }
        /* Contenedor de logos de tecnologías/herramientas */
        .project-tech-stack {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.08); /* Sutil separación interna */
        }

        /* Tamaño fijo y consistente para todos los logos pequeños */
        .project-tech-stack img {
            height: 22px;
            width: auto;
            object-fit: contain;
            filter: opacity(0.85);
            transition: filter 0.2s ease, transform 0.2s ease;
        }

        .project-card-link:hover .project-tech-stack img {
            filter: opacity(1);
            transform: scale(1.08);
        }

        .repair-media video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center; /* Centra el encuadre */
            display: block;
        }
   