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

body {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header/Navegación */
header {
  background: linear-gradient(90deg, #0e3b3b, #032c58); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #fff;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar .logo:hover {
  color: #ffcc00; 
  transform: scale(1.1); 
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00; /* Cambia a dorado en hover */
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #063d44, #2196f3);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #ffeb3b;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero .btn {
  background-color: #fff;
  color: #2196f3;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.hero .btn:hover {
  background-color: #2196f3;
  color: #fff;
}

/* About Section */
.about {
  background-color: #efefef;
  padding: 50px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.about-text {
  flex: 1 1 60%;
  max-width: 600px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.about-text strong {
  color: #007bff; 
}

.about-image {
  flex: 1 1 40%; 
  text-align: center;
}

.profile-pic {
  max-width: 400px;
  width: 400px;
  height: auto;
  border-radius: 50%; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05); 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}

.about p {
  margin-bottom: 15px;
}

.text-content p:first-of-type {
  font-size: 1.1rem;
  font-weight: bold;
  color: #444;
}

.text-content p:last-of-type {
  margin-top: 10px;
  font-style: italic;
}

/* Skills Section */
.skills {
  background-color: #f4f4f4;
  padding: 50px 0;
}

.skills h2 {
  text-align: center;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.skill-item {
  background: #2196f3;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.projects {
  background: linear-gradient(to right, #063d44, #2196f3);
  padding: 50px 20px;
}

.projects h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 2rem;
}

/* Card contenedor */
.project-card {
  max-width: 950px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card {
  flex: 1 1 calc(30% - 20px); 
  max-width: 950px;
}

.project-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.project-card h3 {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-card a {
  display: inline-block;
  padding: 10px 15px;
  font-size: 0.9rem;
  color: #fff;
  background-color: #007bff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-card a:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.projects .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}


/* Experience Section */
.experience {
  background: #ffffff;
  padding: 60px 20px;
}

.experience h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #007bff;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-icon {
  background: #007bff;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin: 0 20px;
}

.timeline-item .timeline-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  width: calc(50% - 80px);
}

.timeline-item .timeline-content h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #333;
}

.timeline-item .timeline-content span {
  display: block;
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.timeline-item .timeline-content ul {
  padding: 0;
  list-style: disc;
  margin-left: 20px;
}

.timeline-item .timeline-content ul li {
  margin-bottom: 5px;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }

  .timeline-item .timeline-content {
    width: 100%;
  }

  .timeline::before {
    left: 20px;
    transform: translateX(0);
  }

  .timeline-item .timeline-icon {
    margin: 0 auto 20px;
  }
}


/* Contact Section */
.contact {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.contact p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-item {
  flex: 1 1 calc(25% - 20px); 
  height: 55px;
  max-width: 500px;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item i {
  font-size: 25px;
  color: #007bff;
  margin-bottom: 10px;
}

.contact-item a {
  font-size: 15px;
  text-decoration: none;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-item a:hover {
  color: #0056b3;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #0e3b3b, #032c58);
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

footer p {
  font-size: 0.9rem;
}

.skills-grid .skill-item i {
    font-size: 25px;
  }

  .skills-grid .skill-item:nth-child(1) i {
      color: #e44d26; 
    }
  
  .skills-grid .skill-item:nth-child(2) i {
    color: #2965f1; 
  }
  
  .skills-grid .skill-item:nth-child(3) i {
    color: #f0db4f; 
  }
  
  .skills-grid .skill-item:nth-child(4) i {
    color: #dd0031; 
  }
  
  .skills-grid .skill-item:nth-child(5) i {
    color: #61dafb; 
  }
  
  .skills-grid .skill-item:nth-child(6) i {
    color: #8cc84b; 
  }
  
  .skills-grid .skill-item:nth-child(7) i {
    color: #5968ab; 
  }
  
  .skills-grid .skill-item:nth-child(8) i {
    color: #00618d; 
  }
  
  .skills-grid .skill-item:nth-child(9) i {
    color: #333; 
  }

  .skills-grid .skill-item:nth-child(10) i {
    color: #941bb9; 
  }

  .contact-grid .contact-item:nth-child(1) i {
    color: #eb7e26
  }

  .contact-grid .contact-item:nth-child(2) i {
    color: #000000
  }

  .contact-grid .contact-item:nth-child(3) i {
    color: #124eda
  }

  .contact-grid .contact-item:nth-child(4) i {
    color: #333
  }


