/* ---------- contacto (js/contact.js) ----------
   Sin hero: dos columnas desde arriba (móvil: apiladas). Izquierda: etiqueta, "¿Rodamos juntos?" con el punto REC,
   la promesa de respuesta, el email con copiar e Instagram. Derecha: el formulario sobre un panel #141111. Los campos:
   etiqueta en mono encima, solo la línea de abajo; al enfocar, la línea se vuelve naranja y se cierran unas escuadras
   de autofoco en sus esquinas. Al enviar, el botón se vuelve una barra fina; al terminar, flash y "Recibido".
   (LEGACY: la claqueta y el formulario largo, en legacy/contacto-hoja-rodaje/) */
.ct {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(40px, 6vw, 112px);
  padding-top: clamp(132px, 18vh, 200px);
  padding-bottom: clamp(96px, 14vh, 160px);
}
.ct__intro { position: sticky; top: 120px; z-index: 4; } /* AR-B: texto por encima del destello */
.ct__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 500 15px / 1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ct__tag-star { display: block; color: var(--orange); }
.ct__tag-star svg { display: block; width: auto; height: 12px; }
.ct__title {
  margin: 0;
  font: 600 clamp(44px, 6vw, 104px) / 0.92 var(--font-display);
  letter-spacing: -0.04em;
}
.ct__title b { font-weight: inherit; color: var(--orange); }
.ct__mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ct__mask > span { display: block; }
/* el punto REC: parpadea; mientras se escribe, más rápido */
.ct__rec { display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.12em; vertical-align: 0.62em; border-radius: 50%; background: var(--orange); animation: ct-blink 1.2s steps(1, end) infinite; }
.ct.is-typing .ct__rec { animation-duration: 0.36s; }
@keyframes ct-blink { 50% { opacity: 0.15; } }
.ct__lede { max-width: 30ch; margin: 26px 0 0; font: 400 clamp(18px, 1.5vw, 22px) / 1.45 var(--font-display); color: rgb(244 242 239 / 0.86); text-wrap: pretty; }
.ct__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 36px; }
.ct__email {
  color: var(--paper);
  font: 500 clamp(18px, 1.6vw, 24px) / 1.2 var(--font-display);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.25s ease;
}
.ct__email:hover { color: var(--orange); }
.ct__copy {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(244 242 239 / 0.4);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ct__copy:hover { border-color: var(--paper); }
.ct__copied { font: 500 12px / 1 var(--font-mono); }
.ct__ig { margin: 18px 0 0; font: 400 16px / 1.4 var(--font-display); color: rgb(244 242 239 / 0.7); }
.ct__ig a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; }
.ct__ig a:hover { color: var(--orange); }

/* el panel del formulario */
.ct__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 56px);
  border-radius: 22px;
  background: #141111;
}
.ct__form { display: flex; flex-direction: column; gap: 26px; }
.cf { position: relative; z-index: 4; }
.cf__label { display: block; font: 400 11px / 1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #a39994; }
.cf__opt { text-transform: none; letter-spacing: 0.04em; color: #8a807c; }
.cf__input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 2px 12px;
  border: 0;
  border-bottom: 1.5px solid rgb(244 242 239 / 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 18px / 1.4 var(--font-display);
  transition: border-color 0.25s ease;
}
.cf__input::placeholder { color: rgb(244 242 239 / 0.35); }
.cf__input:focus { outline: none; border-bottom-color: var(--orange); }
.cf__area { min-height: 112px; resize: vertical; }
.cf.is-bad .cf__input { border-bottom-color: #ff6a5c; }
.cf__err { min-height: 0; margin: 8px 0 0; font: 400 14px / 1.35 var(--font-display); color: #ff8a7d; }
.cf__err:empty { display: none; }
/* escuadras del autofoco en las esquinas del campo enfocado (0.25 s) */
.cf__af { position: absolute; left: -8px; right: -8px; top: 18px; bottom: -6px; pointer-events: none; }
.cf--check .cf__af { display: none; }
.cf__af > i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid var(--orange);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cf__af > i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; transform: translate(-8px, -8px); }
.cf__af > i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; transform: translate(8px, -8px); }
.cf__af > i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; transform: translate(-8px, 8px); }
.cf__af > i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; transform: translate(8px, 8px); }
.cf:focus-within .cf__af > i { opacity: 1; transform: none; }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font: 400 15px / 1.45 var(--font-display); color: rgb(244 242 239 / 0.82); cursor: pointer; }
.cf__check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.cf__check a { color: var(--paper); }
.cf__check a:hover { color: var(--orange); }

/* enviar: píldora naranja de 56px; enviando, se vuelve una barra fina de progreso */
.ct__send { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.ct__btn {
  position: relative;
  width: 100%;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 500 17px / 1 var(--font-display);
  cursor: pointer;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.65, 0, 0.35, 1), margin 0.45s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.2s ease;
}
.ct__btn:hover { background: #ff6a2b; }
.ct__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.ct__btn-text { transition: opacity 0.2s ease; }
.ct__bar { position: absolute; inset: 0; opacity: 0; background: rgb(244 242 239 / 0.14); }
.ct__bar > i { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.ct__btn.is-sending { height: 3px; margin: 26px 0 27px; background: transparent; cursor: progress; }
.ct__btn.is-sending .ct__btn-text { opacity: 0; }
.ct__btn.is-sending .ct__bar { opacity: 1; }
.ct__status { margin: 0; font: 400 15px / 1.45 var(--font-display); color: rgb(244 242 239 / 0.82); }
.ct__status:empty { display: none; }
.ct__status a { color: var(--paper); }
.ct__status.is-error { color: #ff8a7d; }
/* información básica de protección de datos, bajo "Enviar" (BF; primera capa de la AEPD) */
.ct__privacy { max-width: 62ch; margin: 18px 0 0; font: 400 12px / 1.65 var(--font-mono); letter-spacing: 0.01em; color: var(--muted); text-wrap: pretty; }
.ct__privacy a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
.ct__privacy a:hover { color: var(--paper); }

/* recibido: el destello (2D) girando y el mensaje */
.ct__done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 420px; }
.ct__done:focus { outline: none; }
.ct__done-star { width: auto; height: 44px; color: var(--orange); animation: ct-spin 6s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct__done-title { margin: 28px 0 0; font: 600 clamp(40px, 4.4vw, 72px) / 0.95 var(--font-display); letter-spacing: -0.035em; }
.ct__done-text { max-width: 32ch; margin: 16px 0 0; font: 400 19px / 1.45 var(--font-display); color: rgb(244 242 239 / 0.86); overflow-wrap: anywhere; }
.ct__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* --- FAQ: <details> con la altura animada en JS --- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 56px 18px 0;
  font: 500 clamp(20px, 2vw, 28px) / 1.2 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--orange), var(--orange)) 50% 50% / 100% 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 50% 50% / 2px 100% no-repeat;
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 60ch; margin: 0; padding: 0 0 24px; font: 400 18px / 1.55 var(--font-display); color: #d9d2cd; }

@media (max-width: 899px) {
  .ct { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 120px; }
  .ct__intro { position: static; }
  .ct__panel { padding: 26px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct__rec,
  .ct__done-star { animation: none; }
  .ct__btn,
  .cf__af > i { transition: none; }
}
