/* Fuente Unown */
@font-face {
    font-family: 'UnownFont';
    src: url('fuentes/Unown.woff2') format('woff2'),
         url('fuentes/Unown.woff') format('woff'),
         url('fuentes/Unown.ttf') format('truetype');
}

/* Paleta de colores */
:root {
    --profile-tab-color: #fff; /* Blanco */
    --python-color: #3b8ad9; /* Azul claro */
    --docker-color: #6fd5f5; /* Azul claro */
    --kubernetes-color: #5a8eec; /* Azul medio */
    --github-color: #6e7277; /* Gris */
    --c-color: #5f9ed9; /* Azul medio */
    --javascript-color: #f59e42; /* Naranja claro */
    --laravel-color: #f5f5f5; /* Blanco grisáceo */
    --flutter-color: #3f8fcf; /* Azul claro */
    --html-color: #f7d147; /* Amarillo claro */
    --css-color: #4d83f6; /* Azul claro */
    --mongodb-color: #51bb74; /* Verde claro */
    --mysql-color: #2e99b0; /* Azul medio */
    --csharp-color: #b39ddb; /* Violeta claro */
    --java-color: #f5f5f5; /* Blanco grisáceo */
}

/* Desplazamiento suave */
html {
    scroll-behavior: smooth;
}

/* Anchura */
::-webkit-scrollbar {
    width: 8px;
}
  
/* Fondo de la barra */
::-webkit-scrollbar-track {
    background-color: transparent;
    position: absolute;
    z-index: 9999; /* Asegura que esté por encima del contenido */
    width: 8px;
}
  
/* Color del scroll */
::-webkit-scrollbar-thumb {
    background-color: #1CB698;
    border-radius: 5px;
    border: 2px solid #1e2326; /* Añade un borde para hacerlo más parecido */
}
  
/* Resalte al pasar el ratón sobre la barra */
  ::-webkit-scrollbar-thumb:hover {
    background-color: #178a6b;
}

/* Estilos para el cuerpo de la página */
body {
    font-family: 'Righteous', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e2326;
    overflow-x: hidden; /* Oculta la barra de desplazamiento horizontal */
}

.welcome-section {
    /* Crear un degradado de colores */
    background: linear-gradient(180deg, #1CB698, #1e2326, #252A2E, #1e2326, #1CB698);
    /* Definir el tamaño del fondo para que sea más grande que el cuerpo para permitir la animación */
    background-size: 100vw 200vh;
    /* Animar el fondo */
    animation: gradient 5s linear infinite;
}
/* Definir la animación */
@keyframes gradient {
    0% {background-position: 0% 250%;}
    25% {background-position: 0% 200%;}
    50% {background-position: 0% 150%;}
    85% {background-position: 0% 100%;}
    100% {background-position: 0% 50%;}
}

/* Estilos para la sección de bienvenida */
.welcome-background {
    /*position: relative; /* Añade posición relativa para poder usar z-index */
    justify-content: center; /* Centra horizontalmente */
    opacity: 0.3;
    background-image: url('img/fondo.jpeg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center center;
    display: flex;
    height: 100vh; /* Ajusta la altura al 100% del viewport */
    margin-top: 0;
}

.welcome-background-difuminado {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 10%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1e2326);
    z-index: 1;
}

.profile-section {
    position: absolute; /* Añade posición relativa para poder usar z-index */
    top: -18%; /*0*/
    left: 50%; /* 40% */
    transform: translateX(-50%);
    justify-content: center; /* Centra horizontalmente */
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ajusta la altura al 100% del viewport */
    margin-top: 0;
    max-width: 60vw;
}

#line {
    position: relative;
    top: 0;
    left: 50%;
    width: 2px;
    height: 30%;
    background-color: #1CB698;
    z-index: 3;
}

.profile-tab {
    position: relative;
    height: 100%;
    z-index: 2;
    padding-top: 0;
    margin-bottom: 0;
    background-color: var(--profile-tab-color);
}


.triangle {
    width: calc(100% - 100px);
    height: 0;
    border-left: 50px solid transparent; /* Borde izquierdo transparente */
    border-right: 50px solid transparent; /* Borde derecho transparente */
    border-top: 50px solid var(--profile-tab-color); /* Borde superior coloreado con el mismo color del panel */
    position: relative; /* Añade posición absoluta para colocar el triángulo dentro del panel */
    margin-top: 0;
    z-index: 1;
}

