body {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  text-align: justify;
  background-image: url(../assets/Imagenes/fondo1.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

img:not(.footer-logo) {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #00356b 60%, #2980b9 100%) border-box;
  box-sizing: border-box;
}

.container {
  width: 90%;
  margin: auto;
}

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

header {
  background: rgba(0, 83, 119, 0.5);
  background-image: url("../assets/Imagenes/balanza 2.avif");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5rem 0 0 0;
  text-align: center;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}
header img:not(.footer-logo) {
  max-width: 150px;
  margin-bottom: 1rem;
  border: none;
  background: none;
}
header h1 {
  margin: 0;
  font-size: 3rem;
}
header h1 span {
  display: block;
}

nav {
  background: rgba(0, 55, 90, 0.75);
  width: 100%;
  margin-top: 2rem;
  padding: 0;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  width: 100%;
}
nav ul li {
  flex: 1;
}
nav ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem 0;
  text-align: center;
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}
nav ul li a:hover {
  background: rgba(255, 200, 50, 0.85);
  color: #003a5c;
  text-decoration: none;
}

main {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 40px auto;
  padding: 20px 0;
  max-width: 1100px;
}
main h2 {
  margin-top: 0;
  color: #2c3e50;
  text-align: center;
}
main h2,
main h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  display: block;
  font-weight: bold;
  color: #00356b;
  padding-bottom: 0.5rem;
}
main h2::after,
main h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.5rem auto 0 auto;
  background: linear-gradient(90deg, #00356b 60%, #2980b9 100%);
  border-radius: 2px;
}

.services .service-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 2rem;
}
.services .service-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1rem;
  flex: 1 1 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 250px;
  position: relative;
  z-index: 0;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
}
.services .service-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  z-index: 2;
}
.services .service-item h3 {
  margin-bottom: 0.5rem;
  color: #00356b;
  text-align: left;
}

.service-img {
  width: 100%;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0 0 1rem 0;
  border-radius: 20px;
  display: block;
  max-width: none;
  margin-right: 0;
}

.service-content {
  align-items: center;
}

.service-details {
  display: flex;
  align-items: center;
}
.service-details ul {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2980b9;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  text-align: center;
}
.btn:hover {
  background: #1f6391;
}

.contact {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.home-main {
  background: rgba(255, 255, 255, 0.9);
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 2rem;
}
.home-main .hero,
.home-main .about {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  max-width: none;
  border-radius: 0;
}
.home-main .about {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  position: relative;
}
.home-main .about::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00356b 60%, #2980b9 100%);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.contact h2 {
  margin-top: 0;
  color: #2c3e50;
  text-align: center;
}
.contact p {
  margin: 0.5rem 0;
}
.contact .mapa {
  margin-top: 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 220px;
  display: flex;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #00356b 60%, #2980b9 100%) border-box;
}
.contact .mapa iframe {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

.contact-bottom {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
}

.contact-info {
  flex: 1 1 0;
  min-width: 0;
  min-height: 220px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #00356b 60%, #2980b9 100%) border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
}
.contact-form h3 {
  margin-top: 0;
  color: #00356b;
  margin-bottom: 1rem;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #00356b;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid #c0cfe0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f7fafd;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2980b9;
  background: #fff;
}

.btn-enviar {
  display: inline-block;
  background: #00356b;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.25s;
  width: 100%;
}
.btn-enviar:hover {
  background: #2980b9;
}

.contact-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.contact-popup.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.contact-popup__card {
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #00356b 60%, #2980b9 100%) border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 2rem 1.5rem;
  text-align: center;
}

.contact-popup__panel {
  display: none;
}

.contact-popup.phase-gavel .contact-popup__panel--gavel,
.contact-popup.phase-thanks .contact-popup__panel--thanks,
.contact-popup.phase-error .contact-popup__panel--error {
  display: block;
}

.contact-popup__scene {
  position: relative;
  width: 150px;
  height: 90px;
  margin: 0 auto 1rem auto;
}

.contact-popup__gavel {
  position: absolute;
  left: 22px;
  top: 8px;
  width: 84px;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #7b5d30 40%, #c69d52 100%);
  transform-origin: 76px 7px;
  animation: gavel-hit 1.7s ease-in-out infinite;
}
.contact-popup__gavel::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -9px;
  width: 24px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(180deg, #9c783e 30%, #d5ac60 100%);
}

.contact-popup__base {
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 58px;
  height: 12px;
  border-radius: 8px;
  background: #1f4f7f;
}

.contact-popup__impact {
  position: absolute;
  right: 42px;
  bottom: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(41, 128, 185, 0.85);
  opacity: 0;
  animation: gavel-impact 1.7s ease-in-out infinite;
}

.contact-popup__label,
.contact-popup__title {
  margin: 0;
  color: #00356b;
  font-size: 1.3rem;
  font-weight: bold;
}

.contact-popup__text {
  margin: 0.6rem 0 0 0;
  color: #21486d;
}

@keyframes gavel-hit {
  0%, 45% {
    transform: rotate(-30deg);
  }
  65%, 100% {
    transform: rotate(10deg);
  }
}
@keyframes gavel-impact {
  0%, 55% {
    transform: scale(0.2);
    opacity: 0;
  }
  62% {
    transform: scale(2);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.4);
    opacity: 0;
  }
}
.about-content {
  display: flex;
  align-items: flex-start;
}

.about-img {
  width: 200px;
  height: 200px;
  max-width: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 20px;
}

footer {
  background: rgba(0, 53, 107, 0.9);
  color: #fff;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  border-radius: 0;
  flex-shrink: 0;
}

.footer-text {
  margin: 0;
}

.social-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.social-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #2980b9;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
}
.social-float-btn:hover {
  background-color: #1f6391;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.social-float-btn.facebook {
  background-color: #3b5998;
}
.social-float-btn.facebook:hover {
  background-color: #2d4373;
}
.social-float-btn.instagram {
  background-color: #e4405f;
}
.social-float-btn.instagram:hover {
  background-color: #c13584;
}
.social-float-btn.whatsapp {
  background-color: #25d366;
}
.social-float-btn.whatsapp:hover {
  background-color: #1ebe57;
}

@media (max-width: 900px) {
  .services .service-list {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 768px) {
  header {
    padding: 3rem 1rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 0.5rem 0;
  }
  main {
    padding: 1rem;
    margin: 0 auto 2rem auto;
  }
  .service-details {
    flex-direction: column;
    align-items: flex-start;
  }
  .service-img {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  .contact {
    padding: 1rem;
  }
  .contact-bottom {
    flex-direction: column;
  }
  .about-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-img {
    margin-bottom: 1rem;
    margin-right: 0;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  .social-float-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}/*# sourceMappingURL=style.css.map */