
:root{
    /*Background Colors*/
    --background-dark-100: #000000;
    --background-dark-90: #222222;
    --background-dark-95: #282828;
    --background-dark-80: #333333;
    --background-dark-70: #444444;
    --background-dark-60: #aaaaaa;
    --background-orange: #ff4a4a;

    /*Text colors*/
    --color-white-100: #ffffff;
    --color-white-95: #f5f5f5;
    --color-white-80: #d5d5d5;
    --color-white-70: #444444;
    --color-white-60: #aaaaaa;
    
    /*Font Size*/
    --font-size-48: 48px;
    --font-size-30: 30px;
    --font-size-24: 24px;
    --font-size-21: 21px;
    --font-size-18: 18px;
    --font-size-16: 16px;
    --font-size-14: 14px;
    --font-size-13: 13px;
    --font-size-12: 12px;
    --font-size-11: 11px;
    --font-size-08: 08px;
    --font-size-06: 06px;

    --transition-default: 0.25s ease;
}

/*efecto glich VIDEOJUEGOS MENU*/



.glitch--style-1 {
    margin: 5px;
  --gap-horizontal: 10px;
  --gap-vertical: 2px;
  --time-anim: 2s;
  --blend-mode-1: none;
  --blend-mode-2: none;
  --blend-mode-3: none;
  --blend-mode-4: none;
  --blend-mode-5: none;
  --blend-color-1: transparent;
  --blend-color-2: transparent;
  --blend-color-3: transparent;
  --blend-color-4: transparent;
  --blend-color-5: transparent;
}


.glitch:before,
.glitch:after {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  height: 100%;
  font: inherit;
  visibility: visible; /* Hacemos visibles los pseudo-elementos */
  z-index: -20;
}

.glitch:before {
  left: -2px;
  text-shadow: 2px 0 #00D5FF; /* Efecto de sombra rosada */
  clip: auto;
}

.glitch:after {
  left: 2px;
  text-shadow: 1px 0 #ff4a4a; /* Efecto de sombra azul */
  clip: auto;
}

.glitch.style-1 {
  &:before {
    animation: glitch-anim-1 3s ease-in-out infinite;
  }

  &:after {
    animation: glitch-anim 2s ease-in-out infinite;
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(29px, 9999px, 11px, 0);
    transform: translateX(-5px);
  }
  25% {
    clip: rect(11px, 9999px, 15px, 0);
    transform: translateX(5px);
  }
  50% {
    clip: rect(18px, 9999px, 1px, 0);
    transform: translateX(-5px);
  }
  75% {
    clip: rect(17px, 9999px, 35px, 0);
    transform: translateX(5px);
  }
  100% {
    clip: rect(3px, 9999px, 27px, 0);
    transform: translateX(-5px);
  }
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(25px, 9999px, 19px, 0);
    transform: translateX(3px);
  }
  25% {
    clip: rect(12px, 9999px, 151px, 0);
    transform: translateX(-3px);
  }
  50% {
    clip: rect(29px, 9999px, 11px, 0);
    transform: translateX(5px);
  }
  75% {
    clip: rect(24px, 9999px, 31px, 0);
    transform: translateX(-3px);
  }
  100% {
    clip: rect(20px, 9999px, 25px, 0);
    transform: translateX(3px);
  }
}


/*efecto glich VIDEOJUEGOS MENU*/


/*circulos animados de foto*/

/*circulos animados de foto*/

/*SCROLLBAR STYLE*/

::-webkit-scrollbar{
    width: 6px;
}

::-webkit-scrollbar-track{
    background: var(--background-dark-70);
}

::-webkit-scrollbar-thumb{
    background: var(--background-orange);
}

/*RESET*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: "Poppins", sans-serif;
    color: var(--color-white-95);
}

body{
    height: 100vh;
    background: var(--background-dark-100);
}

li{ list-style: none;}

a{
    display: inline-block;
    text-decoration: none;
    color: var(--color-white-95);
}

:is(h1,h2,h3,h4,h5,h6){font-weight: 600; }

h1{
    font-size: var(--font-size-48);
    margin-bottom: 10px;
}

h2{
    font-size: clamp(18px, 3vw, var(--font-size-21)); /* Se adapta al ancho de pantalla */
    margin-top: 15px;
    margin-bottom: 30px;
    margin-left: 15px;
    box-shadow: inset 0 -2px 0 var(--background-orange);
    width: fit-content;
}

h3{
    font-size: var(--font-size-18);
    margin-bottom: 5px;
}




p, blockquote{
    color: var(--color-white-80);
    font-size: var(--font-size-14);
    line-height: 1.8;
}




::selection{
    background: var(--background-orange);
    color: var(--color-white-100);
}



ion-icon{ --ionicon-stroke-width: 20px;}

.section-heading{
    font-size: var(--font-size-30);
    border-bottom: 2px solid var(--background-dark-60);
    padding-bottom: 5px;
}

.section-sub-heading{
    font-size: var(--font-size-14);
    text-align: right;
    font-weight: 300;
    color: var(--color-white-100);
}
.h2-container {
    display: flex;
    justify-content: center; /* Centra el contenido */
}

