:root {
    --bg-color: #F5F5F1;
    --text-color: #221E21;
    --text-muted: #444;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(245, 245, 241, 0.95);
    --border-color: #eaeaea;
    --primary-color: #D93025;
    --timeline-p: #555;
    --btn-bg: #F5F5F1;
    --btn-text: #221E21;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --card-bg: #1e1e1e;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --border-color: #333333;
    --timeline-p: #cccccc;
    --btn-bg: #333333;
    --btn-text: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23D93025' stroke='%23FFFFFF' stroke-width='1.5' d='M5.5 3.5v15.84l4.58-4.57 3.32 7.73 2.76-1.18-3.3-7.7 5.64.01L5.5 3.5z'/%3E%3C/svg%3E") 5 3, auto !important;
}

a, button, input, select, textarea, .nav-link, .btn-zoom, .carrusel-btn, .ampliable, .tile {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23D93025' stroke='%23FFFFFF' stroke-width='1.5' d='M9 11.5V3a1.5 1.5 0 0 1 3 0v4.5h.5a1.5 1.5 0 0 1 1.5 1.5v.5h.5a1.5 1.5 0 0 1 1.5 1.5v.5h.5a1.5 1.5 0 0 1 1.5 1.5v5.5a5 5 0 0 1-5 5h-2a6 6 0 0 1-6-6v-6.5a1.5 1.5 0 0 1 3 0v3.5h1z'/%3E%3C/svg%3E") 10 3, pointer !important;
}

body.loading {
     cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23D93025' d='M18 4V2H6v2l4 8-4 8v2h12v-2l-4-8 4-8z'/%3E%3C/svg%3E") 12 12, wait !important;
}

::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

html {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    scrollbar-color: #8B0000 var(--bg-color);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: #8B0000;
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #660000;
}

