/* TIPOGRAFÍA GENERAL */
.custom-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #363636;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.custom-underline {
  width: 100px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ÍCONO FLOTANTE WHATSAPP */
#whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounce 3s infinite;
}

#whatsapp-icon img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

#whatsapp-icon img:hover {
  transform: scale(1.15);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#whatsapp-icon .tooltip {
  visibility: hidden;
  background-color: #363636;
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  position: absolute;
  right: 90px;
  bottom: 25px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#whatsapp-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

#whatsapp-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  background: rgba(37, 211, 102, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 2.5s infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
}

/* SERVICIOS */
.card-service {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.card-service:hover {
  transform: scale(1.02);
}

.card-service::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 204, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-service:hover::after {
  opacity: 1;
}

.overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.overlay .more-info {
  color: #ffdd57;
  font-weight: 500;
  font-size: 0.95rem;
}

.service-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* IMAGEN PRINCIPAL */
.main-image {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: auto;
  justify-content: center;
  align-items: center;
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* TEXTO EN LA IMAGEN */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  color: #dddcdc;
  font-size: 64px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  font-family: 'Acme';
}

.overlay-text p {
  color: rgba(0, 0, 0, 0.5);
}

/* SECCIÓN NOSOTROS */
.custom-font-size {
  font-size: 1.5rem;
  text-align: justify;
}

.centered-image {
  max-width: 90%;
  height: auto;
}

.button {
  font-family: 'Abel';
  font-weight: bold;
}

/* SECCIÓN DESTACADA */
.custom-section {
  background-color: #1E3857;
}

.custom-title {
  color: white;
  font-size: 1.8rem;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .custom-title {
    font-size: 1.5rem;
  }

  .custom-font-size {
    font-size: 24px;
  }

  .overlay-text {
    font-size: 44px;
  }

  .service-box img {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .custom-title {
    font-size: 1.25rem;
  }

  .custom-font-size {
    font-size: 18px;
  }

  .is-rounded {
    width: 60%;
    height: auto;
    object-fit: cover;
  }

  .centered-image {
    display: block;
    margin: 0 auto;
  }

  .overlay-text {
    font-size: 25px;
  }

  .service-box img {
    width: 300px !important;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scaleY(1.1);
    transition: transform 0.3s ease;
  }

  .columns.is-multiline {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 726px) {
  .service-box {
    align-items: center;
    text-align: center;
    margin-block: 0.5rem;
  }
}
@media (max-width: 400px) {
  .overlay-text p {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  }