.section-sub-heading-centered {
    font-size: var(--font-size-21);
    text-align: center;
    font-weight: 300;
    color: var(--color-white-100);
    margin: 15px auto;
    display: inline-block;
    box-shadow: inset 0 -2px 0 var(--background-orange);
    width: fit-content;
    margin-top: 50px;
    margin-bottom: 50px;
}




.btn-primary {
    flex: 1 1 calc(50% - 15px); /* Ocupa el 50% del ancho menos el gap */
    padding: 10px 30px;
    border: 2px solid var(--background-orange);
    font-size: var(--font-size-14);
    transition: var(--transition-default);
    border-radius: 5px;
    box-shadow: 5px 5px 0px #000000;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-left:    0.5%;
    margin-right:   0.5%;
    margin-top:     5px;
    margin-bottom:  5px;
}

.btn-primary:hover{
    background: var(--background-orange);
    color: var(--color-white-100);
    box-shadow: 0px 0px 0px #000000;

}

img{
    width: 100%;
    height: auto;
}

.container{
    position: relative;
    max-width: 2000px;
    height: 100vh;
    margin: auto;
    overflow: hidden;
}

.nav-mobile{
    position: fixed;
    /* display: flex; */
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--background-dark-90);
    border-bottom: 1px solid var(--background-dark-70);
    padding: 10px 20px;
    z-index: 100;
}

.nav-mobile .navbar-brand{
    display: flex;
    align-items: center;
}

.nav-mobile .brand-img{
    width: 35px;
    margin-right: 10px;
}

.nav-mobile .brand-name{
    font-size: var(--font-size-11);
    margin-bottom: 0;
}

.nav-mobile .menu-toggler{
    font-size: var(--font-size-24);
    --ionicon-stroke-width: 50px;
    cursor: pointer;
}

/*SIDEBAR STRUCTURE*/

.side-bar{
    position: absolute;
    width: 160px;
    height: 100%;
    padding: 30px 0;
    text-align: center;
    background: var(--background-dark-90);
    overflow-y: auto;
    display: table;
    z-index: 50;
}

/* para esta zona se ajustan los circulos animados de foto de perfil*/
/* Círculos animados con borde */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 8px solid white; /* Cambié el borde a 8px, ajusta este valor para el grosor deseado */
    width: 100px;  /* Tamaño de los círculos */
    height: 100px; /* Tamaño de los círculos */
    animation: rotate 4s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Círculo 1 - Más rápido, más pequeño y más cerca */
.circle1 {
    width: 80px;  /* Hacer el círculo más pequeño */
    height: 80px; /* Hacer el círculo más pequeño */
    animation-duration: 2s; /* Más rápido */
}

/* Círculo 2 - Velocidad media y más cerca */
.circle2 {
    width: 100px; /* Hacer el círculo más pequeño */
    height: 100px; /* Hacer el círculo más pequeño */
    animation-duration: 3s; /* Velocidad media */
}

/* Círculo 3 - Más lento y más cerca */
.circle3 {
    width: 120px; /* Hacer el círculo más pequeño */
    height: 120px; /* Hacer el círculo más pequeño */
    animation-duration: 4s; /* Más lento */
}

/* Animación de rotación infinita */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* para esta zona se ajustan los circulos animados de foto de perfil*/
/* SIDEBAR STRUCTURE */
.side-bar {
    position: absolute;
    width: 160px;
    height: 100%;
    padding: 30px 0;
    text-align: center;
    background: var(--background-dark-90);
    overflow-y: auto;
    display: table;
    z-index: 50;
}

/* Contenedor de la imagen y los círculos */
.image-container {
    position: relative;
    width: 80px;  /* Tamaño de la imagen */
    height: 80px; /* Tamaño de la imagen */
    margin: 0 auto;
}

/* Imagen de perfil */
.side-bar .brand-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid #ffffff;
    position: relative;
    z-index: 10; /* Para que la imagen esté por encima de los círculos */
}

/* Círculos animados con borde blanco y cortes */

/* Círculos animados con borde blanco y cortes */
/* SIDEBAR STRUCTURE */
.side-bar {
    position: absolute;
    width: 160px;
    height: 100%;
    padding: 30px 0;
    text-align: center;
    background: var(--background-dark-90);
    overflow-y: auto;
    display: table;
    z-index: 50;
    transition: transform 1s ease; /* Transición suave del contenedor */
}

/* Contenedor de la imagen y los círculos */
.image-container {
    position: relative;
    width: 80px;  /* Tamaño de la imagen */
    height: 80px; /* Tamaño de la imagen */
    margin: 0 auto;
    margin-bottom: 10%;
}

/* Imagen de perfil */
.side-bar .brand-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 0px solid #ffffff;
    position: relative;
    z-index: 10; /* Para que la imagen esté por encima de los círculos */
    transition: transform 1s ease; /* Transición para la imagen cuando el cursor entra o sale */
}

/* Al pasar el cursor sobre la imagen */
.image-container:hover .brand-img {
    transform: scale(1.35); /* Aumenta el tamaño de la imagen */
}


/* Círculos animados */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #ff4a4a; /* Borde blanco */
    animation: rotate 4s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -55%);
    z-index: 5;
    
}

