@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;200;300;400;600;800&display=swap');

/* mononoki-latin-400-normal */
@font-face {
    font-family: 'Mononoki';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/mononoki@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/mononoki@latest/latin-400-normal.woff) format('woff');
}

* {
    box-sizing: border-box;
    font-family: 'Work Sans';
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* * MENÚ * */

.contenedor-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: rgba(30, 35, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* el acrílico se vuelve más denso al hacer scroll (ver scripts.js) */
.contenedor-header.scrolled {
    background-color: rgba(22, 25, 27, 0.85);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.contenedor-header header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.contenedor-header header .logo-pag img {
    width: 42px;
    display: block;
    transition: transform 0.4s ease;
}

.contenedor-header header .logo-pag img:hover {
    transform: rotate(-10deg) scale(1.08);
}

.contenedor-header header ul {
    display: flex;
    list-style: none;
}

.contenedor-header header nav ul li a {
    position: relative;
    color: #fff;
    margin: 0 15px;
    padding: 6px 2px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* subrayado animado: crece desde la izquierda al entrar y sale por la derecha */
.contenedor-header header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #e94343;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contenedor-header header nav ul li a:hover,
.contenedor-header header nav ul li a.activo {
    color: #e94343;
}

.contenedor-header header nav ul li a:hover::after,
.contenedor-header header nav ul li a.activo::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-responsive {
    background-color: #e94343;
    color: #fff;
    padding: 5px 10px;
    margin-right: 2rem;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
}

.nav-responsive:hover {
    background-color: #c93636;
}

/* OjO -> INICIO * */

.inicio {
    background: linear-gradient(to top, rgba(30, 35, 38, .9), rgba(30, 35, 38, .45)), url(../img/fondo.jpg);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 90px 20px 70px;
}

/* ? Terminal */
.inicio .terminal {
    width: 100%;
    max-width: 830px;
    background-color: rgba(22, 25, 27, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: terminal-entrada 0.7s ease both;
}

@keyframes terminal-entrada {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.inicio .terminal-barra {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #252A2E;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inicio .terminal-barra .punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.inicio .punto.rojo {
    background-color: #ff5f56;
}

.inicio .punto.amarillo {
    background-color: #ffbd2e;
}

.inicio .punto.verde {
    background-color: #27c93f;
}

.inicio .terminal-titulo {
    margin: 0 auto;
    transform: translateX(-26px);
    font-family: 'Mononoki', sans-serif;
    font-size: 13px;
    color: #9aa3a9;
}

.inicio .terminal-cuerpo {
    padding: 28px 30px 32px;
}

/* los hijos del terminal aparecen en secuencia, como comandos ejecutándose */
.inicio .terminal-cuerpo>* {
    opacity: 0;
    animation: aparecer 0.5s ease forwards;
}

.inicio .terminal-cuerpo>*:nth-child(1) {
    animation-delay: 0.6s;
}

.inicio .terminal-cuerpo>*:nth-child(2) {
    animation-delay: 1.1s;
}

.inicio .terminal-cuerpo>*:nth-child(3) {
    animation-delay: 2.4s;
}

.inicio .terminal-cuerpo>*:nth-child(4) {
    animation-delay: 2.8s;
}

@keyframes aparecer {
    to {
        opacity: 1;
    }
}

.inicio .linea {
    font-family: 'Mononoki', sans-serif;
    color: #9aa3a9;
    font-size: 15px;
    margin-bottom: 8px;
}

.inicio .linea .prompt {
    font-family: 'Mononoki', sans-serif;
    color: #e94343;
    font-weight: bold;
}

/* ? Layout estilo fastfetch: gif + info */
.inicio .fetch {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 26px;
}

.inicio .fetch-img img {
    width: 185px;
    border: 3px solid #e94343;
    border-radius: 50%;
    display: block;
}

.inicio .fetch-info {
    flex: 1;
    min-width: 0;
}

.inicio .fetch-header {
    font-family: 'Mononoki', sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
    color: #d6dadd;
}

.inicio .fetch-header i {
    color: #61afef;
}

.inicio .fetch-header strong {
    font-family: 'Mononoki', sans-serif;
    color: #e94343;
}

.inicio .fetch-box {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.inicio .fetch-linea h1,
.inicio .fetch-linea h2,
.inicio .fetch-linea span {
    font-family: 'Mononoki', sans-serif;
    font-size: 15px;
    display: inline;
    color: #d6dadd;
    font-weight: normal;
}

.inicio .fetch-linea h1 {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.inicio .fetch-linea .etiqueta {
    font-weight: bold;
}

.inicio .fetch-linea .etiqueta i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* colores de etiqueta estilo fastfetch */
.inicio .etiqueta.c-rojo {
    color: #e94343;
}

.inicio .etiqueta.c-azul {
    color: #61afef;
}

.inicio .etiqueta.c-cian {
    color: #56b6c2;
}

.inicio .etiqueta.c-morado {
    color: #c678dd;
}

.inicio .etiqueta.c-verde {
    color: #98c379;
}

.inicio .etiqueta.c-amarillo {
    color: #e5c07b;
}

.inicio .etiqueta.c-naranja {
    color: #d19a66;
}

/* paleta de colores del terminal */
.inicio .fetch-paleta {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.inicio .fetch-paleta span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.inicio .fetch-paleta span:nth-child(1) {
    background-color: #e94343;
}

.inicio .fetch-paleta span:nth-child(2) {
    background-color: #e5c07b;
}

.inicio .fetch-paleta span:nth-child(3) {
    background-color: #98c379;
}

.inicio .fetch-paleta span:nth-child(4) {
    background-color: #56b6c2;
}

.inicio .fetch-paleta span:nth-child(5) {
    background-color: #61afef;
}

.inicio .fetch-paleta span:nth-child(6) {
    background-color: #c678dd;
}

.inicio .fetch-paleta span:nth-child(7) {
    background-color: #d6dadd;
}

.inicio .fetch-paleta span:nth-child(8) {
    background-color: #5c6370;
}

.inicio .cursor {
    color: #e94343;
    animation: parpadeo 1s steps(2) infinite;
}

@keyframes parpadeo {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* redes como salida de comando */
.inicio .redes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.inicio .redes a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6dadd;
    text-decoration: none;
    font-family: 'Mononoki', sans-serif;
    font-size: 15px;
    transition: color 0.3s ease;
}

.inicio .redes a:hover {
    color: #e94343;
}

.inicio .redes a i {
    font-size: 17px;
}

.inicio .redes a:nth-of-type(1) i {
    color: #d6dadd;
}

.inicio .redes a:nth-of-type(2) i {
    color: #61afef;
}

.inicio .redes a:nth-of-type(3) i {
    color: #c678dd;
}

.inicio .redes a:nth-of-type(4) i {
    color: #98c379;
}

.inicio .redes a:hover i {
    color: #e94343;
}

.inicio .redes .sep {
    font-family: 'Mononoki', sans-serif;
    color: #5c6370;
}

/* ? Símbolos de código e íconos de tecnologías flotando */
.inicio .simbolos>* {
    position: absolute;
    font-weight: bold;
    color: rgba(233, 67, 67, 0.14);
    animation: flotar 8s ease-in-out infinite;
    user-select: none;
    z-index: 1;
}

.inicio .simbolos span {
    font-family: 'Mononoki', sans-serif;
}

.inicio .simbolos>*:nth-child(1) {
    top: 16%;
    left: 8%;
    font-size: 60px;
    animation-duration: 9s;
}

.inicio .simbolos>*:nth-child(2) {
    top: 64%;
    left: 12%;
    font-size: 44px;
    animation-delay: 1.5s;
    color: rgba(255, 255, 255, 0.08);
}

.inicio .simbolos>*:nth-child(3) {
    top: 24%;
    right: 10%;
    font-size: 52px;
    animation-delay: 3s;
}

.inicio .simbolos>*:nth-child(4) {
    top: 70%;
    right: 14%;
    font-size: 40px;
    animation-delay: 2s;
    color: rgba(255, 255, 255, 0.08);
}

.inicio .simbolos>*:nth-child(5) {
    top: 44%;
    left: 4%;
    font-size: 36px;
    animation-delay: 4s;
    color: rgba(255, 255, 255, 0.06);
}

.inicio .simbolos>*:nth-child(6) {
    top: 12%;
    right: 26%;
    font-size: 40px;
    animation-delay: 5s;
    color: rgba(233, 67, 67, 0.1);
}

/* íconos de tecnologías */
.inicio .simbolos>*:nth-child(7) {
    top: 38%;
    right: 4%;
    font-size: 42px;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.inicio .simbolos>*:nth-child(8) {
    top: 82%;
    left: 6%;
    font-size: 36px;
    animation-delay: 4.5s;
    color: rgba(255, 255, 255, 0.08);
}

.inicio .simbolos>*:nth-child(9) {
    top: 8%;
    left: 20%;
    font-size: 36px;
    animation-delay: 1s;
    color: rgba(255, 255, 255, 0.07);
}

.inicio .simbolos>*:nth-child(10) {
    top: 84%;
    right: 9%;
    font-size: 40px;
    animation-delay: 3.5s;
    color: rgba(233, 67, 67, 0.11);
    animation-duration: 9s;
}

.inicio .simbolos>*:nth-child(11) {
    top: 55%;
    right: 2.5%;
    font-size: 36px;
    animation-delay: 5.5s;
    color: rgba(255, 255, 255, 0.06);
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-24px) rotate(4deg);
    }
}

/* ? Indicador de scroll */
.inicio .scroll-indicador {
    position: absolute;
    bottom: 26px;
    left: 50%;
    color: #fff;
    font-size: 22px;
    opacity: 0.7;
    z-index: 2;
    animation: rebote 2s infinite;
}

@keyframes rebote {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(10px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

@media screen and (max-width: 620px) {
    .inicio .fetch {
        flex-direction: column;
        gap: 20px;
    }

    .inicio .fetch-img img {
        width: 150px;
    }

    .inicio .fetch-info {
        width: 100%;
    }

    /* en pantallas chicas solo quedan los símbolos de texto, para no saturar */
    .inicio .simbolos>*:nth-child(n+7) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .inicio .terminal,
    .inicio .terminal-cuerpo>*,
    .inicio .simbolos span,
    .inicio .cursor,
    .inicio .scroll-indicador {
        animation: none;
        opacity: 1;
    }
}

/* OjO -> SOBRE MI * */

.sobremi {
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}

.sobremi .contenido-section {
    max-width: 1100px;
    margin: auto;
}

.sobremi h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.sobremi .contenido-section p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 40px;
    color: #d6dadd;
}

.sobremi .contenido-section p span {
    color: #e94343;
    font-weight: bold;
    font-family: 'Mononoki', sans-serif;
    font-size: x-large;
}

.sobremi .fila {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sobremi .fila .col {
    width: 50%;
}

.sobremi .fila .col h3 {
    font-size: 29px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}

/* ? Datos personales en tarjeta */
.sobremi .datos li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.sobremi .datos li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sobremi .datos li>i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(233, 67, 67, 0.12);
    color: #e94343;
    font-size: 18px;
}

.sobremi .datos li strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9aa3a9;
    margin-bottom: 2px;
}

.sobremi .datos li a {
    color: #fff;
    text-decoration: none;
}

.sobremi .datos li a:hover {
    color: #e94343;
}

.sobremi .datos li a i {
    font-size: 12px;
}

.sobremi .datos .badge {
    display: inline-block;
    background-color: #e94343;
    padding: 3px 12px;
    font-weight: bold;
    border-radius: 20px;
    font-size: 14px;
}

/* ? Intereses */
.sobremi .contenedor-interes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.sobremi .contenedor-interes .interes {
    aspect-ratio: 1;
    background-color: #16191b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.sobremi .contenedor-interes .interes:hover {
    transform: translateY(-4px);
    border-color: #e94343;
    background-color: #e94343;
}

.sobremi .contenedor-interes .interes i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #e94343;
    transition: color 0.3s ease;
}

.sobremi .contenedor-interes .interes:hover i {
    color: #fff;
}

.sobremi .contenedor-interes .interes span {
    font-size: 13px;
    letter-spacing: 1px;
}

.sobremi button {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 20px;
    color: #fff;
    position: relative;
    z-index: 10;

}

.sobremi button span {
    color: #fff;
    font-family: 'Mononoki', sans-serif;
}

.sobremi button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #e94343;
    z-index: -1;
    transition: 1s;
}

.sobremi button:hover .overlay {
    width: 100%;
}

/* OjO -> SKILLS * */
.skills {
    background-color: #252A2E;
    color: #fff;
    padding: 50px 20px;
}

.skills .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.skills h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

/* ? Stack tecnológico por categorías */
.skills .stack-grupos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    margin-bottom: 50px;
}

.skills .grupo h3 {
    font-size: 22px;
    font-family: 'Righteous';
    margin-bottom: 20px;
}

.skills .grupo h3 i {
    color: #e94343;
    margin-right: 8px;
}

.skills .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 14px;
}

.skills .stack-item {
    background-color: #16191b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skills .stack-item:hover {
    transform: translateY(-4px);
    border-color: #e94343;
}

.skills .stack-item i {
    font-size: 36px;
}

/* logos monocromos (Next.js, Linux) en blanco; los .colored usan su color de marca */
.skills .stack-item i:not(.colored) {
    color: #fff;
}

.skills .stack-item span {
    font-size: 13px;
    text-align: center;
}

/* ? Soft skills como chips */
.skills .soft-titulo {
    font-size: 22px;
    font-family: 'Righteous';
    text-align: center;
    margin-bottom: 25px;
}

.skills .chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.skills .chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #16191b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skills .chip:hover {
    transform: translateY(-3px);
    border-color: #e94343;
}

.skills .chip i {
    color: #e94343;
}

/* OjO: SECCIÓN DE CURRICULUM */
.curriculum {
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
    overflow-x: clip;
}

.curriculum .contenido-section {
    max-width: 1100px;
    margin: auto;
}

.curriculum h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.curriculum .subtitulo {
    font-size: 28px;
    font-family: 'Righteous';
    text-align: center;
    margin-bottom: 2.4rem;
}

/* ? Timeline central de experiencia */
/* ? Timeline de experiencia con acordeón (alternada) */
.curriculum .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
}

/* línea continua, siempre visible: nace en el primer nodo y muere en el
   último (la altura exacta la fija scripts.js con --alto-linea) */
.curriculum .timeline::before {
    content: '';
    position: absolute;
    top: 39px;
    left: 50%;
    width: 2px;
    height: var(--alto-linea, calc(100% - 120px));
    background-color: rgba(233, 67, 67, 0.35);
    transform: translateX(-50%);
}

.curriculum .item {
    position: relative;
    width: calc(50% - 40px);
    margin-bottom: 24px;
    background-color: #252A2E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.curriculum .item.izq {
    margin-right: auto;
}

.curriculum .item.der {
    margin-left: auto;
}

.curriculum .item:hover,
.curriculum .item.abierto {
    border-color: rgba(233, 67, 67, 0.55);
}

/* conector horizontal del nodo hacia la tarjeta (este sí se anima) */
.curriculum .item-cabecera::before {
    content: '';
    position: absolute;
    top: 38px;
    width: 41px;
    height: 2px;
    background-color: rgba(233, 67, 67, 0.35);
}

.curriculum .item.izq .item-cabecera::before {
    right: -41px;
    transform-origin: right;
}

.curriculum .item.der .item-cabecera::before {
    left: -41px;
    transform-origin: left;
}

/* nodo sobre la línea: brilla en neón al hover para invitar al clic */
.curriculum .item::after {
    content: '';
    position: absolute;
    top: 33px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e94343;
    box-shadow: 0 0 0 4px rgba(233, 67, 67, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.curriculum .item.izq::after {
    right: -46px;
}

.curriculum .item.der::after {
    left: -46px;
}

.curriculum .item:hover::after,
.curriculum .item.abierto::after {
    background-color: #ff6b6b;
    transform: scale(1.4);
    box-shadow:
        0 0 0 4px rgba(233, 67, 67, 0.25),
        0 0 14px 4px rgba(233, 67, 67, 0.85),
        0 0 32px 10px rgba(233, 67, 67, 0.4);
}

/* ? Coreografía de entrada al hacer scroll: el nodo hace pop,
   la línea se dibuja hacia abajo y la tarjeta entra desde su lado */
.curriculum .item.reveal {
    transition: opacity 0.55s ease 0.25s, transform 0.55s ease 0.25s, border-color 0.3s ease;
}

.curriculum .item.izq.reveal:not(.visible) {
    transform: translateX(-70px);
}

.curriculum .item.der.reveal:not(.visible) {
    transform: translateX(70px);
}

.curriculum .item.reveal::after {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.curriculum .item.reveal:not(.visible)::after {
    transform: scale(0);
}

.curriculum .item.reveal .item-cabecera::before {
    transition: transform 0.45s ease 0.15s;
}

.curriculum .item.reveal:not(.visible) .item-cabecera::before {
    transform: scaleX(0);
}

/* cabecera cliqueable */
.curriculum .item-cabecera {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    text-align: left;
    font-size: 15px;
}

.curriculum .item-icono {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(233, 67, 67, 0.12);
    color: #e94343;
    font-size: 19px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.curriculum .item.abierto .item-icono {
    background-color: #e94343;
    color: #fff;
}

.curriculum .item-titulos {
    flex: 1;
    min-width: 0;
}

.curriculum .item-titulos h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 3px;
}

.curriculum .item-titulos .uni {
    display: block;
    color: #e94343;
    font-family: 'Mononoki', sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.curriculum .item-titulos .fecha {
    display: block;
    color: #9aa3a9;
    font-size: 13px;
    font-style: italic;
}

/* en desktop la fecha está oculta y se desliza al hover o al abrir;
   en móvil/táctil (sin hover real) se muestra siempre */
@media (hover: hover) and (min-width: 913px) {
    .curriculum .item-titulos .fecha {
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    }

    .curriculum .item:hover .item-titulos .fecha,
    .curriculum .item.abierto .item-titulos .fecha {
        max-height: 24px;
        opacity: 1;
        transform: none;
    }
}

.curriculum .item-flecha {
    color: #9aa3a9;
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.curriculum .item.abierto .item-flecha {
    transform: rotate(180deg);
    color: #e94343;
}

/* descripción expandible: truco de grid 0fr -> 1fr */
.curriculum .item-detalle {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.curriculum .item-detalle-inner {
    overflow: hidden;
}

.curriculum .item-detalle p {
    padding: 0 20px 20px 82px;
    line-height: 24px;
    color: #d6dadd;
}

.curriculum .item.abierto .item-detalle {
    grid-template-rows: 1fr;
}

/* ? Tarjetas de educación y certificaciones */
.curriculum .edu-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.curriculum .edu-card {
    background-color: #252A2E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    flex: 1 1 280px;
    max-width: 340px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.curriculum .edu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 67, 67, 0.55);
}

.curriculum .edu-cabecera {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* logo institucional en chip claro para que resalte sobre el fondo oscuro */
.curriculum .edu-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: #f4f5f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.curriculum .edu-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.curriculum .edu-card h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 3px;
}

.curriculum .edu-card .uni {
    display: block;
    color: #e94343;
    font-family: 'Mononoki', sans-serif;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
}

.curriculum .edu-card .fecha {
    display: block;
    color: #9aa3a9;
    font-size: 13px;
    font-style: italic;
}

.curriculum .edu-card p {
    line-height: 23px;
    color: #d6dadd;
    font-size: 14px;
}

/* OjO -> SECCION PORTAFOLIO */

.portafolio {
    background-color: #252A2E;
    color: #fff;
    padding: 50px 20px;
}

.portafolio .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.portafolio h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.portafolio .galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}

.portafolio .galeria .proyecto {
    display: block;
    background-color: #252A2E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portafolio .galeria .proyecto:hover {
    transform: translateY(-6px);
    border-color: #e94343;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.portafolio .proyecto .proyecto-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portafolio .proyecto .proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.portafolio .proyecto:hover .proyecto-img img {
    transform: scale(1.06);
}

.portafolio .proyecto .proyecto-link {
    position: absolute;
    top: 12px;
    right: 12px;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(30, 35, 38, 0.85);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portafolio .proyecto:hover .proyecto-link {
    opacity: 1;
}

.portafolio .proyecto .proyecto-info {
    padding: 18px 20px 20px;
}

.portafolio .proyecto .proyecto-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.portafolio .proyecto .proyecto-info .tipo {
    font-size: 14px;
    color: #9aa3a9;
    margin-bottom: 14px;
}

.portafolio .proyecto .proyecto-info .tech {
    display: flex;
    gap: 14px;
    font-size: 24px;
}

/* OjO -> SECCION CONTACTO */
.contacto {
    background-image: url(../img/backgroundcontacto.png);
    background-color: #1e2326;
    color: #fff;
    padding: 50px 0px;
}

.contacto .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.contacto h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.contacto .fila {
    display: flex;
}

.contacto .col {
    width: 50%;
    padding: 10px;
    position: relative;
}

.contacto .col input,
.contacto .col textarea {
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    margin-bottom: 20px;
    background-color: #252A2E;
    color: #fff;
    font-size: 18px;
    font-family: 'Mononoki', sans-serif;
}

.contacto button {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 10;

}

.contacto button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #e94343;
    z-index: -1;
    transition: 1s;
}

.contacto button:hover .overlay {
    width: 100%;

}

.contacto .col img {
    width: 100%;
}

.contacto .col .info {
    position: absolute;
    top: 40%;
    background-color: #252A2E;
    padding: 20px;
    width: 350px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contacto .col .info ul {
    list-style: none;
}

.contacto .col .info ul li {
    margin-bottom: 20px;
}

.contacto .col .info ul li i {
    color: #e94343;
    display: inline-block;
    margin-right: 20px;
}

footer {
    background-color: #16191b;
    color: #fff;
    position: relative;
    padding: 60px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer .contenido-footer {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 16px;
}

footer .footer-logo img {
    width: 44px;
}

footer .footer-logo span {
    font-family: 'Mononoki', sans-serif;
    font-size: 22px;
    font-weight: bold;
}

footer .footer-lema {
    font-family: 'Mononoki', sans-serif;
    font-size: 14px;
    color: #9aa3a9;
    line-height: 1.6;
}

footer .footer-lema .prompt {
    font-family: 'Mononoki', sans-serif;
    color: #e94343;
    font-weight: bold;
}

footer h4 {
    font-family: 'Righteous';
    font-size: 18px;
    margin-bottom: 16px;
}

footer .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .footer-col ul li,
footer .footer-col ul li a {
    color: #9aa3a9;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-col ul li a:hover {
    color: #e94343;
}

footer .footer-col ul li i {
    color: #e94343;
    width: 20px;
}

footer .redes {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

footer .redes a {
    color: #fff;
    text-decoration: none;
    border: 2px solid #e94343;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

footer .redes a:hover {
    background-color: #e94343;
    transform: translateY(-4px);
}

footer .footer-inferior {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #9aa3a9;
}

footer .footer-inferior .mono {
    font-family: 'Mononoki', sans-serif;
}

footer .footer-inferior .mono i {
    color: #e94343;
}

footer .arriba {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #e94343;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(233, 67, 67, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

footer .arriba:hover {
    transform: translateX(-50%) translateY(-4px);
    background-color: #c93636;
}

@media screen and (max-width: 912px) {
    footer .contenido-footer {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer .footer-inferior {
        justify-content: center;
        text-align: center;
    }
}

/* OjO -> RESPONSIVE */
/* * Animaciones de aparición al hacer scroll (ver scripts.js) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .curriculum .item.izq.reveal:not(.visible),
    .curriculum .item.der.reveal:not(.visible),
    .curriculum .item.reveal:not(.visible) .item-cabecera::before,
    .curriculum .item.reveal:not(.visible)::after {
        transform: none;
        transition: none;
        opacity: 1;
    }
}

@media screen and (max-width: 1150px) {
    nav {
        display: none;
    }

    .nav-responsive {
        display: block;
        margin-right: 1rem;
    }

    nav.responsive {
        display: block;
        position: absolute;
        right: 12px;
        top: 58px;
        background-color: rgba(22, 25, 27, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        width: 200px;
        padding: 8px 0;
        animation: menu-entrada 0.25s ease;
    }

    nav.responsive ul {
        display: block !important;
    }

    nav.responsive ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 10px 0;
        text-align: center;
    }

    nav.responsive ul li:last-child {
        border-bottom: none;
    }
}

@keyframes menu-entrada {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media screen and (max-width: 912px) {
    .nav-responsive {
        margin-right: -0.1rem;
    }

    .sobremi .fila {
        display: block;
    }

    .sobremi .fila .col {
        width: 100%;
    }

    .sobremi .fila .col+.col {
        margin-top: 40px;
    }

    .skills .stack-grupos {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .curriculum .item,
    .curriculum .item.izq,
    .curriculum .item.der {
        width: calc(100% - 34px);
        margin-left: 34px;
    }

    .curriculum .item.izq.reveal:not(.visible),
    .curriculum .item.der.reveal:not(.visible) {
        transform: translateX(-40px);
    }

    .curriculum .timeline::before {
        left: 6px;
        transform: none;
    }

    .curriculum .item.izq .item-cabecera::before,
    .curriculum .item.der .item-cabecera::before {
        left: -27px;
        right: auto;
        width: 27px;
        transform-origin: left;
    }

    .curriculum .item.izq::after,
    .curriculum .item.der::after {
        left: -33px;
        right: auto;
    }

    .curriculum .item-detalle p {
        padding-left: 20px;
    }

    .contacto .fila {
        display: block;
    }

    .contacto .fila .col {
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    .inicio .terminal-cuerpo {
        padding: 22px 16px 26px;
    }

    .inicio .fetch-box {
        padding: 12px 14px;
    }

    .inicio .fetch-linea h1,
    .inicio .fetch-linea h2,
    .inicio .fetch-linea span {
        font-size: 13px;
    }

    .inicio .fetch-linea h1 {
        font-size: 14px;
    }

    .inicio .redes {
        gap: 10px;
    }

    .inicio .redes a {
        font-size: 13px;
    }
}