.profile-tab img {
    background-color: var(--profile-tab-color);
    border: 2px solid #1CB698; /* Color del borde */
    border-radius: 50%; /* Asegura que la imagen tenga bordes redondos */
    max-width: 60%; /* Ajusta el tamaño de la imagen según sea necesario */
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.tab-content {
    text-align: center;
    padding: 0 20px;
}

.tab-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.tab-content p {
    font-size: 18px;
    margin: 0;
}

.tab-content .work {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1CB698;
    color: #fff;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s;
    position: relative;
    z-index: 1;
}

.social-button:hover {
    background-color: #178a6b;
}

/* Estilos para los títulos de sección */
.sobre-mi-section h2,
.projects-section h2,
.contact-section h2 {
    margin-left: 360px;
    text-align: center; /* Centra los títulos de sección */
    font-size: 40px;
    text-align: center; /* Centrar el texto */
    position: relative; /* Establecer posición relativa */
    margin-top: 20px; /* Espacio superior */
    color: #fff; /* Color de texto para los títulos */
}

/* Estilos de decoración para los títulos de sección */
.sobre-mi-section h2::after,
.projects-section h2::after,
.contact-section h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px; /* Grosor de la línea */
    background-color: #1CB698; /* Color de la decoración */
    bottom: -10px; /* Distancia desde la parte inferior del título */
    left: 0; /* Alineación a la izquierda */
}

/* Estilos para el texto dentro de la sección "Sobre mí" */
.sobre-mi-section p {
    font-size: 25px;
    color: #fff; /* Color de texto para la sección "Sobre mí" */
}

/* Estilos para el span con tu nombre en la sección "Sobre mí" */
.sobre-mi-section span {
    color: #1CB698; /* Color de texto para tu nombre */
    font-weight: bold; /* Negrita */
}

/* Estilos para cada sección */
.sobre-mi-section,
.projects-section,
.contact-section {
    display: flex; /* Usa flexbox */
    flex-direction: column; /* Establece la dirección del flexbox como columna */
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center; /* Centra el contenido horizontalmente */
    padding: 20px;
    margin-bottom: 0vh; /* Espacio entre secciones */
    /*height: 90vh; /* Ajusta la altura de cada sección al 90% del alto de la ventana */
    overflow-y: auto; /* Añade una barra de desplazamiento vertical si el contenido excede el tamaño de la sección */
}

/* Estilos para el contenido de cada sección */
.sobre-mi-section .sobre-mi,
.projects-section .projects,
.contact-section form {
    margin-left: 500px; /* Establece el margen izquierdo para el contenido */
    margin-right: 140px; /* Establece el margen derecho para el contenido */
    text-align: center; /* Centra el contenido */
}

.container {
    display: flex;
}

/* estilos header */
.mobile-header {
    display: none;
    justify-content: flex-end; /* Alinear los elementos al final del contenedor (lado derecho) */
    position: fixed;
    top: 10%;
    right: 0;
}

#panel {
    color: #fff;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 50% 0 0 50%;
    border: 2px solid #1CB698;
    border-right: 2px solid #1e2326;
    background-color: #1e2326;
    text-align: left;
    cursor: pointer;
    z-index: 2;
}

.menu-toggle {
    display: block;
}

.menu {
    padding: 10px;
    display: none;
    position: absolute;
    flex-direction: column;
    top: calc(100% - 2px);
    right: 0;
    width: auto;
    min-width: 10vw;
    background-color: #1e2326;
    border-radius: 5% 0 0 5%;
    border: 2px solid #1CB698;
    border-right: none;
    z-index: 1;
}

.menu a {
    display: flex;
    flex-direction: row;
    margin: 0 auto 20px;
    text-decoration: none;
    color: #fff;
}

.menu a:hover {
    color: #1CB698;
}

.menu button {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 10;
    max-height: 50px;
    max-width: 200px;
}

.menu button i {
    margin-left: 5%;
}

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

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

/* Estilos para la barra de perfil */
.profile-container {
    height: 100vh; /* Toma toda la altura de la ventana */
    width: 320px; /* Ancho deseado para la barra */
    padding: 20px;
    border-radius: 0 20% 20% 0;
    border-right: 2px solid #1CB698;
    background-color: #1e2326; /* Color de fondo */
    position: fixed; /* Fija la barra en su posición */
    top: 0; /* Coloca la barra en la parte superior de la ventana */
    left: 0; /* Coloca la barra en el lado izquierdo de la ventana */
    z-index: 999; /* Asegura que la barra esté por encima del contenido */
    overflow: hidden; /* Evita que el contenido se oculte detrás de la barra */
    transform: translateX(-100%); /* Oculta inicialmente el panel de perfil */
    transition: transform 0.5s ease; /* Agrega una transición suave para el efecto de desplazamiento */
}

