* {
  /*body*/
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  justify-content: center;
  scroll-behavior: smooth;
}

header {
  background-color: black;
  border-radius: 28px;
  width: 85%;
  margin: 0 auto;
}

nav {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  width: 100%;
}

nav ul {
  display: flex;
  gap: 3.5rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-center a {
  background-color: #10b981;
  padding: 22px;
  border-radius: 20px;
}

nav a:hover {
  color: #10b981;
}

.hero {
  display: flex;
  flex-wrap: wrap; /* sin espacio, mueve a la siguiente linea */
  max-width: 1200px;
  align-items: center;
  gap: 10px;
  margin-top: 5%;
  padding: 0px 100px;
}

.texto {
  flex: 1;
}
.texto p {
  margin-top: 15px;
}

div h2 {
  margin-top: 30px;
}
p {
  line-height: 1.6;
  font-size: 1.1rem;
}
.badge {
  background-color: #10b9812c;
  color: #10b981;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 52px;
  color: #10b981;
}

.nav-center a:hover {
  color: #10b981;
  background-color: #ffffff; /* Ejemplo de cambio de fondo */
  transform: translateY(-2px); /* Ejemplo de movimiento */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ejemplo de sombra */
  border: double #10b981;
}

li.nav-center:hover {
  animation: tilt-shaking 0.15s infinite;
}

/* seccion redes sociales */
.social-links {
  margin-top: 10%;
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #10b9812c;
  color: #10b981;
  text-decoration: none;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s all ease;
}

.social-btn:hover {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.4);
  transform: translateY(-5px);
}

/* Contenedor Principal sobre mi*/
.about-section {
  display: flex;
  padding: 70px 70px;
  margin-top: 70px;
  background-color: #10b9812c;
  color: #162c21;
  gap: 20px;
}
.content-text {
  margin: 0;
}

.content-text h2 {
  font-size: 2.2rem;
  margin-top: 0%;
  margin-bottom: 15px;
}

.hero-img {
  margin-right: 20px;
}
.hero-img img {
  width: 110%;
  border-radius: 20px;
  transition: 0.3s;
}
.hero-img:hover {
  transform: scale(1.02);
}

@keyframes tilt-shaking {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0eg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.menu-toggle {
  display: none;
}

/* --- Contenedor principal de tecnologias --- */
.slider-viewport {
  width: 100%;
  overflow: hidden;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  cursor: grab;
  user-select: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

.slider-viewport:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  gap: 40px; /* Espacio entre iconos */
  width: max-content;
  will-change: transform;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px; /* Ancho fijo para cálculos exactos */
  flex-shrink: 0;
}

.item img {
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
  pointer-events: none;
}
.item span {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}

.proyecto {
  background-color: white;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 70px;
}

/* --- SERVICIOS CON IMÁGENES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #10b9812c;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: #10b981;
  transform: translateY(-10px);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #10b981;
}

.service-info {
  padding: 25px;
}
.service-info h3 {
  margin-bottom: 10px;
  color: #162c21;
}
.service-info ul {
  list-style: none;
  font-size: 1.1rem;
  color: #162c21;
  line-height: 1.3;
}
.service-info li {
  margin-bottom: 5px;
}
.service-info li::before {
  content: "• ";
  color: #162c21;
}

/*---formacion academica---*/
.formacion-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 30px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  color: #162c21;
  font-size: 2.2rem;
}

.section-title::after {
  content: "";
  width: 50px;
  height: 4px;
  background: #10b981;
  display: block;
  margin: 10px auto;
}

.edu-item {
  background: #10b9812c;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #10b981;
  border-radius: 0 8px 8px 0;
  color: #162c21;
}

.edu-item p {
  margin-top: 8px;
}

.tag {
  display: inline-block;
  background: #10b9812c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 10px;
}

/* FORMULARIO DE CONTACTO */
.contact-container {
  background-color: #10b9812c;
  padding: 70px 220px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 1.1rem;
  color: #162c21;
  font-weight: 600;
}

.input-group input,
.input-group textarea {
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px;
  color: #162c21;
  outline: none;
  font-size: 1rem;
  
    resize: none; /* Esto quita el tirador de la esquina y bloquea el tamaño */
    overflow: auto; /* Permite que aparezca una barra de scroll si el texto es muy largo */

}

.input-group input:focus {
  border-color: #10b981;
}

.btn-submit {
  background-color: #10b981;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 16px;
  width: 45px;
  height: 45px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 1000;
}

footer {
  margin-top: 0;
  background-color: #10b981;
  text-align: center;
  padding: 18px;
}
.log1 {
  color: #162c21;
  font-size: 1rem;
}

.log2 {
  color: #162c21;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap; /* 👈 el nav se acomoda */
    padding: 0;
    margin: 7px 0px 0px;
    text-align: center;
  
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    display: none;
  }

  .nav-center a {
    background-color: transparent;
    text-decoration: none;
  }

  .menu.active {
    display: flex;
  }

  .menu {
    margin: 0;
    padding: 0;
    gap: 30px;
  }

  li.nav-center:hover {
    animation: tilt-shaking 1.5s;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
  }

  .hero {
    margin: 0px 35px;
    gap: 28px;
    padding: 0;
  }
  .texto {
    color: #162c21;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .texto h1 {
    font-size: 3rem;
  }

  .texto p {
    margin-top: 6px;
  }

  .social-links {
    justify-content: center;
  }

  .content-text h2 {
    margin-top: 10%;
  }

  .about-section {
    flex-direction: column;
    padding: 0px 30px; /*espacio de margen*/
  }

  .content-text {
    text-align: center;
  }

  .proyecto h2 {
    text-align: center;
  }

  .hero-img {
    margin: 0;
  }
  .hero-img img {
    width: 100%;
    margin: 10px 0px 38px;
  }

  /*---formacion academica---*/


  .contact-container {
  padding: 32px;
  
}
}
