:root {
  --color-principal: #05577f;
  --color-texto: #333;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--color-texto);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.carousel-caption .caption-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


#heroCarousel,
#heroCarousel .carousel-item {
  height: 350px;
}

#heroCarousel .carousel-item img {
  height: 100%;
  object-fit: cover;
}


.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: none !important;
  padding: 0 !important;
}

.carousel-caption .caption-box {
  display: inline-block;
  background-color: var(--color-principal) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  position: relative;
  z-index: 10;
}

.carousel-caption .caption-box h2,
.carousel-caption .caption-box p,

.carousel-caption .caption-box a.btn {
  position: relative;
  display: inline-block;
  color: #FFF;
  padding: 0.5rem 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 0 rgb(6, 35, 161);
  transition: ease-out 0.4s;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.carousel-caption .caption-box a.btn:hover {
  box-shadow: inset 0 0 0 0 rgb(6, 35, 161);
}

.carousel-caption .caption-box a.btn {
  margin-top: 0.5rem !important;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}


.card {
  border: none;
}

.card img {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
}


#servicios i {
  color: var(--color-principal);
}


.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25);
  border-color: var(--color-principal);
}


footer {
  font-size: 0.9rem;
}

.site-footer {
  background: linear-gradient(135deg, #2a2a2a 0%, #111 100%);
  color: #eee;
  padding: 60px 0;
  font-size: 0.9rem;
}

.site-footer h5 {
  color: #ff8200;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #ddd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .social-icons a {
  font-size: 1.4rem;
  color: #ddd;
  transition: color .2s;
}

.site-footer .social-icons a:hover {
  color: #ff8200;
}

.site-footer ul li {
  margin-bottom: .5rem;
}

.site-footer hr {
  opacity: .2;
}

#whatsapp-widget {
  position: fixed;
  bottom: 20px;
  left: 20px !important;
  right: unset !important;
  z-index: 9999;
}

#whatsapp-button {
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

#whatsapp-button:hover {
  transform: scale(1.1);
}

#whatsapp-button i {
  font-size: 32px;
}

#whatsapp-popup {
  display: none;
  position: absolute;
  bottom: 80px;
  right: auto;
  left: calc(100% + 10px);
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

#whatsapp-popup.active {
  display: block;
}

.wp-header {
  background: #25D366;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-header i {
  font-size: 20px;
  margin-right: 5px;
}

.wp-body {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

#wp-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wp-option-button {
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.wp-option-button:hover {
  filter: brightness(0.9);
}

.wp-footer {
  background: #f5f5f5;
  padding: 10px;
  text-align: center;
}

.wp-footer a {
  color: #fff;
  background-color: #25D366;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}


@media (max-width: 576px) {

  #heroCarousel,
  #heroCarousel .carousel-item {
    height: auto !important;
  }

  #heroCarousel .carousel-item img {
    height: auto !important;
    max-height: 250px;
    object-fit: cover;
  }


  .carousel-caption {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: -80px;
    padding: 0 !important;
    text-align: center;
    pointer-events: none;
  }


  .carousel-caption .caption-box {
    display: block !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0.5rem 1rem !important;
    background-color: var(--color-principal) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
    pointer-events: all;
  }


  .carousel-caption .caption-box h2 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .carousel-caption .caption-box h3,
  .carousel-caption .caption-box p {
    font-size: 0.85rem !important;
  }

  .carousel-caption .caption-box a.btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.7rem !important;
  }
}

.logout-link {
  color: #dc3545;
}

.logout-link:hover {
  color: #a71d2a;
}