body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
    color: white;
}
html {
    scroll-behavior: smooth;
}

@keyframes latir {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.latido {
    display: inline-block;
    animation: latir 1.5s infinite ease-in-out;
}


.cv-button {
    display: inline-block;
    background: linear-gradient(135deg, #1f80e0, #d92b2b);
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #1f80e0;
    transition: background 0.3s, transform 0.2s;
}

.cv-button:hover {
    background: linear-gradient(135deg, #d92b2b, #1f80e0);
    transform: scale(1.05);
}

/*sobre mi*/
.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .about-text {
    flex: 1;
    min-width: 300px;
    text-align: justify;
  }

  .hola{
    text-align: center;
  }
  
  .about-text ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
  }
  
  .about-text ul li {
    margin-bottom: 10px;
    font-size: 1em;
  }
  
  .about-image {
    flex: 1;
    text-align: center;
  }
  
  .about-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .profile-photo {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.profile-photo:hover {
    transform: scale(1.05);
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.profile-photo {
    animation: fadeIn 0.5s ease-in-out;
}


  .skills-list {
    list-style: none;
    padding-left: 20px;
    margin: 20px 0;
    border-left: 3px solid #1f80e0;
    margin-left: 200px;
  }
  .skills-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Sección Hero */
.hero {
    position: relative;
    background-image: url('img/fondo-hero.jpg'); 
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 10px 20px;
    color: white;
    border: 2px solid #1f80e0;
    border-radius: 10px;
    margin: 85px;
    overflow: hidden; 
}


.Libertad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.3; 
    z-index: 1; 
    border-radius: inherit; 
}

/* Contenido dentro del Hero */
.hero-content {
    position: relative;
    z-index: 2; 
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
}

/* Imagen Pricipal*/
.profile-pic {
    width: 600px;
    height: 350px;
    border-radius: 2%;
    margin-bottom: 10px;
    position: relative;
    z-index: 3; 
}

/* Estilos de los textos */
.hero h1 {
    font-size: 3em;
    margin: 10px 0;
}

.hero h2 {
    font-size: 1.5em;
    font-weight: bold;
}


/*Barra de Navegación con Animación */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid #1f80e0;
    transition: background 0.3s ease-in-out;
}

/*Lista de navegación */
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/*Elementos de la lista */
.navbar ul li {
    display: inline;
    margin: 0 15px;
}

/*Enlaces con animación */
.navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border: 2px solid #1f80e0;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

/*Efecto al pasar el cursor */
.navbar ul li a:hover {
    background: #1f80e0; 
    color: #fff;
    transform: scale(1.1); 
    box-shadow: 0 0 10px #1f80e0;
}

/* Botón de descarga del CV animado */
.cv-button {
    position: relative;
    padding-right: 35px;
    transition: transform 0.2s;
}

.cv-button:hover {
    transform: scale(1.1);
}

.cv-button::after {
    content: "⬇️";
    position: absolute;
    right: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Secciones generales */
.section {
    padding: 50px 20px;
    text-align: center;
    border: 2px solid #1f80e0;
    border-radius: 10px;
    margin: 100px auto;
    background: rgba(255, 255, 255, 0.05);
    width: 70%;
}

/* Skills */
.skill {
    margin: 10px 0;
}

.skill-bar {
    width: 80%;
    background-color: #222;
    height: 25px;
    margin: 10px auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #1f80e0;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f80e0, #d92b2b);
    width: 0%;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-bar[data-percent="100"] .skill-fill {
    width: 100%;
}

.skill-bar[data-percent="90"] .skill-fill {
    width: 90%;
}

.skill-bar[data-percent="80"] .skill-fill {
    width: 80%;
}

.skill-bar[data-percent="70"] .skill-fill {
    width: 70%;
}

.skill-bar[data-percent="60"] .skill-fill {
    width: 60%;
}

.skill-bar[data-percent="40"] .skill-fill {
    width: 40%;
}

.skill-bar[data-percent="50"] .skill-fill {
    width: 50%;
}

/* 🔹 ESTILO PARA EL NÚMERO DEL PORCENTAJE */
.skill-percent {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}


/* Contacto */
.contact-form {
    border: 2px solid #1f80e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.7);
    width: 80%;
}

.contact-form input,

.contact-form textarea {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: white;
}

.contact-form button {
    background: linear-gradient(135deg, #1f80e0, #d92b2b);
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.contact-info p {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    border-radius: 50%;
    font-size: 24px;
    background: #222;
    color: white;
    transition: 0.3s;
    text-decoration: none;
    margin-top: 50px;
}

.social-icons a:hover {
    background: #1f80e0;
    transform: scale(1.2);
}


/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #000;
    margin-top: 50px;
    font-size: 0.9em;
    color: #bbb;
    border-top: 2px solid #1f80e0;
}

.footer p {
    margin: 0;
}

.projects-section {
    text-align: center;
    padding: 50px 20px;
    background: #111;
    color: white;
}

/*cuadros de las*/
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: #222;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    display: flex;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95em;
    color: #ccc;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: #1f80e0;
    text-decoration: none;
    font-weight: bold;
}

/* Estilo para el botón Ver Más */
#btnVerMas {
    grid-column: 1 / -1;
    padding: 12px 25px;
    background-color: #1f80e0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btnVerMas:hover {
    background-color: #0d5fab;
}

.more-projects {
    display: none;
    grid-column: 1 / -1;
    margin-top: 20px;
    gap: 20px;
}

#btnVerMenos {
    grid-column: 1 / -1;
    padding: 12px 25px;
    background-color: #e01f1f;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none;
}

#btnVerMenos:hover {
    background-color: #a11212;
}

/* Copyright */
.footer .copyright {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}