@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');



:root {
    --principal: #121212;
    --gris_bordes: #D9D9D9;
    --secundario: #717070;
  }

  *{
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
  }


 

  #github-activity {
    display: flex;
    flex-direction: column;
    position: relative;
    top: -40px;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.username {
    font-size: 10px;
    font-weight: bold;
    color: var(--principal);
}

body.dark .username {
    color: white;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.calendar {
    display: flex;
    flex-wrap: wrap;
}

.day {
    width: 30px;
    height: 30px;
    margin: 1px;
    border-radius: 5px;
    background-color: #161B22;
}

.day.level-1 {
    background-color: #0c3b24;
}

.day.level-2 {
    background-color: #0f472c;
}

.day.level-3 {
    background-color: #006D32;
}

.day.level-4 {
    background-color: #39D353;
}

  
  #toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gris_bordes);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
   }
   #toTop img {
    width: 30px;
    height: 30px;
    margin-top: 10px;
   }

   #display-time, #temp{
    line-height: 40px;
   }

   .img-icono {
    float: left;
    position: relative;
    bottom: 5px;
    right: 10px;
   }

   .img-icono img {
    margin: 0;
    padding: 0;
   }

   body.dark #toTop img {
    content: url(img/flechaNegra.webp);
   }


   button {
    transition: 2s ease all;
    position: absolute;
}

.switch {
    background: #343d5b;
    border-radius: 100px;
    border: none;
    top: 0;
    left: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    outline: none;
  }
  .switch::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    background: #f1f1f1;
     left: 0;
    right: unset;
    border-radius: 100px;
    transition: 0.3s ease all;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
  }
  .switch.active {
    background: orange;
    color: black;
  }
  .switch.active::after {
    right: 0;
    left: unset;
  }
  .switch span {
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    background-color: none;
    color: white;
}

body.dark {
    background-color: #18181B;
}
body.dark h1 {
    color: white;
}
body.dark h2 {
    color: var(--gris_bordes);
}
body.dark h3 {
    color: #c4c4c4;
}

body.dark .general p {
    color: var(--gris_bordes);
}
body.dark .general h3 {
    color: #ededed;
}
body.dark .caja a {
    color: white;
}
body.dark .github  {
    content: url(img/githubWhite.webp);
}
body.dark .figma  {
    content: url(img/figmaWhite.webp);
}

/*
aside {
    float: left;
    border-radius: 25px;
    border: 1px solid var(--gris_bordes);
    margin: 40px;
    position: fixed;
    width: 22%;
}
.menu  {
    display: flex;
    padding: 50px;
}
nav ul li {
    list-style: none;
    line-height: 50px;
}
nav ul li a {
    font-family: Inconsolata-Regular;
    text-decoration: none;
    color: var(--principal);
}
nav ul li a:hover {
    color: var(--secundario);
}
*/



main {
    border-radius: 25px;
    margin: 40px 200px;  
    padding: 60px;
    width: 55%;
    margin: auto;
}

.nombre h1, .nombre h2{
    font-family: OpenSans-Regular;
}
.nombre h1 {
    font-size: 36px;
    font-weight: 400;
}
.nombre h2 {
    font-size: 24px;
    color: #444444;
    font-weight: 200;
}
.nombre h3{
    font-family: Inconsolata-Regular;
    font-size: 22px;
    color: var(--secundario);
    font-weight: 200;
}


article .texto-nombre {
    float: left;
    width: 60%;
}
article .img-nombre {
    float: right;
    width: 40%;
}

.img-nombre img {
    margin: 30px 20px;
    border-radius: 10%;
    position: absolute;
     
}


.linkedin-link {
    color: #0A66C2 !important;
}

.correo-link {
    color: #D93F3F !important;
}

.github-link {
    color: #f0f6fc !important;
}


.linkedin-link:hover::after, .github-link:hover::after {
    width: 100%;
    transition: 2s ease all;
    text-decoration: underline;
}

