/* Estilos generales */
body {
    font-family: 'Consolas', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-image: url(fundo.png);
    background-repeat: no-repeat;
background-size: cover;

    color: #fff;
}
.lead{ 
    margin-top: 35px;
    text-align: left;
}
.container {
    padding: 5px;
}

header {
background-color: black;
    padding: 2px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #eec120;
}

section {
    padding: 50px 0;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

ul {
    list-style-type: none;
    padding: 0;
}

form {
    max-width: 600px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #111;
    color: #fff;
}

button[type="submit"] {
    background-color: #00f;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #f00;
}

footer {

    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: end;
    width: 100%;
    bottom: 0;
}
.habilidades {
    display: flex;
    flex-direction: column;
}

.habilidad {
    margin-bottom: 20px;
}

.barra2 {
    background-color: #ddd;
    height: 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.nivel {
    height: 100%;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    animation-fill-mode: forwards; /* Mantener el último estado de la animación */
}

.nivel-html {
    background-color: #007ACC;
    animation: llenar-html 2s ease-out forwards;
}

.nivel-css {
    background-color: #00BFFF;
    animation: llenar-css 1.6s ease-out forwards;
}

.nivel-js {
    background-color: #FF6347;
    animation: llenar-js 1.5s ease-out forwards;
}

.nivel-sql {
    background-color: #eec120;
    animation: llenar-sql 1.6s ease-out forwards;
}

.nivel-php {
    background-color: green;
    animation: llenar-php 1.7s ease-out forwards;
}

@keyframes llenar-html {
    to {
        width: 95%; /* Porcentaje especificado para HTML */
    }
}

@keyframes llenar-css {
    to {
        width: 80%; /* Porcentaje especificado para CSS */
    }
}

@keyframes llenar-js {
    to {
        width: 75%; /* Porcentaje especificado para JavaScript */
    }
}

@keyframes llenar-sql {
    to {
        width: 80%; /* Porcentaje especificado para SQL */
    }
}

@keyframes llenar-php {
    to {
        width: 85%; /* Porcentaje especificado para PHP */
    }
}


#contacto {

    color: white;
}

#contacto h2 {
    margin-bottom: 30px;
}

#contacto form {
    max-width: 600px;
    margin: 0 auto;
}

#contacto .form-group {
    margin-bottom: 20px;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contacto button[type="submit"] {
    background-color: #007ACC;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contacto button[type="submit"]:hover {
    background-color: #005C8B;
}
.redes-sociales {
    text-align: center;
}

.redes-sociales a {
    display: inline-block;
    font-size: 24px;
    margin: 0 10px;
    color: #fff;
    transition: transform 0.3s ease;
}

.redes-sociales a:hover {
    transform: translateY(-5px);
}
/* Estilo básico para las secciones */
section {
    padding: 80px 0;
    text-align: center;
    opacity: 0; /* Inicialmente ocultas */
    transform: translateY(20px); /* Desplazamiento hacia abajo */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Transiciones suaves */
}

/* Animación de entrada cuando la sección se hace visible */
section.animate-in {
    opacity: 1;
    transform: translateY(0);
}
body::-webkit-scrollbar{
    background-color: black;
    width: 15px;
  }
  body::-webkit-scrollbar-thumb{
    background-color: white;
  }
  body::-webkit-scrollbar-thumb:hover{
    background-color: white;
  }



  
  .barra-horizontal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.experiencia {
    width: 30%; /* Ajusta el ancho de cada experiencia */
    text-align: center;
}

.periodo {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.descripcion {
    font-style: italic;
}
@media (max-width: 768px) {
    .barra-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .experiencia {
        width: 100%;
        margin-bottom: 20px;
    }
}