/* hou.digital/contact — formulario de contacto. Oscuro, menta de hou, etiquetas que flotan, chips y un
   envío con estado. Todo bajo .hc. Solo transiciones cortas al interactuar: nada se mueve en reposo. */

.hc {
  --mint: #00ffc1;
  --mint-rgb: 0, 255, 193;
  --line: rgba(255, 255, 255, 0.14);
  --muted: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.5);
  --bad: #ff7a7a;
  --serif: "Playfair Display", Georgia, serif;
  --display: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fff;
  font-family: var(--system);
  -webkit-font-smoothing: antialiased;
  padding: 0 6vw 60px calc(110px + 4vw);
  overflow-x: hidden;
}
/* `clip` y no `hidden`: `hidden` convierte el bloque en una caja de scroll y en el iPhone el scroll se pega. */
@supports (overflow-x: clip) { .hc { overflow-x: clip; } }
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc p, .hc li { color: #fff; font-family: Roboto, var(--system); font-size: 18px; line-height: 30px; font-weight: 400; }
.hc a { color: var(--mint); }

.hc .hc-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5vw; align-items: start; padding: 130px 0 40px; }

/* Izquierda: la frase, el texto y el contacto directo. */
.hc .hc-intro { position: sticky; top: 60px; }
.hc .hc-label { display: block; margin: 0 0 22px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--mint); }
.hc .hc-statement { font-family: var(--serif); font-weight: 900; color: #fff; font-size: clamp(42px, calc(4.6vw - 4px), 92px); line-height: 1.1; margin: 0 0 28px; }
.hc .hc-statement em { color: var(--mint); font-style: italic; }
.hc .hc-intro > p { color: rgba(255, 255, 255, 0.86); font-size: clamp(18px, calc(0.6vw + 10px), 22px); line-height: 1.6; max-width: 32em; margin: 0 0 36px; }
.hc .hc-direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.hc .hc-direct li { display: grid; gap: 2px; font-size: 18px; color: #fff; }
.hc .hc-direct span { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hc .hc-direct a { color: #fff; text-decoration: none; background: linear-gradient(var(--mint), var(--mint)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s ease; }
.hc .hc-direct a:hover { color: var(--mint); background-size: 100% 2px; }

/* Derecha: la tarjeta del formulario, con un brillo menta muy suave detrás. */
.hc .hc-card { position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 44px); background: #0a0a0a; border: 1px solid var(--line); overflow: hidden; }
.hc .hc-card::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--mint-rgb), .10), transparent); }
.hc .hc-card > * { position: relative; }
.hc .hc-card > .hc-form { position: static; } /* la barra de progreso va arriba del todo de la tarjeta */

/* Progreso: se llena según lo que falta para poder enviar. */
.hc .hc-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.hc .hc-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), #7dffe0); box-shadow: 0 0 14px rgba(var(--mint-rgb), .6); transition: width .45s cubic-bezier(.2, .8, .2, 1); }

