/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hero img {
  width: 100%;
  max-height: 300px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

/* Body y fuentes */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

/* Encabezado */
header {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid #ddd;
  background: #fffbe6;
}

header img {
  height: 60px;
  margin-right: 15px;
}

header h1 {
  color: #0a74da; /* azul profesional */
  font-size: 2rem;
  margin-right: auto;
}

nav button {
  background-color: #0a74da;
  color: white;
  border: none;
  padding: 8px 14px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

nav button:hover {
  background-color: #064d9c;
}

/* Navbar styles for a professional look */
.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  padding: 0.5rem 2rem;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  margin-bottom: 1.5rem;
  position: static;
  top: auto;
  z-index: auto;
}
.nav-link {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: #ffe066;
  color: #b8860b;
}
.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}
.lang-btn {
  background: #ffe066;
  border: none;
  color: #b8860b;
  font-weight: bold;
  padding: 0.2rem 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover {
  background: #ffd700;
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .lang-switch {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* Secciones principales */
main section {
  margin-top: 30px;
}

main h2, main h3 {
  color: #0a74da;
  margin-bottom: 15px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}
  
section ul li a {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #0a74da;
}

/* Enlaces */
a {
  color: #0a74da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

  /*Testimonios 3*/
#testimonials {
  margin-top: 40px;
  background-color: #f5f9ff;
  padding: 30px;
  border-radius: 12px;
}

#testimonials-title {
  font-size: 1.8rem;
  color: #0a74da;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 5px solid #0a74da;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.testimonial span {
  font-weight: bold;
  color: #666;
}

  
/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
}

/* Agrupación de servicios en recuadros responsivos y atractivos */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 18px;
}
.service-card {
  background: #f5f9ff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10,116,218,0.07);
  padding: 22px 18px 16px 18px;
  width: 220px;
  min-width: 180px;
  max-width: 95vw;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #e0e7ef;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 18px rgba(10,116,218,0.13);
  background: #eaf4ff;
}
.service-card h3 {
  margin-bottom: 10px;
  color: #0a74da;
  font-size: 1.18rem;
}
.service-card p {
  font-size: 1rem;
  color: #333;
}
@media (max-width: 900px) {
  .services-grid {
    gap: 14px;
  }
  .service-card {
    width: 46vw;
    min-width: 140px;
    padding: 14px 6px 10px 6px;
  }
}
@media (max-width: 600px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .service-card {
    width: 98vw;
    min-width: 0;
    padding: 10px 4px 8px 4px;
  }
}

/* Formulario registro bonito */
.registro-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.registro-form {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px #0001;
  padding: 32px 28px;
  min-width: 320px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.registro-form h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
  color: #1a237e;
}
.registro-form p {
  margin-top: 0;
  color: #444;
  font-size: 1rem;
}
.registro-form input {
  border-radius: 18px;
  border: 1.5px solid #e0e0e0;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 2px;
}
.registro-form input:focus {
  border: 1.5px solid #1a237e;
  background: #f5f7fa;
}
.registro-form button {
  border-radius: 18px;
  background: #ffb300;
  color: #222;
  border: none;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.registro-form button:hover {
  background: #ffa000;
}
.registro-img img {
  max-width: 320px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0002;
}
@media (max-width: 900px) {
  .registro-flex { flex-direction: column; gap: 24px; }
  .registro-img img { max-width: 220px; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  body {
    max-width: 100vw;
    padding: 8px;
  }
  main {
    padding: 8px 1vw;
  }
}
@media (max-width: 900px) {
  body {
    max-width: 100vw;
    padding: 4px;
  }
  main {
    padding: 4px 1vw;
  }
  .hero img {
    max-height: 180px;
  }
}
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
  }
  header img {
    height: 38px;
    margin-bottom: 4px;
  }
  header h1 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  .lang-switch {
    margin-left: 0;
    align-self: flex-end;
  }
  .service, .testimonial {
    padding: 8px 2px;
  }
}
@media (max-width: 600px) {
  body {
    padding: 2px;
    font-size: 0.97rem;
  }
  main {
    padding: 2px 0.5vw;
  }
  section {
    margin-bottom: 12px;
  }
  .service, .testimonial {
    padding: 6px 1px;
  }
  #locker-form input, #locker-form button {
    font-size: 0.97rem;
    padding: 7px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero img {
    max-height: 120px;
  }
}
@media (max-width: 480px) {
  header img {
    height: 26px;
  }
  header h1 {
    font-size: 0.98rem;
  }
  nav {
    flex-direction: column;
    gap: 2px;
  }
  .service, .testimonial {
    padding: 4px 0;
  }
  .hero img {
    max-height: 80px;
  }
  .btn, .whatsapp-button {
    font-size: 0.95rem;
    padding: 7px 10px;
  }
}
@media (max-width: 360px) {
  body {
    font-size: 0.92rem;
  }
  .btn, .whatsapp-button {
    font-size: 0.9rem;
    padding: 6px 6px;
  }
  #locker-form input, #locker-form button {
    font-size: 0.9rem;
    padding: 5px;
  }
}

/* Ajuste para que las secciones y formularios sean 100% fluidos */
main section, #locker-form, #services, .service, .testimonial {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Ajuste para imágenes y carrusel */
.carousel, .carousel-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ajuste para inputs y botones */
input, button, .btn, .whatsapp-button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ajuste para listas y ul */
ul {
  padding-left: 16px;
  word-break: break-word;
}

/* Ajuste para evitar desbordes horizontales */
html, body {
  overflow-x: hidden;
}