p {
    max-width: 80ch;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #676767e6;
    transition: opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal:target {
    opacity: 1;
    pointer-events: auto;
  }
  .modal > .modal-content {
    max-width: 90%;
    position: relative;
    padding: 20px;
  }
  .modal .close {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 30px;
    color: white;
    text-decoration: none;
}



.redes a {
    border-radius: 5px;
}
.redes {
    clear: both;
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin-bottom: 40px;
}
.redes div {
    align-items: center;
    justify-content: center;

}





 .general h2 {
    font-family: OpenSans-Regular;
    font-size: 30px;
    color: var(--principal);
    font-weight: 600;
    width: 100%;
    float: left;
}
.general p {
    font-family: Inconsolata-Regular;
    font-size: 18px;
    color: var(--secundario);
    font-weight: 200;
    width: 100%;
    margin: 0 0 50px 0;
    clear: both;
}
.general h3 {
    font-family: OpenSans-Regular;
    font-size: 18px;
    font-weight: 200;
    width: 70%;
    float: left;
    margin: -10px 0 10px 0;
}

.general .fecha {
    font-family: Inconsolata-Regular;
    font-size: 20px;
    color: var(--secundario);
    font-weight: 200;
    float: right;    
    width: 30%;
    text-align: right;  
}

h4 {
    margin-top: -40px;
}
.general a {
    margin-bottom: 30px;
    font-family: Inconsolata-Regular;
    border-radius: 25px;
    display: inline-block;
    color: var(--secundario);
    text-decoration: none;
    font-weight: 300;
}
.general  a:hover {
    text-decoration: underline;
    color: #3283D5;
}
.general h4 img:hover {
    content: url(img/exteriorBlue.webp);
    text-decoration: underline;
}

.proyectos {
    width: 90%;
}



.contenedor {
    width: 120%;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    padding-bottom: 20px;
}
.caja {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gris_bordes);
    border-radius: 25px;
    height: auto;
    overflow: hidden;
}
.caja a {
    font-family: OpenSans-Regular;
    font-size: 18px;
    color: black;
    text-decoration: none;
    font-weight: 200;
    margin-bottom: 0px;
}
.caja a:hover {
    color: #3283D5;
}