.texto-rojo {
    color: var(--primary-color);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.navegacion-personalizada {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .enlaces-navegacion {
        margin-right: 8%;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-bottom: 20px;
    }
}

.logo-navegacion {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-navegacion {
    transform: scale(1.05);
}

.enlaces-navegacion a {
    text-decoration: none;
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 8px;
}

.enlaces-navegacion a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.enlaces-navegacion a:hover::after, .enlaces-navegacion a.active::after {
    width: 100%;
}

.enlaces-navegacion a:hover, .enlaces-navegacion a.active {
    color: var(--primary-color) !important;
}

.btn-modo-oscuro {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.btn-modo-oscuro:hover {
    color: var(--primary-color);
}

.dropdown-toggle::after {
    display: none;
}

.btn-zoom {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    transition: all 0.2s ease;
}

.btn-zoom:hover {
    background-color: var(--border-color);
}

.btn-zoom.active-zoom {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

#contenido-portafolio {
    min-height: calc(100vh - 80px);
    padding-top: 130px;
    padding-bottom: 60px;
}

.contenido-desplazable {
    padding-top: 130px;
    padding-bottom: 60px;
}

.seccion-animada {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-seccion {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
}

.text-center.titulo-seccion::after {
    left: 50%;
    transform: translateX(-50%);
}

.texto-sobre-mi {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.texto-sobre-mi p {
    margin-bottom: 20px;
}

.bloque-texto {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    transition: background-color 0.3s ease;
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
}

.bloque-texto p {
    margin-bottom: 25px;
}

.tarjeta-caracteristica {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.tarjeta-caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-bottom: 4px solid var(--primary-color);
    color: var(--text-color);
}

.icono-tarjeta {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.tarjeta-caracteristica:hover .icono-tarjeta {
    transform: scale(1.05);
}

.tarjeta-caracteristica h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.bloque-perfil h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.linea-tiempo {
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 10px;
}

.elemento-linea-tiempo {
    position: relative;
    margin-bottom: 30px;
}

.elemento-linea-tiempo::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
    transition: border-color 0.3s ease;
}

.fecha-linea-tiempo {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.img-linea-tiempo {
    max-height: 80px;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: contain;
}

.contenido-linea-tiempo h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.contenido-linea-tiempo p {
    margin: 0;
    color: var(--timeline-p);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tarjeta-certificado, .tarjeta-conferencia {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    height: 90%;
    transition: background-color 0.3s ease;
}

.tarjeta-certificado h3, .tarjeta-conferencia h3 {
    margin-top: 0;
    color: var(--text-color);
    margin-bottom: 15px;
}

.tarjeta-certificado p, .tarjeta-conferencia p {
    color: var(--timeline-p);
    line-height: 1.6;
    font-size: 0.95rem;
}

.img-principal-certificado {
    max-height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.img-logos-certificado {
    max-height: 120px;
    margin-top: 20px;
    object-fit: contain;
}

.etiquetas-certificado {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.btn-certificado {
    text-decoration: none;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.btn-certificado:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 48, 37, 0.3);
}

.img-conferencia, .img-galeria {
    width: 55%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: block;
}

.img-conferencia:hover, .img-galeria:hover {
    transform: scale(1.02);
}

.contenedor-cv {
    display: flex;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.barra-lateral-cv {
    width: 300px;
    background: #1c324a;
    color: white;
    padding: 40px 30px;
    flex-shrink: 0;
}

.foto-cv {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.fecha-cv {
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 30px;
}

.seccion-lateral-cv h3 {
    font-size: 1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.seccion-lateral-cv p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d0d7de;
    margin-bottom: 15px;
}

.principal-cv {
    flex: 1;
    padding: 50px;
}

.cabecera-cv {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.cabecera-cv h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-color);
}

.cabecera-cv h2 {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.titulo-cv {
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.bloque-contenido-cv {
    margin-bottom: 40px;
}

.elemento-cv {
    margin-bottom: 20px;
}

.elemento-cv h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.rol-cv {
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.desc-cv {
    margin: 0 0 5px 0;
    color: var(--timeline-p);
    font-size: 0.95rem;
    line-height: 1.5;
}

.periodo-cv {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.columna-habilidad-cv ul {
    padding-left: 20px;
    margin: 0;
    color: var(--timeline-p);
    font-size: 0.95rem;
    line-height: 1.8;
}

.idioma-cv {
    margin-bottom: 15px;
    color: var(--timeline-p);
    font-size: 0.95rem;
}

.filtros-habilidades {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-filtro {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filtro:hover, .btn-filtro.activo {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.col-habilidad {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.col-habilidad.oculto {
    display: none;
}

.tarjeta-habilidad {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
}

.tarjeta-habilidad:hover {
    transform: translateY(-5px);
}

.icono-habilidad {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.tarjeta-habilidad h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.elemento-contacto {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    color: var(--text-color);
}

.seccion-mapa {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
}

.seccion-mapa h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.seccion-mapa p {
    color: var(--timeline-p);
    margin-bottom: 20px;
}

.contenedor-mapa {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pie-pagina-sitio {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--timeline-p);
    font-size: 0.95rem;
    font-weight: 500;
}

.pie-pagina-sitio a img {
    border-radius: 50%;
    padding: 4px;
    background-color: transparent;
    box-sizing: content-box;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

[data-theme="dark"] .pie-pagina-sitio a img {
    background-color: #ffffff;
}

.portafoliojaviernavarro {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 9999;
    pointer-events: auto;
}

.diseno-1, .diseno-2, .diseno-3 {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: 5px 0 50px rgba(0,0,0,0.2);
}

.diseno-1 {
    background: var(--bg-color);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-delay: 0.2s;
}

.diseno-2 {
    background: var(--text-color);
    z-index: 2;
    transition-delay: 0.1s;
}

.diseno-3 {
    background: var(--primary-color);
    z-index: 1;
    transition-delay: 0s;
}

.envoltorio-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translate3d(0, 0, 0);
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
    transition-delay: 0.2s;
}

.envoltorio-logo img {
    max-width: 290px;
    height: auto;
}

.contenedor-barra-carga {
    width: 350px;
    max-width: 80vw;
    height: 4px;
    background: rgba(150, 150, 150, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.barra-carga {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
}

.portafoliojaviernavarro.animacion-bienvenida .barra-carga {
    animation: loadProgress 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.portafoliojaviernavarro.animacion-bienvenida .diseno-1, .portafoliojaviernavarro.animacion-bienvenida .envoltorio-logo {
    transform: translate3d(-110%, 0, 0);
    transition-delay: 1s;
}

.portafoliojaviernavarro.animacion-bienvenida .diseno-2 {
    transform: translate3d(-110%, 0, 0);
    transition-delay: 1.1s;
}

.portafoliojaviernavarro.animacion-bienvenida .diseno-3 {
    transform: translate3d(-110%, 0, 0);
    transition-delay: 1.2s;
}

.portafoliojaviernavarro.interactivo {
    pointer-events: none;
    display: none;
}

.visor-imagenes {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.visor-imagenes.activo {
    display: flex;
}

.contenido-visor {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.cerrar-visor {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.cerrar-visor:hover {
    color: var(--primary-color);
}

.btn-volver-arriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.btn-volver-arriba.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-volver-arriba:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-volver-arriba svg.progreso {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    transform: rotate(-90deg);
}

.btn-volver-arriba svg.progreso circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.btn-volver-arriba svg.progreso circle.bg {
    stroke: var(--border-color);
}

.btn-volver-arriba svg.progreso circle.barra {
    stroke: var(--primary-color);
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.1s linear;
}

.btn-volver-arriba .flecha {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
}

.carrusel-contenedor {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.carrusel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrusel-item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 60px 20px 60px;
}

.img-carrusel {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.img-carrusel:hover {
    transform: scale(1.02);
}

.carrusel-titulo {
    margin-top: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.carrusel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(217, 48, 37, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 48, 37, 0.3);
}

.carrusel-btn:hover {
    background: var(--text-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.carrusel-prev { left: 20px; }
.carrusel-next { right: 20px; }

.carrusel-indicadores {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px 0 25px 0;
}

.carrusel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.carrusel-dot:hover {
    background: var(--text-muted);
}

.carrusel-dot.activo {
    background: var(--primary-color);
    transform: scale(1.3);
}

.btn-blanco {
    background-color: var(--card-bg);
    color: var(--text-color);
}

#modal-zoom {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal-zoom.activo {
    display: flex;
    opacity: 1;
}

.modal-zoom-contenido {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#modal-zoom.activo .modal-zoom-contenido {
    transform: translateY(0);
}

.menu-minimalista {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-minimalista.activo {
    display: flex;
    opacity: 1;
}

.grid-minimalista {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 900px;
    width: 90%;
    z-index: 100001;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tile:nth-child(odd) {
    background-color: #800000;
    color: #ffffff !important;
}

.tile:nth-child(even) {
    background-color: #f5f5f5;
    color: #221E21 !important;
}

.tile:hover {
    transform: scale(0.95);
}

.btn-cerrar-minimal {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 3rem;
    color: var(--text-color);
    background: none; border: none;
    z-index: 100001;
}

.barra-minimalista {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 60px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.barra-minimalista.activo { display: flex; }

.modo-minimalista-activo .navegacion-personalizada,
.modo-minimalista-activo .pie-pagina-sitio,
.modo-minimalista-activo #btn-volver-arriba {
    display: none !important;
}

.modo-minimalista-activo #contenido-portafolio {
    padding-top: 100px;
}

.btn-minimal-nav {
    background: none; border: none;
    color: var(--text-color);
    font-size: 1.1rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    transition: color 0.3s ease;
}

.btn-minimal-nav:hover { color: var(--primary-color); }

.tabla-portafolio { width: 100%; border-collapse: collapse; margin-top: 15px; }
.tabla-portafolio th, .tabla-portafolio td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); color: var(--timeline-p); }
.tabla-portafolio th { background-color: var(--nav-bg); font-weight: 700; color: var(--text-color); }
.tabla-portafolio tr:hover td { background-color: var(--bg-color); }

@media (max-width: 992px) {
    .contenedor-cv {
        flex-direction: column;
    }
    .barra-lateral-cv {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .enlaces-navegacion {
        padding-top: 20px;
        padding-bottom: 20px;
        background: var(--nav-bg);
    }
    .principal-cv {
        padding: 30px 20px;
    }
    .carrusel-item {
        padding: 30px 20px 10px 20px;
    }
    .carrusel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .carrusel-prev { left: 10px; }
    .carrusel-next { right: 10px; }
    .bloque-texto {
        padding: 25px 20px;
    }
    .grid-minimalista { grid-template-columns: repeat(2, 1fr); }
    .tile { padding: 30px 15px; font-size: 1.2rem; }
    .btn-minimal-nav { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .grid-minimalista { grid-template-columns: 1fr; }
}

.toast-copiado {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(217, 48, 37, 0.4);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-copiado.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}