@font-face {
    font-family: 'Inter';
    src: url(fuentes/INTER.ttf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'KarmaF';
    src: url(fuentes/Karma\ Future.otf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'KarmaS';
    src: url(fuentes/Karma\ Suture.otf);
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter';
    color: white;
    
    /* Degradado equilibrado: Naranja presente pero no invasivo */
    background-color: #000000;
    background-image: linear-gradient(
        90deg, 
        #8a3d0b 0%,    /* Naranja oscuro y sólido en el extremo */
        #3d1d0a 12%,   /* Transición suave a café cobrizo */
        #000000 35%,   /* Negro absoluto en la zona de lectura (35% al 65%) */
        #000000 65%,   
        #3d1d0a 88%,   /* Regreso suave del color */
        #8a3d0b 100%   /* Naranja sólido en el otro extremo */
    );
    background-attachment: fixed;
}

.tarjeta {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px;
    width: 380px;
    height: 140px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 15px;
    margin-top: 30px;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.tarjeta img {
    width: 35%;
    border-radius: 50%;
    border: rgb(233, 233, 233) 3px solid;
}

.sobre-mi {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding-left: 40px;
    padding-right: 40px;
    width: 800px;
    height: 240px;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    border-radius: 15px;
    margin-top: 2.5%;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.sobre-mi h1 {
    margin: 0px;
    text-align: left;
}

.sobre-mi p {
    margin: 0px;
    line-height: 1.3;
}

.proyecto1 {
    display: flex;
    flex-direction: row;
    width: 90%;
    gap: 24px;
    color: white;
    margin: 0 auto;
    margin-top: 5%;
}

.proyecto1 img,
.proyecto2 img {
    border-radius: 25px;
    /* Cambiamos el azul que chocaba por un marco que hace juego con el cristal */
    border: 4px solid rgba(255, 255, 255, 0.15); 
    width: 55%;
    position: relative;
    /* Sombra neutra/oscura en lugar de sombra azulada */
    box-shadow: rgba(0, 0, 0, 0.6) 0px 20px 30px -10px; 
    transition: all ease-in-out 0.2s;
}

.proyecto1 img:hover,
.proyecto2 img:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.proyecto2 {
    display: flex;
    flex-direction: row;
    width: 90%;
    gap: 24px;
    color: white;
    margin: 0 auto;
    margin-top: 5%;
}

.proyectos .title {
    text-align: center;
    color: white;
    font-size: 42px;
}

.texto-corto {
    display: none;
}

.proyectos {
    margin-bottom: 8%;
}

/* responsive pcs pequeñas*/

@media (max-width: 1600px) {
    .proyecto1 img {
        margin-top: 2px;
    }

    .info h1 {
        margin-top: 5px;
    }

    .texto-corto {
        display: block;
    }

    .texto-largo {
        display: none;
    }

    .proyecto2 img {
        margin-top: 2px;
    }
}

/* Animación de aparición suave para hero y sobre-mi */
.tarjeta,
.sobre-mi {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.tarjeta {
    animation-delay: 0.2s;
}

.sobre-mi {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de scroll desde los lados para proyectos */
.proyecto1,
.proyecto2 {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.proyecto1 {
    transform: translateX(-60px);
}

.proyecto2 {
    transform: translateX(60px);
}

.proyecto1.visible,
.proyecto2.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .tarjeta,
    .sobre-mi {
        opacity: 1;
        animation: none;
        transform: none;
    }
    
    .proyecto1,
    .proyecto2 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.acciones img {
    width: 16px;
    padding: 6px;
}

.sec {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 70%;
}

.skills h1 {
    text-align: center;
    color: white;
    font-size: 38px;
    margin: 0;
    margin-bottom: 0px;
    margin-top: 25px;
}

.skills {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 80%;
    height: 140px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 15px;
    margin-top: 30px;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 50px;
}


/* Carrusel */

.carrusel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 50px 0;
    padding-bottom: 100px;
    height: 40px;
    align-items: center;
    
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
  
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 18s linear infinite;
    gap: 30px;
    will-change: transform;
}

.grupo {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
}

.track:hover {
    animation-play-state: paused;
}

.track img {
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    width: 85px;
    opacity: 1;
    display: block;
}

/* Cuando el track tiene hover, todas las imágenes bajan opacidad */
.track:hover img {
    opacity: 0.3;
}

/* Excepto la que está siendo hovereada directamente */
.track:hover img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 4px white);
    transform: scale(1.1);
    cursor: pointer;
    transform: rotate(-5deg);
}

.call-to-action {
    background-color: transparent;
    background-image: url("gifs/matrix.gif");
    width: 90%;
    margin: 0 auto;
    padding: 18px;
    padding-bottom: 0;
    margin-top: 5%;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    display: flex;
    flex-direction: row;
}

.ing {
    width: max-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.ing h1 {
    font-family: 'Karmaf';
    font-size: 70px;
    font-weight: 200;
    margin: 0px;
    margin-bottom: 3%;
    margin-top: 3%;
}

.ing p {
    font-family: 'KarmaS';
    font-size: 24px;
    font-weight: 200;
    margin-bottom: 50px;
}

.btns a {
    background: rgba(255, 255, 255, 0.377);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
    font-family: 'KarmaS';
    font-size: 24px;
    font-weight: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 15px;
    transition: all 0.2s ease-in-out;
}

.btns a:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.btns {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

footer {
    width: 100%;
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);

}

#tooltip {
    position: fixed;
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
}



