* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}
body {
  background: #0f0f0f;
  overflow-x: hidden;
}
section {
  padding: 100px 10%;
  position: relative;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

header h2 {
  font-size: 1.5rem;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #0af;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    background: #1b1b1b;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    display: none;
    border-radius: 8px;
  }

  .nav-links a {
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(120deg, #1e1e1e, #111);
}
.hero h1 {
  font-size: 4rem;
  animation: fadeIn 2s ease;
}
.hero p {
  opacity: 0;
  animation: fadeUp 2s ease 1s forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  padding: 25px;
  border-radius: 15px;
  background: #1b1b1b;
  transition: 0.3s;
  box-shadow: 0 0 0 transparent;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.timeline {
  position: relative;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #444;
  transform: translateX(-50%);
}
.item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.item:nth-child(even) {
  left: 50%;
}
.item span {
  font-weight: 800;
  font-size: 1.2rem;
  color: #0af;
  display: block;
  margin-bottom: 10px;
}
.empresa-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  justify-content: flex-start;
}
.item:nth-child(even) .empresa-logo {
  justify-content: flex-start;
}
.item:nth-child(odd) .empresa-logo {
  justify-content: flex-end;
}
.empresa-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 5px;
}
.item p {
  margin-top: 10px;
  line-height: 1.5;
}
.cargo {
  font-weight: 800;
  color: #0af;
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.swiper {
  width: 100%;
  padding: 20px 0;
}
.swiper-slide {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.swiper-slide img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
  color: #0af;
}
.formacion-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: auto;
}
.formacion-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1b1b1b;
  padding: 15px;
  border-radius: 12px;
}
.formacion-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}
.formacion-item .info {
  display: flex;
  flex-direction: column;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}
.social-links a img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: 0.3s;
}
.social-links a img:hover {
  transform: scale(1.2);
}
#sobre-mi .content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
#sobre-mi img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0af;
}
#sobre-mi .info {
  max-width: 600px;
  text-align: left;
}
#sobre-mi .info h3 {
  font-size: 2rem;
  color: #0af;
  margin-bottom: 15px;
}
#sobre-mi .info p {
  font-size: 1.2rem;
  line-height: 1.6;
}
footer {
  text-align: center;
  padding: 40px;
  background: #111;
  margin-top: 50px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px;
    padding-right: 20px;
    margin-bottom: 30px;
  }
  .item .empresa-logo {
    justify-content: flex-start !important;
  }
}

.swiper-slide a {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

.swiper-slide img {
  cursor: pointer;
}
.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4;
}

.swiper-pagination-bullet-active {
  background: #00aaff !important;
  opacity: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  .hero p {
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}
#servicios .card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4rem;
}

#servicios ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4rem;
}

#servicios li {
  margin-bottom: 6px;
}

#servicios .card lottie-player {
  width: 100%;
  height: 200px;
  max-width: 250px;
  margin: 0 auto 15px auto;
  display: block;
}