/* Primer círculo */
.circle1 {
    width: 110%;
    height: 110%;
    border-top-color: transparent; /* Primer corte */
    border-bottom-color: transparent; /* Segundo corte */
    animation-duration: 3s; /* Velocidad más rápida */
    opacity: 1;
}

/* Segundo círculo */
.circle2 {
    width: 120%; /* Más grande que el círculo 1 */
    height: 120%;
    border-right-color: transparent; /* Primer corte */
    border-left-color: transparent; /* Segundo corte */
    animation-duration: 5s; /* Velocidad media */
    opacity: 0.7;
}

/* Tercer círculo */
.circle3 {
    width: 130%; /* Más grande que el círculo 2 */
    height: 130%;
    border-bottom-color: transparent; /* Primer corte */
    border-top-color: transparent; /* Segundo corte */
    animation-duration: 7s; /* Velocidad más lenta */
    opacity: 0.4;
}

/* Animación de rotación infinita */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Estilo de la marca */
.side-bar .brand-name {
    text-align: center;
    line-height: 1;
    font-size: var(--font-size-14);
    margin-bottom: 30px;
}

/* Navegación */
.nav li a {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--background-dark-80);
    font-size: var(--font-size-14);
    transition: var(--transition-default);
}

.nav li:last-child a {
    border-bottom: 1px solid var(--background-dark-80);
}

.nav li a:hover {
    background: var(--background-dark-80);
    box-shadow: inset -2px 0 0 var(--color-white-95);
}

.nav li a.active {
    background: var(--background-dark-80);
    box-shadow: inset -2px 0 0 var(--background-orange);
}
.social-btn-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1em;
    padding-top: 25%;
    padding-bottom: 25%;}

.social-btn-groups .btn {
    padding: 8px 7px 4px 7px;
    margin: 0px; /* Reducido para responsive */
    background: var(--background-dark-70);
    color: var(--color-white-60);
    transition: all var(--transition-default);
    flex: 1 0 calc(33.333% - 10px); /* 3 columnas en desktop */
    max-width: calc(33.333% - 10px);
    text-align: center;
    box-sizing: border-box;
    
}


/* Tablet: 2 columnas */
@media (max-width: 550px) {
    .social-btn-groups .btn {
        flex: 1 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        padding: 5% 7px 5% 7px;

    }
    .social-btn-groups{
        padding-top: 25%;
        padding-bottom: 25%;
    }
   
}

/* Móvil: 1 columna */
@media (max-width: 450px) {
    .social-btn-groups .btn {
        flex: 1 0 100%;
        max-width: 100%;
        padding: 8px 7px 4px 7px;

    }
    .social-btn-groups{
       padding: 1%;
    }
}


/* Efecto hover (se mantiene igual) */
.social-btn-groups .btn:hover {
    background: var(--background-orange);
    color: var(--color-white-100);
}

.side-bar-footer{
    display: table-row;
    vertical-align: bottom;
}

.side-bar-footer .copyright{ font-size: var(--font-size-12);}

/*ABOUT*/

.about,
.resume,
.portfolio,
.videojuegos,
/*acava .blog*/
.contact {
    position: absolute;
    top: 110%;
    right: 0;
    transform: scale(.5);
    width: calc(100% - 165px);
    height: 100%;
    background: var(--background-dark-90);
    overflow-y: auto;
    transition: all .5s ease;
}

:is(.about, .resume, .portfolio, .videojuegos, /*acava .blog*/ .contact).active{
    top: 0;
    transform: scale(1);
    z-index: 10;
}

.hero{ display: flex; }

.hero-img-box {
    overflow: hidden; /* Oculta el desbordamiento del escalado */
}

.img_scale {
    transition: transform 1s ease; /* Aplica la transición suave al transform */
}

.hero-img-box:hover .img_scale {
    transform: scale(1.1); /* Escala la imagen al 130% */
}

.hero-img-box{ 
    max-width: 50%;
    max-height: 100%;
    filter: grayscale(80%);
    transition: 1s;

}
.hero-img-box:hover {
    filter: grayscale(0%);
}



.hero-img-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0;
}

.hero-content{
    width: 50%;
    max-height: fit-content;
    background: var(--background-dark-80);
    padding: 80px;
    display: table;
}

.hero-content-wrapper{
    display: table-cell;
    vertical-align: middle;
}

.hero-content .title{
    font-size: var(--font-size-14);
    color: var(--color-white-60);
}

.hero-content .description{ margin-bottom: 20px;}

.hero-content .description p {
    margin-bottom: 10px;
    text-align: justify;
}


.about-inner{ padding: 80px;}

.service{ margin-bottom: 50px;}

.grid-item{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px; 
}

.grid-item .item{ display: flex;}

/*animacion de logos vectorizados*/

.item-icon {
    display: inline-block; /* Mantiene el comportamiento de bloque en línea */
    transition: transform 0.3s ease-in-out; /* Transición suave para el efecto */
}

.icono_vector {
    transition: transform 0.3s ease-in-out; /* Mantener la transición del SVG */
}