/* Estilos para mostrar el panel de perfil */
.profile-container.show-profile {
    transform: translateX(0%); /* Muestra el panel de perfil */
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilos para el contenedor de la imagen de perfil */
.profile #hero {
    background-color: var(--profile-tab-color);
    width: 80%;
    height: auto;
    border: 2px solid #1CB698; /* Color del borde */
    border-radius: 50%; /* Asegura que la imagen tenga bordes redondos */
}

.profile a {
    margin: 20px auto 0;
    text-decoration: none;
    color: #fff;
}

.profile a:hover {
    color: #1CB698;
}

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

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

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

.Aptitudes h3 {
    text-align: left; /* Centrar el texto */
    /*position: relative; /* Establecer posición relativa */
    margin-top: 20px; /* Espacio superior */
    color: #1CB698; /* Color de texto para los títulos */
}

/* Estilos para la sección de habilidades */
.Aptitudes .skills {
    display: flex;
    flex-wrap: wrap;
}

.Aptitudes .skill {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    width: 120px;
    margin: 5px;
    border-radius: 5px;
}
  
.Aptitudes .skill img {
    width: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.Aptitudes .skill span {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

/* Estilos para cada habilidad específica */
.skill.python { background-color: var(--python-color); }
.skill.docker { background-color: var(--docker-color); }
.skill.kubernetes { background-color: var(--kubernetes-color); }
.skill.github { background-color: var(--github-color); }
.skill.c { background-color: var(--c-color); }
.skill.javascript { background-color: var(--javascript-color); }
.skill.laravel { background-color: var(--laravel-color); }
.skill.flutter { background-color: var(--flutter-color); }
.skill.html { background-color: var(--html-color); }
.skill.css { background-color: var(--css-color); }
.skill.mongodb { background-color: var(--mongodb-color); }
.skill.mysql { background-color: var(--mysql-color); }
.skill.csharp { background-color: var(--csharp-color); }
.skill.java { background-color: var(--java-color); }

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px; /* Ancho máximo del contenedor */
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

.project {
    position: relative; /* Añade posición relativa para usar con los botones */
    width: 45%;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project #Project-Name{
    color: #1CB698;
    /*position: absolute;
    top: 0;*/
    opacity: 1;
    transition: opacity 0.3s; /* Transición suave */
}

.project #Project-Img {
    width: 100%;
    height: auto;
    /*border-radius: 10px;*/
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.project:hover #Project-Img {
    border-top: 1px transparent;
    border-bottom: 1px transparent;
}

.project:hover #Project-Name{
    opacity: 0;
}

.project .description {
    position: absolute; /* Posiciona la capa de descripción */
    bottom: 0; /* Alinea la capa de descripción al fondo del proyecto */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
    border-radius: 10px;
    opacity: 0; /* Oculta la capa de descripción inicialmente */
    transition: opacity 0.3s; /* Transición suave */
    padding: 20px;
    box-sizing: border-box;
    color: #1CB698;
}

.project:hover .description {
    opacity: 1; /* Muestra la capa de descripción al pasar el mouse sobre el proyecto */
}

.project .links {
    position: absolute; /* Posiciona los botones circulares */
    bottom: 20px; /* Ajusta la posición vertical de los botones */
    left: 50%; /* Ajusta la posición horizontal de los botones */
    transform: translateX(-50%); /* Centra los botones horizontalmente */
    visibility: hidden; /* Oculta los botones inicialmente */
    /*transition: visibility 0.3s; /* Transición suave */
}

.project:hover .links {
    visibility: visible; /* Muestra los botones al pasar el mouse sobre el proyecto */
}

/* Estilos para los botones circulares */
.circular-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1CB698;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

/* Estilos específicos para el ícono de GitHub */
.circular-button.github {
    background-color: #24292e; /* Color de fondo de GitHub */
}

.circular-button:hover {
    background-color: #178a6b;
}

/* Estilos para los enlaces */
.links {
    visibility: hidden;
    display: flex;
    margin-top: 10px;
    width: 50%;
    justify-content: space-between;
}

/* Estilos para los enlaces dentro de los botones circulares */
.links a {
    display: inline-block;
    text-decoration: none;
    font-size: 24px;
    color: #fff;
}

.project p {
    margin-top: 0;
    margin-bottom: 0;
}

.project .slider {
    width: 100%;
    overflow: hidden;
    opacity: 1;
}

.project:hover .slider {
    opacity: 0;
}

.project .slide-track {
    display: flex;
    width: 100%;
}

.project .skill {
    transition: width 2s, margin-left 2s, margin-right 2s;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    width: 120px;
    margin-left: 0;
    margin-right: 5px;
    margin-top: 5px;
    border-radius: 5px;
}
  
