/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global styles */
body {
  font-family: "Open Sans", sans-serif;
  color: #ffffff;
  background-image: url("Imagenes/ContactInfoBG.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 100vh;
}

.container {
  max-width: 90vw;
  margin: 10vh auto;
  padding: 0.5rem;
}

/* Contact section styles */
.contact {
  text-align: center;
  padding: 1rem 0;
}

.contact-box {
  margin: auto;
  max-width: 68rem;
  padding: 3rem;
  box-shadow: 0px 2px 4px 3px rgba(0, 0, 0, 0.419);
  background-color: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.222);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  font-size: 3rem;
}

/* Style for the logos */
.contact-box div p img {
  max-width: 2.2rem;
  max-height: 2.2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.419);
}

.location-logo {
  max-width: 2.2rem;
  max-height: 2.2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-bottom: -2rem;
}

/* Title "Informacion de contacto" */
.contact-box .title {
  font-family: "Open Sans", sans-serif;
  opacity: 90%;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

/* Name of the business */
.contact-box div strong {
  font-family: "Playfair Display", serif;
  display: block;
  margin: 4rem 0;
  font-size: 2.8rem;
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
  color: #ffffff;
}

/* Title "Email:" and other properties */
.contact-box div p {
  font-family: "Open Sans", sans-serif;
  margin-top: 2rem;
  font-size: 2.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.869);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #ffffff;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  width: 55px;
  height: 55px;
  transition: transform 0.3s ease;
  object-fit: contain;
  border-radius: 50%;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

/* Pulse animation */
.whatsapp-float::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Media queries for responsive design */
@media (max-width: 932px) {
  .container {
    padding: 1rem;
  }

  .contact {
    margin-top: -1rem;
    padding: 5rem 0.7rem;
  }

  .contact-box {
    max-width: 100%;
    padding: 2rem;
    font-size: 2rem;
    box-shadow: 0px 2px 4px 3px rgba(0, 0, 0, 0.419);
  }

  .contact-box .title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .contact-box div strong {
    margin: 2rem 0;
    font-size: 2rem;
  }

  .contact-box div p {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  .contact-box div p img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.3rem;
  }

  /* Mobile WhatsApp button adjustments */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .whatsapp-icon {
    width: 35px;
    height: 35px;
  }

  .whatsapp-tooltip {
    font-size: 12px;
    right: 70px;
  }
}

/* Mobile background fix */
@media (max-width: 480px) {
  html,
  body {
    background-image: url("Imagenes/ContactInfoBG.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
  }

  html {
    background-color: #2c1810;
  }
}