.item-icon:hover .icono_vector {
    transform: scale(1.3); /* Escala el icono al 110% cuando el mouse pasa por encima */
}


/*animacion de logos vectorizados*/

.grid-item .item-icon{
    font-size: var(--font-size-48);
    margin-right: 30px;
    color: var(--color-white-60);
}

.item-wrapper p{ 
    font-size: 12px;
    text-align: justify;
}


.testimonials{ 
    margin-bottom: 50px;
}

.testimonials-row{ 
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.testimonials-content{ margin-right: 20px;}

.testimonials-text{
    background: var(--background-dark-95);
    padding: 20px;
    margin-left: 50px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid var(--background-dark-70);
}

.testimonials-author{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 50px;
}

.author-img{
    width: 80px;
    border-radius: 50%;
    border: 2px solid var(--background-dark-70);
    margin-right: 10px;
    transform: translateY(-50%);
}

.author-info{
    font-size: var(--font-size-11);
    color: var(--color-white-60);
}


.clients-row{
    display: flex;
    justify-content: space-between;
}

.clients-row img{
    width: 100px;
    margin: 0 20px;
    opacity: .5;
    cursor: pointer;
}

/*RESUME SECTION*/

.resume,
.portfolio,
.videojuegos,
/*acava .blog*/
.contact{ padding: 50px 50px;}

.resume-row{ display: flex;}

.resume-row .wrapper:nth-child(1){
    width: 65%;
    margin-right: 40px;
    
}

.resume-row .wrapper :is(.education, .experience){
    
    

    margin-bottom: 80px;}



.resume-row h2{
    
    margin-bottom: 20px;}

.resume-row .grid-item{
    position: relative;
    grid-template-columns: .5fr 1fr;
    grid-gap: 0px 50px;
    margin-bottom: 20px;
}

.resume-row .grid-item .year{
    text-align: right;
    font-size: var(--font-size-14);
}

.resume-row .grid-item .company{
    text-align: right;
    font-size: var(--font-size-12);
    color: var(--color-white-70);
    transition: color 0.3s ease; /* Transición suave al cambiar el color */
}

/* Cuando el mouse está encima */
.resume-row .grid-item .company:hover {
    color: white; /* Cambia el color a blanco puro cuando el mouse está encima */
}

/*ESTA PARTE ES PARA EL CONTENDOR DE EDUCACIÓN SCROLL*/

.education {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    box-shadow: inset 0px 0px 30px rgba(0, 0, 0, 0.6); /* Sombra solo en la parte inferior */
    border-radius: 10px;
    
}

.education::-webkit-scrollbar {
    
    width: 6px;

}

.education::-webkit-scrollbar-track {
    background: var(--background-dark-70);
    
}

.education::-webkit-scrollbar-thumb {
    background: var(--background-orange);
    border-radius: 3px;
}

.education .grid-item {
    margin-bottom: 20px;

}


.education .divider {
    
    margin: 0px 0px;
   
    
}


/*ESTA PARTE ES PARA EL CONTENDOR DE EDUCACIÓN SCROLL*/



.resume-row .grid-item :is(.education-description, .experience-description){
   
    font-size: var(--font-size-13);
    color: var(--color-white-80);
    text-align: justify;
    
}

.resume-row .grid-item .divider{
    position: absolute;
    top: 0;
    left: 34.5%;
    width: 1px;
    height: calc(100% + 40px);
    background: var(--background-dark-60);

}

.resume-row .grid-item .divider::before{
    content: "";
    position: absolute;
    top: 8px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background: var(--background-dark-90);
    box-shadow: 0 0 0 2px var(--background-orange);
}

.resume-row .wrapper:nth-child(2){ width: 35%;}

.resume-row .design-skill{margin-bottom: 40px;}

.resume-row .progress-detail{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.resume-row .progress-detail .progress-percent{
    font-size: var(--font-size-11);
    font-weight: 300;
    color: var(--color-white-60);
}

.resume-row .progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    border: 1px solid var(--background-orange);
    padding: 2px;
    margin-bottom: 10px;
}

.resume-row .progress {
    height: 100%;
    border-radius: 10px;
    background: var(--background-orange);
}





/*PORTFOLIO SECTION*/

/* Filtros */
.buttons {
    margin: 20px;
    text-align: center;    
    display: flex; /* Para que los botones ocupen todo el espacio */
    flex-wrap: wrap; /* Se ajustan si hay poco espacio */
    gap: 1px; /* Espacio entre los botones */

}

.filter-buttons button {
    flex: 1; /* Cada botón ocupa el mismo ancho */
    padding: 15px; /* Tamaño uniforme */
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    background-color: #444444;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
    min-width: 320px; /* Evita que sean muy pequeños en pantallas pequeñas */
}

.filter-buttons button:hover {
    color: white;
    background-color: #555555;
    border: 0.1px solid rgba(255, 255, 255, 0.5);
   



}

.filter-buttons button.active {
    background-color: #626262;
    color: rgb(255, 255, 255);
    border: -1px solid rgb(255, 255, 255);
    box-shadow: 0px 0px 0px 2px ;

    z-index: 10;
}


/* Galería */
.gallery_portafolio {
    columns: 3 320px;
    column-gap: 0.5em;
    padding: 10px;
}

.img_gallery, .video_gallery, .lusido {
    max-width: 100%;
    margin-bottom: 0.5em;
    outline: 0.5px solid #f2fcff;
    outline-offset: 0px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.img_gallery:hover, .video_gallery:hover , .lusido:hover{
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0px 10px 5px 5px rgba(0, 0, 0, 0.5);
}
/*
.img_gallery:not(:hover), .video_gallery:not(:hover) {
}*/

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;


}

.lightbox.active {
    display: flex;
}

.lightbox-img, .lightbox-video {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    
}

.lightbox-video {
    display: none; /* Ocultar video por defecto */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.download-btn {
    position: absolute;
    bottom: 0;
    background-color: #43434389;
    color: white;
    padding: 20px 40px;
    border: 2px solid #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition:  0.3s;
}

.download-btn:hover {
    background-color: #ffffff;
    color: #000000;
    padding: 20px 100%;
}

/* Inicio PARTE DE SLIDER */
.before-after {
    position: relative;
    width:auto;
    max-width: 900px;
    min-height: 320px; /* Establece una altura mínima del 50% del viewport */
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; /* Sombra suave alrededor del contenedor */
}


.before-after .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin distorsionarse */
}

.before-after .img.front-img {
    z-index: 1;
    /* Recorta la mitad frontal de la imagen */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
}

/* Estilos para el control deslizante (slider) */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    margin: 0;
    opacity: 0; /* Hace el slider transparente */
    cursor: pointer; /* Cambia el cursor al pasar sobre el slider */
}
/* Permitir que los eventos pasen a través del slider y la línea vertical */


