/**
 * Contacto (contacto/index): correcciones responsive + iconos tarjetas (dirección / WhatsApp / correo).
 * Ámbito: body.fx-contacto
 */

.fx-contacto {
  overflow-x: hidden !important;
}

.fx-contacto main {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Iconos en lugar de PNG en .img-link */
.fx-contacto .img-link .fx-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.fx-contacto .img-link .fx-contact-icon i {
  font-size: 2rem;
  color: #AD9371;
}

.fx-contacto .img-link .fx-contact-icon--wa i {
  color: #25d366;
}

/* Banner */
@media (max-width: 991px) {
  .fx-contacto .fx-page-hero.container.banner {
    position: relative !important;
    padding-bottom: 24px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fx-contacto .fx-page-hero #banner-about {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
  }

  .fx-contacto .fx-page-hero #banner-about img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(52vh, 460px) !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .fx-contacto .fx-page-hero .text-banner {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 96% !important;
    max-width: min(96vw, 48rem) !important;
    text-align: center !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .fx-contacto .fx-page-hero .text-banner h1 {
    font-size: clamp(2.5rem, 12vw, 4.5rem) !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  .fx-contacto .fx-page-hero .text-banner p {
    padding: 8px 12px 0 !important;
    display: block !important;
    line-clamp: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
  }
}

/* Tarjetas dirección / WhatsApp / correo */
@media (max-width: 991px) {
  .fx-contacto .img-link {
    padding-bottom: 48px !important;
  }

  .fx-contacto .img-link > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .fx-contacto .img-link h1 {
    font-size: clamp(1.05rem, 4vw, 1.35rem) !important;
  }

  .fx-contacto .img-link h2 {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.45 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  .fx-contacto .img-link .img-color-1,
  .fx-contacto .img-link .img-color-2,
  .fx-contacto .img-link .img-color-3 {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .fx-contacto .img-link .img-color-2 {
    margin-top: 20px !important;
  }

  .fx-contacto .img-link .img-color-3 {
    margin-top: 20px !important;
  }
}

/* Formulario e imagen lateral */
@media (max-width: 991px) {
  .fx-contacto .message {
    padding-bottom: 40px !important;
  }

  .fx-contacto .message > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .fx-contacto .message #img-contact {
    max-width: 100% !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .fx-contacto .message #img-contact a {
    display: inline-block !important;
    max-width: 100% !important;
  }

  .fx-contacto .message #img-contact img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .fx-contacto .message .message-contact {
    padding-top: 8px !important;
  }

  .fx-contacto .message .message-contact h1 {
    margin: 0 0 12px 0 !important;
    padding-left: 0 !important;
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }

  .fx-contacto .message .message-contact form label {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fx-contacto .message .message-contact form .col-lg-6,
  .fx-contacto .message .message-contact form .col-md-6,
  .fx-contacto .message .message-contact form .col-sm-6,
  .fx-contacto .message .message-contact form .col-xs-12 {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fx-contacto .message .message-contact form input,
  .fx-contacto .message .message-contact form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .fx-contacto .message .message-contact form button {
    margin-left: 0 !important;
    margin-top: 32px !important;
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
  }
}

/* Footer */
@media (max-width: 991px) {
  .fx-contacto footer {
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    background-size: cover !important;
    background-position: center top !important;
  }

  .fx-contacto footer .info-footer {
    padding-top: 40px !important;
    padding-bottom: 16px !important;
  }

  .fx-contacto footer .row > .info-footer,
  .fx-contacto footer .row > .new-letter {
    width: 100% !important;
    float: none !important;
    padding: 12px 18px !important;
  }

  .fx-contacto footer .info-footer .col-xs-6 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 16px !important;
  }

  .fx-contacto footer .new-letter {
    padding-bottom: 32px !important;
  }

  .fx-contacto footer .new-letter .form-new {
    margin-top: 0 !important;
    height: auto !important;
    min-height: min(220px, 50vw) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 16px 28px !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  .fx-contacto footer .new-letter .form-new h1 {
    padding: 8px 8px 12px !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: clamp(1.2rem, 4vw, 1.65rem) !important;
  }

  .fx-contacto footer .new-letter .form-new p {
    padding: 0 8px 16px !important;
    margin: 0 auto !important;
    max-width: 28rem !important;
    text-align: center !important;
    line-height: 1.55 !important;
  }

  .fx-contacto footer .new-letter .form-new input {
    display: block !important;
    width: 100% !important;
    max-width: 22rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .fx-contacto footer .new-letter .form-new button {
    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 24px) !important;
    margin: 16px auto 0 !important;
  }

  .fx-contacto footer .footer-logo .footer-row .col-lg-4 .logo-bot {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .fx-contacto .fx-page-hero #banner-about img {
    max-height: min(42vh, 320px) !important;
  }
}

/* Formulario contacto: honeypot anti-spam + aviso tras envío (PHPMailer) */
.fx-contacto .fx-contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fx-contacto .message-contact {
  position: relative;
}

.fx-contacto .fx-contact-flash {
  margin: 0 0 16px 15px;
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.fx-contacto .fx-contact-flash--sent {
  background: #f5ede6;
  border: 1px solid #AD9371;
  color: #5c4a38;
}

.fx-contacto .fx-contact-flash--error {
  background: #fce8e6;
  border: 1px solid #c0392b;
  color: #5c2c26;
}

.fx-contacto .fx-contact-flash__text {
  margin: 0;
  flex: 1;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.fx-contacto .fx-contact-flash__close {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  font-family: Poppins, sans-serif;
}

@media (max-width: 767px) {
  .fx-contacto .fx-contact-flash {
    margin-left: 0;
    margin-right: 0;
  }
}
