/* Tipografía mejorada y fondo */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #1b1f2a, #2a2f3d);
  color: #f1f1f1;
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(27, 31, 42, 0.95);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.navbar-left {
  font-weight: 700;
  font-size: 1.5rem;
  color: #f1f1f1;
  margin-left: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.navbar-right {
  display: flex;
  gap: 2.5rem;
  margin-right: 4rem;
}

.navbar-right a {
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  position: relative;
}

/* Efecto hover profesional con subrayado animado */
.navbar-right a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4da8da;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
  transform-origin: right;
}

.navbar-right a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.navbar-right a:hover {
  color: #4da8da;
}

/* Hero */
.hero {
  margin-bottom: 200px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.hero-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.5s;
  margin-bottom: 1.5rem;
  margin-top: 7rem;
}

.hero-img:hover {
  transform: scale(1.1);
}

.hero-title {
  font-size: 3rem;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 3rem;
}

.hero-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6rem;
}

.hero-social a {
  color: #f1f1f1;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero-social a:hover::before {
  left: 100%;
}

.hero-social a:hover {
  color: #4da8da;
  transform: translateY(-2px);
  background: rgba(77, 168, 218, 0.1);
}

.hero-social span {
  font-size: 0.9rem;
  color: #ccc;
}

/* Secciones */
.section {
  padding: 6rem 2rem;
  text-align: center;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #4da8da;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.about-details {
  font-size: 1.1rem;
  color: #d0d0d0;
  line-height: 1.7;
}

.about-details p {
  margin: 1rem 0;
}


/* Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2.5rem;
  width: 350px;
  transition: all 0.5s;
  opacity: 0;
  transform: translateY(50px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.card h5 {
  color: #4da8da;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  text-align: center;
}

/* Estilos específicos para Soft Skills */
.card-icon {
  font-size: 2.8rem;
  color: #4da8da;
  margin-bottom: 1.8rem;
  display: block;
  text-align: center;
}

.skill-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.skill-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-details li {
  color: #ccc;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
  text-align: left;
  line-height: 1.5;
}

.skill-details li::before {
  content: "•";
  color: #4da8da;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4da8da, transparent);
}

/* Tecnologías */
.tech-section {
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.15), rgba(41, 128, 185, 0.15));
  padding: 5rem 2rem;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4da8da, transparent);
}

.tech-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
}

.tech-icons img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  background: linear-gradient(135deg, #3a4152, #2a2f3d);
  border-radius: 15px;
  padding: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icons img:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 15px 30px rgba(77, 168, 218, 0.4);
  background: linear-gradient(135deg, #4da8da, #0077b6);
  filter: brightness(1.1);
}

.tech-name {
  color: #f1f1f1;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.tech-item:hover .tech-name {
  opacity: 1;
  color: #4da8da;
}

/*Proyecto*/
.project-card img {
  width: 100%;
  max-height: 200px; /* Ajusta según prefieras */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}
/* Botones */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  border: 2px solid #4da8da;
  color: #4da8da;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: #4da8da;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(77, 168, 218, 0.4);
}

/* Contacto Mejorado */
.contact-section {
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.08), rgba(41, 128, 185, 0.08));
  padding: 6rem 2rem;
  border-radius: 25px;
  margin: 3rem auto;
  max-width: 1200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4da8da, #5dc1e5, #4da8da);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #4da8da;
  font-weight: 700;
}

/*CONTACTO*/
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4da8da, #5dc1e5, #4da8da);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #4da8da;
  font-weight: 700;
}

.contact-info>p {
  color: #ccc;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.contact-methods {
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(77, 168, 218, 0.2);
  transform: translateY(-3px);
}

.contact-method i {
  font-size: 1.6rem;
  color: #4da8da;
  width: 40px;
  text-align: center;
  margin-top: 0.2rem;
}

.contact-method h4 {
  margin: 0 0 0.5rem 0;
  color: #f1f1f1;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-method a,
.contact-method p {
  margin: 0;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contact-method a:hover {
  color: #4da8da;
}

.social-links {
  margin-top: 2.5rem;
}

.social-links p {
  color: #ccc;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f1f1f1;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.contact-link:hover {
  color: #4da8da;
  transform: translateY(-3px);
  background: rgba(77, 168, 218, 0.1);
  border-color: rgba(77, 168, 218, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Formulario de Contacto */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);

}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #4da8da;
  font-weight: 700;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #f1f1f1;
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f1f1;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4da8da;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #4da8da, #5dc1e5);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #5dc1e5, #4da8da);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(77, 168, 218, 0.4);
}

/* Responsive */
/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 25px;
  background-color: #4da8da;
  /* azul de tu paleta */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mostrar menú hamburguesa en móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    z-index: 999;
    border-top: 1px solid rgba(77, 168, 218, 0.5);
  }

  .navbar-right.show {
    display: flex;
  }

  .navbar-right a {
    padding: 1rem;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(77, 168, 218, 0.2);
  }
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 1200px) {
  .navbar-right {
    margin-right: 3rem;
    gap: 2rem;
  }

  .contact-container {
    gap: 4rem;
  }
}

@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-method {
    justify-content: center;
    text-align: left;
  }

  .contact-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-left {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .navbar-right {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-right: 0;
    width: 100%;
  }

  .navbar-right a {
    padding: 0.8rem 1rem;
    text-align: center;
  }

  .tech-icons {
    gap: 2.5rem;
  }

  .tech-icons img {
    width: 70px;
    height: 70px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .card {
    width: 100%;
    max-width: 320px;
    padding: 2rem 1.8rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .contact-form {
    padding: 2.5rem 2rem;
  }

  .contact-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-right {
    gap: 0.8rem;
  }

  .tech-icons {
    gap: 2rem;
  }

  .tech-icons img {
    width: 60px;
    height: 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    width: 100%;
    max-width: 280px;
    padding: 1.8rem 1.5rem;
  }

  .hero-img {
    width: 140px;
    height: 140px;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .contact-method i {
    margin-top: 0;
  }
}