/* Estilos específicos para el thumb en navegadores WebKit (Chrome, Safari) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Elimina el estilo por defecto */
    width: 15px; /* Ancho del thumb */
    height: 100%; /* Altura del thumb (ocupa toda la altura del contenedor) */
    cursor: pointer; /* Cambia el cursor al pasar sobre el thumb */
    background-color: white; /* Color de fondo del thumb */
    border: 2px solid #c2c2c2; /* Borde del thumb */
    border-radius: 5px; /* Bordes redondeados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidad */
}

/* Estilos específicos para el thumb en Firefox */
.slider::-moz-range-thumb {
    -moz-appearance: none; /* Elimina el estilo por defecto */
    width: 15px; /* Ancho del thumb */
    height: 100%; /* Altura del thumb (ocupa toda la altura del contenedor) */
    cursor: pointer; /* Cambia el cursor al pasar sobre el thumb */
    background-color: white; /* Color de fondo del thumb */
    border: 2px solid #c2c2c2; /* Borde del thumb */
    border-radius: 5px; /* Bordes redondeados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidad */
}

/* Estilos para el track en navegadores WebKit (Chrome, Safari) */
.slider::-webkit-slider-runnable-track {
    background: transparent; /* Fondo transparente */
}

/* Estilos para el track en Firefox */
.slider::-moz-range-track {
    background: transparent; /* Fondo transparente */
}

/* Línea vertical personalizada */
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: white;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}/*hasta aca la galeria*/  

.filter-buttons{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    background-color: #000000;
}


.filter-box{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 40px 0;
}

.filter-item{
    padding: 5px 10px;
    border: 2px solid var(--background-dark-80);
    font-size: var(--font-size-12);
    color: var(--color-white-80);
    transition: var(--transition-default);
    cursor: pointer;
}

.filter-item:hover{ border-color: var(--color-white-100);}

.filter-item.active{
    border-color: var(--background-orange);
    color: var(--color-white-100);
}

.portfolio .portfolio-items-group{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}

.portfolio .portfolio-item{
    position: relative;
    overflow: hidden;
    display: none;
}

.portfolio .portfolio-item.active{ display: block;}

.portfolio .portfolio-item .item-img{
    display: block;
    transition: all .5s ease;
}

.portfolio .portfolio-item:hover .item-img{
    transform: scale(1.1);
}

.portfolio .portfolio-item :is(.item-name, .item-icon, .item-category){
    position: absolute;
    background: var(--color-white-100);
    color: var(--background-dark-90);
    padding: 2px 10px;
    opacity: 0;
    transition: all .5s ease;
}

.portfolio .portfolio-item:hover :is(.item-name, .item-icon, .item-category){ opacity: 1;}

.portfolio .portfolio-item .item-name{
    top: 10px;
    left: 10px;
}

.portfolio .portfolio-item .item-icon{
    top: 10px;
    right: 10px;
    color: var(--background-orange);
    padding: 3px 7px 0;
    font-size: var(--font-size-18);
}

.portfolio .portfolio-item .item-icon ion-icon{ --ionicon-stroke-width: 50px;}

.portfolio .portfolio-item .item-category{
    bottom: 30px;
    left: 10px;
    font-size: var(--font-size-11);
}
/*BLOG SECTION */

/*acava .blog*/container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    padding: 30px 0;
}

/*acava .blog*/post{ position: relative;}

/*acava .blog*/post /*acava .blog*/img-box{ overflow: hidden;}