/* ¿Qué necesitas? — chips que se marcan. */
.hc .hc-needs { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.hc .hc-needs legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: #fff; }
.hc .hc-needs legend small { font-family: var(--system); font-weight: 400; font-size: 14px; color: var(--dim); margin-left: 8px; }
.hc .hc-chips { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.hc .hc-chip { position: relative; margin: 0; cursor: pointer; }
.hc .hc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc .hc-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--system); font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.85);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1); user-select: none; }
.hc .hc-chip span::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 15px; line-height: 1; background: rgba(255, 255, 255, 0.08); color: var(--muted); transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.hc .hc-chip:hover span { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hc .hc-chip input:checked + span { border-color: var(--mint); background: rgba(var(--mint-rgb), .1); color: #fff; }
.hc .hc-chip input:checked + span::before { content: "✓"; background: var(--mint); color: #04150f; transform: rotate(360deg); }
.hc .hc-chip input:active + span { transform: scale(.96); }
.hc .hc-chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Campos con la etiqueta dentro que sube al escribir. */
.hc .hc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hc .hc-field { position: relative; }
.hc .hc-field--full { grid-column: 1 / -1; }
.hc .hc-field input, .hc .hc-field textarea {
  display: block; width: 100%; margin: 0; padding: 26px 18px 10px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); color: #fff; font: 400 17px/1.5 Roboto, var(--system); outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
.hc .hc-field textarea { min-height: 150px; resize: none; overflow: hidden; }
/* La plantilla fija la altura y el relleno de los campos: aquí mandan los del formulario. */
.hc .hc-field input, .hc .hc-field textarea { height: auto !important; min-height: 62px; padding: 26px 18px 10px !important; margin: 0 !important;
  line-height: 1.5 !important; font-size: 17px !important; color: #fff !important; border: 1px solid var(--line) !important;
  border-radius: 16px !important; background: rgba(255, 255, 255, 0.035) !important; }
.hc .hc-field textarea { min-height: 150px !important; }
.hc .hc-field input:focus, .hc .hc-field textarea:focus { border-color: var(--mint) !important; background: rgba(var(--mint-rgb), .04) !important; }
.hc .hc-field.is-invalid input, .hc .hc-field.is-invalid textarea { border-color: var(--bad) !important; }
.hc .hc-field label { position: absolute; left: 19px; top: 18px; margin: 0; pointer-events: none; transform-origin: 0 0;
  font: 400 17px/1.4 Roboto, var(--system); color: var(--muted); transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .2s ease; }
.hc .hc-field label small { font-size: 13px; color: var(--dim); margin-left: 4px; }
.hc .hc-field input:focus, .hc .hc-field textarea:focus { border-color: var(--mint); background: rgba(var(--mint-rgb), .04); box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .12); }
.hc .hc-field input:focus + label, .hc .hc-field input:not(:placeholder-shown) + label, .hc .hc-field textarea:focus + label, .hc .hc-field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--mint); }
.hc .hc-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #101a17 inset; caret-color: #fff; }
.hc .hc-field input:-webkit-autofill + label { transform: translateY(-11px) scale(.76); color: var(--mint); }
.hc .hc-hint { display: block; margin: 8px 4px 0; font-size: 14px; line-height: 1.45; color: var(--dim); }
/* Validación: bien (una marca menta) y mal (borde y mensaje). */
.hc .hc-field.is-valid::after { content: "✓"; position: absolute; right: 16px; top: 17px; font-size: 16px; color: var(--mint); }
.hc .hc-field--full.is-valid::after { top: 18px; }
.hc .hc-error { display: none; margin: 8px 4px 0; font-size: 14px; line-height: 1.4; color: var(--bad); }
.hc .hc-field.is-invalid input, .hc .hc-field.is-invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255, 122, 122, .12); }
.hc .hc-field.is-invalid label { color: var(--bad); }
.hc .hc-field.is-invalid .hc-error { display: block; }
.hc .hc-field.is-invalid .hc-hint { display: none; }
.hc .hc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hc .hc-legal { margin: 22px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.hc .hc-legal a { color: var(--muted); }

/* Enviar: píldora menta con estado «enviando». */
.hc .hc-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.hc .hc-button { position: relative; display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; border-radius: 999px;
  padding: 17px 30px; background: var(--mint); color: #04150f; font: 700 17px/1 var(--system);
  box-shadow: 0 16px 44px -14px rgba(var(--mint-rgb), .6); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s ease, box-shadow .2s ease; }
.hc .hc-button:hover { background: #3dffd0; transform: translateY(-2px); }
.hc .hc-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hc .hc-button i { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hc .hc-button:hover i { transform: translateX(4px); }
.hc .hc-button__busy, .hc .hc-spinner { display: none; }
.hc .hc-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(4, 21, 15, .25); border-top-color: #04150f; animation: hc-gira .8s linear infinite; }
@keyframes hc-gira { to { transform: rotate(360deg); } }
.hc .hc-form.is-busy .hc-button { pointer-events: none; opacity: .92; }
.hc .hc-form.is-busy .hc-button__text, .hc .hc-form.is-busy .hc-button i { display: none; }
.hc .hc-form.is-busy .hc-button__busy, .hc .hc-form.is-busy .hc-spinner { display: inline-block; }
.hc .hc-status { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.hc .hc-status.is-bad { color: var(--bad); }

/* Enviado: la marca se dibuja una vez. */
.hc .hc-done { padding: 30px 0 10px; text-align: center; }
.hc .hc-done[hidden] { display: none; }
.hc .hc-done:focus { outline: none; }
.hc .hc-check { width: 84px; height: 84px; margin: 0 auto 22px; display: block; }
.hc .hc-check circle, .hc .hc-check path { fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hc .hc-check circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: hc-dibuja .7s cubic-bezier(.65, 0, .35, 1) forwards; }
.hc .hc-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: hc-dibuja .45s .55s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes hc-dibuja { to { stroke-dashoffset: 0; } }
.hc .hc-done h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 3vw, 46px); color: #fff; }
.hc .hc-done p { color: var(--muted); max-width: 28em; margin: 0 auto 26px; }
.hc .hc-again { border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--system); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.hc .hc-again:hover { border-color: var(--mint); color: var(--mint); }

/* La marca de reCAPTCHA no tapa nada: el aviso que exige Google va en el texto legal del formulario. */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 991.98px) {
  .hc .hc-needs legend small { display: block; margin: 6px 0 0; }
  .hc { padding: 0 20px 40px; }
  .hc .hc-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .hc .hc-intro { position: static; }
  .hc .hc-statement { font-size: clamp(38px, 10vw, 58px); }
  .hc .hc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hc *, .hc *::before { transition: none !important; }
  .hc .hc-check circle, .hc .hc-check path { animation: none; stroke-dashoffset: 0; }
  .hc .hc-spinner { animation-duration: 2s; }
}
