* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Lato", sans-serif;
  background: #f7f7f7;
  color: #111;
  height: 100%;
  overflow-x: hidden;
}
html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header {
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eee;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: #111;
  padding: 14px 0;
  display: inline-block;
}
.menu a {
  color: #111;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}
.testimonios {
  margin-top: 3rem;
}

.testimonios h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0b1a2b;
  text-align: center;
}

.testimonios input {
  display: none;
}

.carrusel-css {
  display: flex;
  width: 200%;
  transition: transform 0.5s ease;
  justify-content: space-around;
}

.grupo {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem;
  margin-left: 18rem;
  margin-right: 18rem;
  transition: transform 0.6s ease;
}
.grupo article:hover img {
  transform: scale(1.03);
}
.grupo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.grupo article {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 1.3rem;
  max-width: 380px;
  width: fit-content;
}
.grupo a {
  text-decoration: none;
  color: black;
}

.grupo p {
  font-size: 1rem;
  line-height: 1.4;
}
.grupo .nombre {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

#s1:checked ~ .carrusel-css {
  transform: translateX(0%);
}
#s2:checked ~ .carrusel-css {
  transform: translateX(-50%);
}

.controles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.controles label {
  background: #0b1a2b;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 2rem;
  cursor: pointer;
}
.footer {
  background: #111;
  color: #fff;
  padding: 32px 0;
  margin-top: 28px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}
.footer-container a {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 600px) {
  .menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
  }
  .menu a {
    margin: 0;
    padding: 8px;
    font-weight: 500;
    color: #111;
    display: block;
  }
  .menu.activo {
    display: flex;
  }
  .container {
    padding: 0 12px;
  }
  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
/* ------------------- TABLET (max-width: 768px) ------------------- */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
  }

  .menu a {
    margin: 0;
    padding: 8px;
    font-weight: 500;
    color: #111;
    display: block;
  }

  .menu.activo {
    display: flex;
  }
}

/* ------------------- DESKTOP MEDIO (max-width: 1024px) ------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .testimonios {
    width: 95%;
  }
}