/*acava .blog*/post /*acava .blog*/img-box img{
    display: block;
    transition: all .5s ease;
}

/*acava .blog*/post /*acava .blog*/img-box:hover img{ transform: scale(1.1);}

/*acava .blog*/post /*acava .blog*/category{
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--background-dark-90);
    padding: 0 8px;
    font-size: var(--font-size-11);
}

/*acava .blog*/post /*acava .blog*/info{
    background: var(--background-dark-80);
    color: var(--color-white-60);
    padding: 10px;
}

/*acava .blog*/post .publish-date{
    font-size: var(--font-size-11);
    color: var(--color-white-60);
}

/*acava .blog*/post /*acava .blog*/title{
    font-size: var(--font-size-18);
    font-weight: 600;
    margin-bottom: 10px;
}

/*CONTACT SECTION*/

.contact-info{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-top: 30px;
    margin-bottom: 100px;
}

.contact-info .info-box {
    background: var(--background-dark-80);
    border: 1px solid var(--background-dark-70);
    text-align: center;
    padding: 25px;
    transition: var(--transition-default);
}

.contact-info .info-box:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 10px -5px #0005;

}

.contact-info .info-box ion-icon {
    font-size: var(--font-size-48);
    color: var(--color-white-70);
    margin-bottom: 10px;
    transition: 0.25s;
}

.info-box:hover .iconos_contacto {
    color: var(--color-white-95) ;
    fill: var(--color-white-95);
    transition: 0.1s;

}
.iconos_contacto {
    color: var(--color-white-60);
    fill: var(--color-white-60);
    transition: 0.1s;

}


.contact-info .info-box:hover ion-icon  {
    color: white;
}
.logo_Sketchfab{
    fill: rgb(170, 170, 170);
}
.logo_Sketchfab:hover{
    fill: white;
}
.logo_videojuegos{
    fill: rgb(170, 170, 170);
}

.contact-info .info-box p{
    font-size: var(--font-size-16);
    font-weight: 600;
    color: var(--color-white-95);
    
}

.contact-form{
    max-width: 700px;
    margin: auto;
}

.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.form-grid .grid-left input,
.form-grid .grid-right textarea{
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-14);
    color: var(--color-white-95);
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--background-dark-70);
    outline: none;
}

.form-grid .grid-left input:not(:last-child){margin-bottom: 20px;}

.form-grid .grid-right textarea {
    height: 170px;
    resize: none;
}

/*MEDIA QUERIES*/

@media screen and (max-width: 1200px){
    .clients-row{
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-45%, 10%);
        display: grid;
        grid-template-columns: 3fr 3fr;
    }

    .clients-row img{
        margin-bottom: 30px;
        width: 150px;
    }
}

@media screen and (max-width: 1024px){
    .nav-mobile{ display: flex;}

    .side-bar{
        padding: 70px 0 30px;
        width: 260px;
        box-shadow: 2px 0 10px #0002;
        opacity: 0;
        left: -300px;
        transition: all var(--transition-default);
    }

    .side-bar.active{
        left: 0;
        opacity: 1;
    }

    .about, .resume, .portfolio,.videojuegos,  /*acava .blog*/ .contact{
        width: 100%;
    }

    .resume, .portfolio, /*acava .blog*/ .contact{ padding: 80px 40px;}
    
    .contact-info{ grid-template-columns: repeat(2, 1fr);}
}

@media screen and (max-width: 768px){
    .hero{ flex-direction: column;}

    .hero-img-box{
        max-width: 100%;
        height: 450px;
        font-size: 0;
    }

    .hero-content{
        width: 100%;
        padding: 40px;
    }

    .about-inner{
        padding: 40px;
    }

    .grid-item{
        grid-template-columns: 1fr;
    }

    .testimonials-row{
        grid-template-columns: 1fr;
    }

    .testimonials-content{
        margin-right: 0;
        margin-bottom: 20px;
    }

    .clients-row img{
        width: 150px;
    }

    .resume-row{
        flex-direction: column;
        margin-bottom: 50px;
    }

    .resume-row .wrapper{ width: 100% !important;}

    .resume-row .wrapper:nth-child(1){margin-right: 0;}

    .portfolio .portfolio-items-group{ grid-template-columns: 1fr;}

    /*acava .blog*/container {grid-template-columns: 1fr;}

    .form-grid{ grid-template-columns: 1fr;}
}

@media screen and (max-width: 570px){
    .contact-info{ grid-template-columns: 1fr;}
}

@media screen and (max-width: 455px){
    .clients-row{
        grid-template-columns: 1fr;
    }

    .clients-row img{
        margin-bottom: 40px;
    }

}


/*CSS SOFTWARE ZONE*/

.software-section {
    font-family: Arial, sans-serif;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas para pantallas grandes */
    gap: 20px;
}



.categoria-m1, .categoria-l1, .categoria-d1, .categoria-mo1 {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 10px;
    background-color: #303030;
    box-shadow: 10px 10px 3px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Hace que los textos estén arriba y las imágenes abajo */
    align-items: center; /* Centra las imágenes y el texto */
    text-align: center; /* Centra el texto */
}