.project .skill img {
    width: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.project .skill span {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.contact-section {
    justify-content: center; /* Centra horizontalmente */
    background-image: url('img/contact_bg.png'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    display: flex;
    height: 100vh; /* Ajusta la altura al 100% del viewport */
    margin-top: 0;
}

.contact-section form .form-content{
    display: flex;
    flex-direction: row;
    height: 80%;
}

.contact-section .inputs {
    height: 100%;
    margin-right: 10%;
}

.contact-section .inputs #name {
    margin-top: 0;
}

.contact-section .inputs #phone {
    margin: 15% 0;
}

.contact-section .inputs #mail {
    margin: 15% 0;
}

.contact-section .inputs #subject {
    margin-bottom: 0;
}

.contact-section input,
.contact-section textarea {
    display: block;
    padding: 18px;
    border: none;
    background-color: #252A2E;
    color: #fff;
    font-size: 18px;
}

.contact-section input {
    width: 80%;
}

.contact-section textarea {
    width: 80%;
    height: auto;
    resize: none;
}

.contact-section 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;
}
.contact-section button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1CB698;
    z-index: -1;
    transition: 1s;
}
.contact-section button:hover .overlay{
    width: 100%;
}

footer {
    z-index: 999;
    margin-top: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1e2326);
    color: #1CB698;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Righteous', sans-serif;
    width: 100%;
    position: fixed;
    bottom: 0;
}

.footer-left {
    margin-left: 10px;
    display: flex;
    flex-direction: row;
}

#divisor {
    white-space: pre-wrap;
}

.footer-right {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.footer-right .skill {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    width: 120px;
    margin: 5px;
    border-radius: 5px;
}

.footer-right .skill img {
    width: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.footer-right .skill span {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

/* Media Query para dispositivos móviles */
@media only screen and (max-width:500px){
    .tab-content .work {
        flex-direction: column;
    }
    .tab-content #divisor {
        display: none;
    }
}
@media only screen and (max-width:700px){
    .profile-tab img {
        max-width: 60%;
    }
    .tab-content h1 {
        font-size: 2em;
    }
    .tab-content p {
        font-size: 1em;
    }
    .social-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 24px;
    }
    .profile-tab
    .sobre-mi p {
        font-size: 1em;
    }
    .project p {
        font-size: 0.8em;
    }
    .footer-left {
        flex-direction: column;
    }
    .footer-left p{
        margin: 0;
    }
    .footer-left #divisor {
        display: none;
    }
    .footer-right .skill {
        width: 100%;
    }
    .footer-right .skill img {
        margin: auto;
    }
    .footer-right .skill span {
        display: none;
    }
}
@media only screen and (max-width:1200px){
    /* Aquí van tus estilos para pantallas de hasta 1000px */
    .mobile-header {
        display: flex;
        z-index: 999;
    }
    .project {
        min-width: 60vw;
        max-width: 70vw;
    }
    .footer-right {
        margin-right: 0;
    }
    .profile-section {
        max-width: 40%;
    }
    .profile-container {
        display: none;
    }
    footer,
    .welcome-section,
    .container,
    .sobre-mi-section,
    .profile-section,
    .contact-section {
        max-width: 100vw;
    }
    .sobre-mi-section .sobre-mi,
    .projects-section .projects,
    .contact-section form {
        margin-left: 1vw;
        margin-right: 1vw;
        text-align: center;
    }
    .sobre-mi-section h2,
    .projects-section h2,
    .contact-section h2 {
        margin-left: 0;
    }
}
@media only screen and (max-width:1200px) and (orientation: landscape) {
    .profile-tab {
        height: 80%;
    }
    .profile-tab img {
        max-width: 30%;
    }    
    .tab-content h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    .tab-content p {
        font-size: 1em;
        margin: 0;
    }
    .social-buttons {
        margin-top: 10px;
    }
    .social-button {
        width: 1.8em;
        height: 1.8em;
        margin: 0 10px;
        font-size: 1.2em;
    }
    .contact-section form .form-content{
        height: 50%;
    }
    .contact-section input {
        padding: 10px;
    }
    .contact-section .inputs #name {
        margin-top: 0;
    }
    .contact-section .inputs #phone {
        margin: 5% 0;
    }
    .contact-section .inputs #mail {
        margin: 5% 0;
    }
    .contact-section .inputs #subject {
        margin-bottom: 0;
    }
    .contact-section button{
        margin: 0.5em auto;
    }
}
@media only screen and (max-width:1500px){
    .sobre-mi p {
        font-size: 1em;
    }
    .project {
        max-width: 40vw;
    }
    .project p {
        font-size: 0.8em;
    }
}