/* HABITAMAR · CONTACT FORM 7 · FORMULARIO COMPACTO */
.hmcf2 {
  --hmcf-navy:#123b66;
  --hmcf-blue:#1f6fb2;
  --hmcf-gold:#e6b325;
  --hmcf-text:#273c50;
  --hmcf-muted:#657789;
  --hmcf-border:#d9e5ed;
  --hmcf-bg:#f8fbfd;
  width:100%;
  min-width:0;
  padding:24px;
  margin:0;
  color:var(--hmcf-text);
  background:#fff;
  border:1px solid #dce7ed;
  border-radius:20px;
  box-shadow:0 14px 35px rgba(18,59,102,.06);
  container:hmcf-form/inline-size;
}
.hmcf2,.hmcf2 *,.hmcf2 *::before,.hmcf2 *::after{box-sizing:border-box}
.hmcf2 p{margin:0!important}
.hmcf2 br{display:none}
.hmcf2 .hmcf2__intro{margin:0 0 18px;padding:0 0 17px;border-bottom:1px solid #eaf0f4}
.hmcf2 .hmcf2__eyebrow{display:block;margin-bottom:7px;color:#176fa9;font-size:10px;font-weight:800;letter-spacing:1.1px}
.hmcf2 .hmcf2__eyebrow::before{content:"";display:inline-block;width:16px;height:3px;margin:0 8px 2px 0;border-radius:3px;background:var(--hmcf-gold)}
.hmcf2 .hmcf2__intro h2{margin:0 0 7px!important;padding:0!important;color:var(--hmcf-navy)!important;font-size:24px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:-.025em}
.hmcf2 .hmcf2__intro p{max-width:56ch;color:var(--hmcf-muted);font-size:13px;line-height:1.55}
.hmcf2 .hmcf2__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px}
.hmcf2 .hmcf2__field{min-width:0}
.hmcf2 .hmcf2__full{grid-column:1/-1}
.hmcf2 .hmcf2__field label{display:block;margin:0!important;padding:0!important}
.hmcf2 .hmcf2__label{display:flex;align-items:center;gap:4px;margin-bottom:6px;color:var(--hmcf-navy);font-size:12px;font-weight:700;line-height:1.35}
.hmcf2 .hmcf2__label b{color:var(--hmcf-blue)}
.hmcf2 .hmcf2__label em{margin-left:auto;color:#8a97a3;font-size:9px;font-weight:700;font-style:normal;text-transform:uppercase;letter-spacing:.03em}
.hmcf2 .wpcf7-form-control-wrap{display:block;width:100%;margin:0!important}
.hmcf2 input[type="text"],.hmcf2 input[type="email"],.hmcf2 input[type="tel"],.hmcf2 input[type="number"],.hmcf2 input[type="date"],.hmcf2 select,.hmcf2 textarea{display:block;width:100%!important;max-width:100%!important;margin:0!important;padding:9px 12px!important;color:var(--hmcf-text)!important;background:var(--hmcf-bg)!important;border:1px solid var(--hmcf-border)!important;border-radius:10px!important;outline:none!important;box-shadow:none!important;font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.hmcf2 input[type="text"],.hmcf2 input[type="email"],.hmcf2 input[type="tel"],.hmcf2 input[type="number"],.hmcf2 input[type="date"],.hmcf2 select{height:45px!important;min-height:45px!important}
.hmcf2 textarea{height:104px!important;min-height:104px!important;resize:vertical}
.hmcf2 input::placeholder,.hmcf2 textarea::placeholder{color:#92a0ad!important;opacity:1}
.hmcf2 select{appearance:none;-webkit-appearance:none;padding-right:35px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123b66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-position:right 10px center!important;background-repeat:no-repeat!important;background-size:17px!important}
.hmcf2 input:focus,.hmcf2 select:focus,.hmcf2 textarea:focus{border-color:var(--hmcf-blue)!important;background:#fff!important;box-shadow:0 0 0 3px rgba(31,111,178,.12)!important}
.hmcf2 .wpcf7-not-valid{border-color:#b42318!important}
.hmcf2 .wpcf7-not-valid-tip{display:block;margin:5px 0 0;color:#ad2b25;font-size:11px;line-height:1.4}
.hmcf2 .hmcf2__extra{margin-top:15px;background:#f2f8fc;border:1px solid #d9e8f2;border-radius:12px;overflow:hidden}
.hmcf2 .hmcf2__extra summary{display:flex;align-items:center;gap:11px;padding:13px 14px;cursor:pointer;list-style:none}
.hmcf2 .hmcf2__extra summary::-webkit-details-marker{display:none}
.hmcf2 .hmcf2__extra summary:focus-visible{outline:3px solid rgba(31,111,178,.3);outline-offset:-3px}
.hmcf2 .hmcf2__extra-icon{position:relative;flex:none;width:29px;height:29px;border-radius:9px;background:#e1f0f9}
.hmcf2 .hmcf2__extra-icon::before,.hmcf2 .hmcf2__extra-icon::after{content:"";position:absolute;top:14px;left:9px;width:11px;height:2px;background:var(--hmcf-blue);border-radius:3px}
.hmcf2 .hmcf2__extra-icon::after{transform:rotate(90deg);transition:transform .18s ease}
.hmcf2 .hmcf2__extra[open] .hmcf2__extra-icon::after{transform:rotate(0)}
.hmcf2 .hmcf2__extra-title strong{display:block;color:var(--hmcf-navy);font-size:12px;line-height:1.3}
.hmcf2 .hmcf2__extra-title small{display:block;margin-top:3px;color:var(--hmcf-muted);font-size:10px;line-height:1.4}
.hmcf2 .hmcf2__extra-body{padding:1px 14px 14px}
.hmcf2 .hmcf2__hint{margin-top:10px!important;color:var(--hmcf-muted);font-size:10px;line-height:1.5}
.hmcf2 .hmcf2__footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:17px;padding-top:16px;border-top:1px solid #e8eff3}
.hmcf2 .hmcf2__privacy{flex:1;min-width:0;color:#657789;font-size:11px;line-height:1.5}
.hmcf2 .hmcf2__privacy .wpcf7-list-item{margin:0!important}
.hmcf2 .hmcf2__privacy label{display:flex;align-items:flex-start;gap:8px;cursor:pointer}
.hmcf2 .hmcf2__privacy input[type="checkbox"]{flex:0 0 17px;width:17px;height:17px;margin:1px 0 0!important;accent-color:var(--hmcf-blue)}
.hmcf2 .hmcf2__send{flex:none}
.hmcf2 input[type="submit"]{display:block;width:auto;min-width:165px;height:46px!important;margin:0!important;padding:0 22px!important;border:0!important;border-radius:999px!important;background:var(--hmcf-navy)!important;color:#fff!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:46px!important;cursor:pointer;transition:background .18s ease,transform .18s ease}
@media(hover:hover) and (pointer:fine){.hmcf2 input[type="submit"]:hover{background:var(--hmcf-blue)!important;transform:translateY(-1px)}}
.hmcf2 input[type="submit"]:focus-visible{outline:3px solid rgba(31,111,178,.28);outline-offset:3px}
.hmcf2 input[type="submit"]:disabled{opacity:.65;cursor:wait}
@container hmcf-form (max-width:520px){.hmcf2 .hmcf2__grid{grid-template-columns:1fr}.hmcf2 .hmcf2__full{grid-column:auto}.hmcf2 .hmcf2__footer{align-items:stretch;flex-direction:column;gap:13px}.hmcf2 .hmcf2__send,.hmcf2 input[type="submit"]{width:100%}}
@media(max-width:700px){.hmcf2{padding:17px 15px;border-radius:16px}.hmcf2 .hmcf2__intro{margin-bottom:16px;padding-bottom:14px}.hmcf2 .hmcf2__intro h2{font-size:21px!important}.hmcf2 input[type="text"],.hmcf2 input[type="email"],.hmcf2 input[type="tel"],.hmcf2 input[type="number"],.hmcf2 input[type="date"],.hmcf2 select,.hmcf2 textarea{font-size:16px!important}.hmcf2 .hmcf2__grid{grid-template-columns:1fr;gap:12px}.hmcf2 .hmcf2__full{grid-column:auto}.hmcf2 .hmcf2__footer{align-items:stretch;flex-direction:column;gap:13px}.hmcf2 .hmcf2__send,.hmcf2 input[type="submit"]{width:100%}}
.hmcf2 .hmcf2__honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

/* Modal de confirmación de Contacto */
body.hm-contact-modal-open{overflow:hidden!important}
.hm-contact-modal[hidden]{display:none!important}
.hm-contact-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center;justify-content:center;padding:20px;background:rgba(5,25,45,.72);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.hm-contact-modal:not([hidden]){display:flex!important}
.hm-contact-modal__dialog{width:min(100%,480px);max-height:calc(100dvh - 32px);overflow:auto;border-radius:23px;background:#fff;color:var(--hmc-text,#18344d);box-shadow:0 28px 90px rgba(0,20,40,.35);animation:hmContactModalIn .22s ease-out both}
.hm-contact-modal__header{display:flex;min-height:92px;align-items:center;justify-content:space-between;padding:18px 24px;background:var(--hmc-navy,#102f50)}
.hm-contact-modal__brand{color:#fff;font-size:20px;font-weight:850;letter-spacing:.02em}
.hm-contact-modal__brand small{display:block;margin-top:3px;color:#cbe1ef;font-size:9px;font-weight:700;letter-spacing:.18em}
.hm-contact-modal__x{display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(255,255,255,.32);border-radius:50%;background:rgba(255,255,255,.12);color:#fff!important;font-size:27px;line-height:1;cursor:pointer}
.hm-contact-modal__x:hover{background:rgba(255,255,255,.25)}
.hm-contact-modal__accent{height:4px;background:linear-gradient(90deg,#f2bf37 0 30%,var(--hmc-cyan,#08a5d1) 30%)}
.hm-contact-modal__content{padding:30px}
.hm-contact-modal__check{display:grid;width:54px;height:54px;place-items:center;margin-bottom:18px;border:1px solid #d1edf4;border-radius:16px;background:#eaf8fb;color:#0879ac;font-size:30px;font-weight:800}
.hm-contact-modal__content .hm-contact-eyebrow{margin-bottom:8px!important}
.hm-contact-modal__content h2{margin:0!important;color:var(--hmc-navy,#102f50)!important;font-size:clamp(24px,5vw,31px)!important;font-weight:800!important;line-height:1.15!important}
.hm-contact-modal__content>p:not(.hm-contact-eyebrow){margin:16px 0 0!important;color:var(--hmc-muted,#5c7489);font-size:15px;line-height:1.7}
.hm-contact-modal__content .hm-contact-modal__note{margin-top:12px!important;color:#718391;font-size:12px!important}
.hm-contact-modal__button{width:100%;min-height:52px;margin-top:23px;padding:12px 20px;border:1px solid var(--hmc-blue,#1553a2);border-radius:999px;background:var(--hmc-blue,#1553a2);color:#fff!important;font:inherit;font-size:15px;font-weight:800;cursor:pointer;transition:background-color .18s,border-color .18s}
.hm-contact-modal__button:hover{border-color:var(--hmc-cyan,#08a5d1);background:var(--hmc-cyan,#08a5d1);color:#fff!important}
.hm-contact-modal button:focus-visible{outline:3px solid #f2bf37;outline-offset:3px}
.hm-contact-page .wpcf7[data-hm-contact-success="1"] .wpcf7-response-output{display:none!important}
@keyframes hmContactModalIn{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@keyframes hmContactModalMobile{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@media(max-width:760px){.hm-contact-modal{align-items:flex-end;padding:0}.hm-contact-modal__dialog{width:100%;max-height:calc(100dvh - 10px);border-radius:22px 22px 0 0;animation:hmContactModalMobile .24s ease-out both}.hm-contact-modal__header{min-height:82px;padding:16px 21px}.hm-contact-modal__content{padding:25px 21px calc(22px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.hmcf2 *,.hm-contact-modal *{transition:none!important;animation:none!important}}

/* Botón de cierre: aislamiento frente a estilos globales de botones del tema o Gutenberg. */
#hm-contact-success .hm-contact-modal__x{all:unset!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:0!important;margin:0!important;border:1px solid rgba(255,255,255,.34)!important;border-radius:50%!important;background:rgba(255,255,255,.10)!important;color:#fff!important;line-height:0!important;cursor:pointer!important;transition:background-color .18s ease,border-color .18s ease,transform .18s ease!important}
#hm-contact-success .hm-contact-modal__x svg{display:block!important;width:17px!important;height:17px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;pointer-events:none!important}
#hm-contact-success .hm-contact-modal__x:hover{background:rgba(255,255,255,.2)!important;border-color:rgba(255,255,255,.72)!important;transform:rotate(90deg)!important}
#hm-contact-success .hm-contact-modal__x:focus-visible{outline:3px solid #f2bf37!important;outline-offset:3px!important}

@media (max-width: 760px) {
  .hm-contact-page .hm-contact-button { font-size: 15px; min-height: 46px; }
  .hm-contact-page .hm-contact-caption,
  .hm-contact-page .hm-contact-quicklinks small,
  .hm-contact-page .hm-contact-wa-card small { font-size: 14px; }
  .hm-contact-page .hm-contact-faq__list p,
  .hm-contact-page .hm-contact-steps p { font-size: 16px; line-height: 1.6; }

  .hmcf2 .hmcf2__intro p,
  .hmcf2 .hmcf2__label,
  .hmcf2 .hmcf2__extra-title strong { font-size: 15px; }

  .hmcf2 .hmcf2__label em,
  .hmcf2 .hmcf2__extra-title small,
  .hmcf2 .hmcf2__hint,
  .hmcf2 .hmcf2__privacy,
  .hmcf2 .wpcf7-not-valid-tip { font-size: 13px; }
  .hmcf2 .hmcf2__label em { color: #53677a; }

  .hmcf2 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
    font-size: 16px !important;
  }
  .hmcf2 input::placeholder, .hmcf2 textarea::placeholder { color: #5d6e7e !important; }
}