.lenguajes {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    width: 100%;
    flex-wrap: wrap;
}
.lenguajes h4 {
    margin-bottom: 50px;
}
.caja h4 {
    font-family: OpenSans-Regular;
    font-size: 14px;
    text-align: center;
    color: #444444;
        background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Blur effect */
        border-radius: 15px; /* Rounded corners */
        padding: 10px; /* Padding for spacing */
        color: #ffffff; /* Text color */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    border-radius: 30px;
    font-weight: 500;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.caja .rojo {
    color: #c3251d;
}

.caja .github {
    position: relative;
    left: 10px;
}

.caja .figma {
    position: relative;
    left: 15px;
}
.caja span {
    color: #1DC347;
    font-size: 40px;
    animation: span 3s infinite;
    position: relative;
    bottom: 4px;
    margin: 0px;
    padding: 0px;
    display: inline;
}

@keyframes span {
    0% {opacity: 1;}
    50% {opacity: 0;}
    100% {opacity: 1;}
}


.habilidades {
    margin-top: 60px;
}
.lenguajes-habilidades {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 0;
}
.lenguaje {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    border-radius: 30px;
    padding: 10px 15px;
}
.lenguaje img {
    float: left;
    margin-right: 10px;
    padding: 0px;
}
.lenguaje h4 {
    font-family: OpenSans-Regular;
    font-size: 14px;
    text-align: center;
    color: var(--secundario);
    font-weight: 500;
    display: inline-block;
    margin: 0 0 0px 0;
}




@media screen and (max-width: 470px) {
    main {
        width: 100%;
        margin: auto;
        margin: 0px;  
        padding: 0px;
    }

    .img-icono {
        display: none;
       }
    

article .img-nombre {
    float: right;
    width: 40%;
}

.img-nombre img {
    width: 40%;
    height: auto;
    border-radius: 90%;
    margin: 60px -10px;
    box-shadow: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(103, 103, 103, 0.9);
    transition: opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal:target {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-content img {
    width: 100%;
    height: 100%;
    border-radius: 0%;
  }
  .modal > .modal-content {
    max-width: 90%;
    position: relative;
    padding: 20px;
  }
  .modal .close {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 30px;
    color: white;
    text-decoration: none;
}
    .contenedor {
        width: 100%;
        flex-direction: column;
    }
    .caja {
        padding: 10px 20px;
        margin: 0px; 
        flex: 0 0 100%;
    }

    .habilidades {
        margin-bottom: 40px;
    }


    button {
        transition: 2s ease all;
        position: absolute;
        float: right;
        margin-bottom: 20px;
        width: 50px;
    }

    
    .switch {
        background: #343d5b;
        border-radius: 1000px;
        border: none;
        top: 0;
        right: 0;
        left: 30;
        margin: 20px 10px;
        cursor: pointer;
        display: flex;
        outline: none;
      }
    
  .switch::after {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    position: absolute;
    background: #f1f1f1;
    top: 0;
    left: 0;
    right: unset;
    border-radius: 100px;
    transition: 0.3s ease all;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
  }
  .switch.active {
    background: orange;
    color: black;
  }
  .switch.active::after {
    right: 0;
    left: unset;
  }
  .switch span {
    width: 25px;
    height: 25px;
    line-height: 25px;
    display: block;
    background-color: none;
    color: white;
}


#github-activity {
    top: -15px;
}

}





@font-face {
    font-family: Inconsolata-Regular;
    src: url(fonts/Inconsolata-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: OpenSans-Regular;
    src: url(fonts/OpenSans-Regular.ttf);
    font-display: swap;
}





.lenguaje i {
    font-size: 20px;
    margin-right: 8px;
}

.fa-html5 { color: #E34F26; }
.fa-css3-alt { color: #1572B6; }
.fa-js { color: #F7DF1E; }
.fa-react { color: #61DAFB; }
.fa-sass { color: #CC6699; }
.fa-php { color: #777BB4; }
.fa-wordpress { color: #21759B; }
.fa-java { color: #007396; }






.fila-certificados {
    display: flex;
    gap: 40px;
    width: 100%;
}

.certificado {
    flex: 1;
    padding: 0px 0px;
    background: transparent;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.certificado h3 {
    margin-bottom: 15px;
    width: 100%;
    float: none;
}

.certificado .fecha {
    float: none;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.certificado p {
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
    width: 100%;
    clear: both;
}

.certificado h4 {
    margin-top: 15px;
    width: 100%;
}

.certificado.vacio {
    visibility: hidden;
    border: none;
}

@media (max-width: 768px) {
    .fila-certificados {
        flex-direction: column;
        gap: 20px;
    }

    .certificado {
        width: 100%;
    }

    .certificado.vacio {
        display: none;
    }
}



.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.badge-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.badge-glass i {
    font-size: 15px;
}

.badge-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.badge-glass .fa-microsoft { color: #5E5E5E; }
.badge-glass .fa-database { color: #4479A1; }
.badge-glass .fa-tailwind-css { color: #06B6D4; }
.badge-glass .fa-git-alt { color: #F05032; }

body.dark .badge-glass span {
    color: #fff;
}
body:not(.dark) .badge-glass span {
    color: #333;
}
body:not(.dark) .badge-glass {
    color: #333;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body:not(.dark) .badge-glass:hover {
    background: rgba(255, 255, 255, 0.4);
}

.badge-glass span {
    font-size: 14px;
    font-weight: 200;
    color: #fff;
    font-family: monospace;
    
}


.dot-pulse {
    position: relative;
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #39D353;
    border-radius: 50%;
    margin-left: 10px;
    margin-bottom: 5px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}





.badge-glass {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: 0px;
    margin-bottom: 10px;
}

.badge-glass i {
    font-size: 15px;
}

.badge-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.badge-glass .fa-html5 { color: #E34F26; }
.badge-glass .fa-css3-alt { color: #1572B6; }
.badge-glass .fa-js { color: #F7DF1E; }
.badge-glass .fa-react { color: #61DAFB; }
.badge-glass .fa-sass { color: #CC6699; }
.badge-glass .fa-bootstrap { color: #7952B3; }
.badge-glass .fa-java { color: #007396; }
.badge-glass .fa-php { color: #777BB4; }
.badge-glass .fa-wordpress { color: #21759B; }
.badge-glass .fa-git-alt { color: #F05032; }

body.dark .badge-glass span {
    color: #fff;
}

body:not(.dark) .badge-glass span {
    color: #333;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body:not(.dark) .badge-glass:hover {
    background: rgba(255, 255, 255, 0.4);
}

.badge-glass span {
    font-size: 14px;
    font-weight: 500;
}

.tailwind-badge svg {
    margin-right: 2px;
}
@supports not (backdrop-filter: blur(10px)) {
    .badge-glass {
        background: rgba(255, 255, 255, 0.7);
    }
    
    body.dark .badge-glass {
        background: rgba(30, 30, 30, 0.7);
    }
}
.tech-badges .badge-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}




.caja {
    flex: 0 calc(50% - 10px);
    height: auto;
    padding: 0;
    justify-content: center;
    
}

.caja h3, .caja p, .caja .lenguajes {
    padding: 0 20px;
    max-width: 35ch;
}

.project-video video {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}




.project-video {
    width: 100%;
    margin: 0;
    padding: 0;
    order: -1; /* Esto asegura que esté siempre primero */
}

.video-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}



.project-video:hover .video-control {
    opacity: 1;
}

.video-control:after {
    content: '';
    display: block;
    width: 15px;
    height: 24px;
    border-right: 8px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    margin-left: 0;
}

.video-control.paused:after {
    width: 0;
    height: 0;
    border: none;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    margin-left: 4px;
    border-radius: 0;
}


.think_img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}