.categoria-m1 h2, .categoria-l1 h2, .categoria-d1 h2, .categoria-mo1 h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px; /* Separación entre texto y las imágenes */
}

.software-item-m1, .software-item-l1, .software-item-d1, .software-item-mo1 {
    display: flex;
    flex-direction: column; /* Las imágenes estarán en columna, con el texto abajo */
    justify-content: center;
    align-items: center; /* Centra el contenido */
    gap: 2px; /* Espacio entre las imágenes y el texto */
    margin-top: 10px;
    width: 100%;
}

.software-item-m1 img, .software-item-l1 img, .software-item-d1 img, .software-item-mo1 img {
    width: 50px; /* Tamaño fijo para las imágenes */
    height: 50px; /* Tamaño fijo para las imágenes */
    object-fit: contain; /* Ajusta las imágenes sin deformarlas */
    border-radius: 5px;
    background-color: white;
    padding: 3px;
    border: 1px solid #ccc;
}

/* Aseguramos que los textos estén centrados debajo de las imágenes */
.software-item-m1 p, .software-item-l1 p, .software-item-d1 p, .software-item-mo1 p {
    margin-top: 5px; /* Separación entre la imagen y el texto */
    color: white;
    font-size: 0.9rem; /* Ajustamos el tamaño del texto */
    font-weight: normal;
}

/* Responsive layout */
@media (max-width: 768px) {
    .software-section {
        grid-template-columns: repeat(1, 1fr); /* Dos columnas para tabletas */
    }
}

@media (max-width: 480px) {
    .software-section {
        grid-template-columns: 1fr; /* Una columna para móviles */
    }
    .software-item-m1 img, .software-item-l1 img, .software-item-d1 img, .software-item-mo1 img {
        width: 50px; /* Las imágenes se mantienen de 50px */
        height: 50px;
    }
}


/* area videojuegos*/

/* Estilos para la sección de videojuegos */
/* Estilos para la sección de videojuegos *//* Estilos para la sección de videojuegos */
.videojuegos-container {
    padding: 10px;
    background: var(--background-dark-90);
    border-radius: 10px;
    margin: 10px;
}

.videojuegos-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.videojuego-item {
    background: var(--background-dark-80);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease ;
    border: 2px solid var(--background-dark-70  );
}

.videojuego-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--background-dark-60  );

}

.videojuego-imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.videojuego-imagen img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.videojuego-imagen h3 {
    font-size: var(--font-size-14);
    color: var(--color-white-95);
    text-align: center;
}

.videojuego-descripcion {
    flex: 3;
    text-align: left;
}

.videojuego-descripcion p {
    font-size: var(--font-size-12);
    color: var(--color-white-80);
    line-height: 1.4;
    margin: 0;
}

.videojuego-motor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.videojuego-motor img {
    width: 40px;
    height: 40px;
}

.videojuego-motor p {
    font-size: var(--font-size-12);
    color: var(--color-white-95);
    margin: 0;
}

.videojuego-probar {
    display: flex;
    flex-direction: column; /* Cambia a columna para apilar los elementos verticalmente */
    justify-content: center;
    align-items: center; /* Centra todos los elementos */
    gap: 20px; /* Añade espacio entre los SVGs y el botón */
}

.btn-probar {
    padding: 8px 16px;
    background: var(--background-orange);
    color: var(--color-white-100);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: var(--font-size-12);
}

.btn-probar:hover {
    background: #ff6b6b;
}

/* Media Queries para Responsive Design */
@media screen and (max-width: 768px) {
    .videojuego-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .videojuego-imagen,
    .videojuego-descripcion,
    .videojuego-motor,
    .videojuego-probar {
        width: 100%;
        text-align: left;
    }

    .videojuego-imagen {
        align-items: flex-start;
    }

    .videojuego-motor {
        align-items: flex-start;
    }

    .videojuego-probar {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .videojuego-item {
        padding: 8px;
    }

    .videojuego-imagen img {
        width: 50px;
        height: 50px;
    }

    .videojuego-imagen h3 {
        font-size: var(--font-size-12);
    }

    .videojuego-descripcion p {
        font-size: var(--font-size-11);
    }

    .videojuego-motor img {
        width: 30px;
        height: 30px;
    }

    .videojuego-motor p {
        font-size: var(--font-size-11);
    }

    .btn-probar {
        padding: 6px 12px;
        font-size: var(--font-size-11);
    }
}

@media screen and (max-width: 320px) {
    .videojuego-item {
        padding: 5px;
    }

    .videojuego-imagen img {
        width: 40px;
        height: 40px;
    }

    .videojuego-imagen h3 {
        font-size: var(--font-size-11);
    }

    .videojuego-descripcion p {
        font-size: var(--font-size-10);
    }

    .videojuego-motor img {
        width: 25px;
        height: 25px;
    }

    .videojuego-motor p {
        font-size: var(--font-size-10);
    }

    .btn-probar {
        padding: 5px 10px;
        font-size: var(--font-size-10);
    }
}
.iconos-videojuegos{
    /*logo unity*/
    border-radius: 100%;
    justify-content: center;
    fill: rgb(165, 165, 165);
}



.videojuego-motor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos horizontalmente */
    justify-content: center; /* Centra los elementos verticalmente */
    gap: 10px; /* Espacio entre los elementos (el SVG y el texto) */
    text-align: center; /* Centra el texto dentro del <p> */
}

.videojuego-motor svg {
    width: 35px; /* Puedes ajustar el tamaño del SVG según sea necesario */
    height: 35px;
    margin-bottom: 5px; /* Espacio entre el SVG y el texto */
}

.videojuego-motor p {
    font-size: var(--font-size-12);
    color: var(--color-white-95);
    margin: 0; /* Elimina márgenes extra en el <p> */
}
.videojuego-imagen {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos horizontalmente */
    justify-content: center; /* Centra los elementos verticalmente */
    gap: 5px; /* Espacio entre la imagen y el título */
    flex: 1;
}

.videojuego-imagen img {
    width: 125px; /* Tamaño del contenedor */
    height: 125px; /* Tamaño del contenedor */
    border-radius: 8px; /* Bordes redondeados */
    object-fit: cover; /* Escala la imagen para cubrir el contenedor sin distorsión */
    background-color: white; /* Fondo blanco visible si la imagen no cubre todo */
}


.videojuego-imagen h3 {
    font-size: var(--font-size-14);
    color: var(--color-white-95);
    text-align: center; /* Centra el texto dentro del h3 */
    margin: 0; /* Elimina márgenes extra alrededor del título */
}

.videojuegos-svg-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre los SVGs */
    margin-bottom: 0; /* Elimina el margen inferior extra */
}

.videojuego-item:hover .iconos-videojuegos,
.videojuego-item:hover .logo_videojuegos {
    fill: white; /* Cambia el color de los iconos a blanco */
}

/**/
.icono_menu_amburguesa_color2{
    fill: var(--color-white-80);
}

.icono_menu_amburguesa {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}


.icono_menu_amburguesa svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;  /* Suaviza la escala y opacidad */
}




/* Inicialmente, el ícono de hamburguesa es visible */
#iconoHamburguesa {
    opacity: 1;
}

/* Inicialmente, el ícono de cerrar está oculto */
#iconoCerrar {
    opacity: 0;
}

/* Cuando el menú está activo, ocultamos el ícono de hamburguesa y mostramos el ícono de cerrar */
.side-bar.active #iconoHamburguesa {

    opacity: 0;  /* Ocultamos el ícono de hamburguesa */
}

.side-bar.active #iconoCerrar {

    opacity: 1;  /* Mostramos el ícono de cerrar */
}

/* ESPACIO EDICION DE CODE CSS PARA IMAGENES EMERGENTES (TITULOS EN TOOLTIPS) */



@media (hover: hover) {
    .tooltip:hover .tooltip-img {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
  }
  
/* Estilos para el contenedor principal del tooltip */
.tooltip {
    position:relative;
    display: inline-block;
  }
  
  .tooltip-img {
    position: absolute;
    top: 120%; /* Aparece justo debajo de "Ver" */
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 5px;
    border-radius: 4px;
    opacity: 0;  /* Inicialmente oculto */
    transform: scale(0.8); /* Inicialmente más pequeño */
    transition: all 0.3s ease-in-out;
    pointer-events: none;  /* Tooltip no interactúa cuando está oculto */
    z-index: 9999;
    color: white;
    font-family: sans-serif;
    font-size: 11px;
    font-style: italic;
    width: 215px;  /* El ancho máximo del tooltip */
    text-align:left;
    box-sizing: border-box;
    display: block;
  }
  
  /* Cuando el mouse pasa por encima de "Ver", el tooltip se muestra */
  .tooltip:hover .tooltip-img {
    opacity: 1; /* Tooltip visible */
    transform: scale(1); /* Tooltip con tamaño normal */
    pointer-events: auto;  /* Tooltip puede interactuar */
  }
  
  /* Estilo para la flecha en el tooltip */
  .tooltip-img::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.85);
  }
  
  /* Estilos para la imagen dentro del tooltip */
  .tooltip-img img {
    display: block;
    max-width: 320px; /* Limita el tamaño máximo de la imagen */
    width: 100%; /* Imagen ocupa todo el ancho disponible */
    height: auto;
    border-radius: 4px;
    margin-bottom: 6px; /* Separación entre la imagen y el texto */
  }
  
  /* Estilos para el texto dentro del tooltip */
  .tooltip-text {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: white;
    text-align: center;
    max-width: 100%; /* El texto ocupa todo el ancho disponible */
    white-space: normal;
    word-wrap: break-word; /* Asegura que el texto se ajuste y no se salga del contenedor */
  }
  
  .texto_info {
    cursor: pointer;
    padding: 0 10px;
  }
  
/*--------------------------*/


/* Contenedor responsivo */
.embed-wrapper {
  width: 100%;
  max-width: 540px;
  min-width: 200px; /* <-- Mínimo 320px para móviles */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Embed de Instagram adaptativo */
.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 200px !important;
  border: 0;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* Estilo del enlace debajo */
.instaalink {
  display: block;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.instaalink:hover {
  color: #1da1f2;
  text-decoration: underline;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
  .instaalink {
    font-size: 14px;
  }
}
