/* ==========================================================================
   Temoc — formularios (nombre / empresas / alianza)
   Comparte tokens y base con styles.css; aquí sólo vive lo del flujo:
   campos, pasos y la cita. Sistema v3 "Casa de luz".
   ========================================================================== */

[hidden] { display: none !important; }

.pagina-form main {
  min-height: 72vh;
  padding: 128px 20px 64px;
}
.col-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Encabezado de paso -------------------------------------------------- */
.paso__eyebrow { display: block; margin-bottom: 14px; text-align: center; }
.paso h1, .paso h2 {
  margin: 0 0 10px;
  font: 400 clamp(32px, 5vw, 44px)/1.1 var(--font-display);
  letter-spacing: -.015em;
  color: var(--text-display);
  text-align: center;
}
.paso__nota {
  margin: 0 0 34px;
  font: 400 16px/1.6 var(--font-text);
  color: var(--text-muted);
  text-align: center;
}

/* Entrada de cada paso: deriva y asentarse, una vez. */
.paso:not([hidden]) { animation: llegada var(--dur-drift) var(--ease-out) both; }
@keyframes llegada {
  from { opacity: 0; transform: translateY(var(--rise)); }
  to { opacity: 1; transform: none; }
}

/* ---- La aplicación: pitch a la izquierda, acción a la derecha -------------------
   Una sola pantalla que vende y captura. En intro_form_call la acción es el
   formulario; en intro_call, el calendario toma su lugar (#cita-lado). */
.col-form--ancha { max-width: 1020px; }
.aplicar {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: start;
  text-align: left;
}
.pitch { padding-top: 18px; }
.pitch .t-eyebrow { display: block; margin-bottom: 16px; }
.aplicar .pitch h1 {
  text-align: left;
  margin: 0 0 14px;
  font: 400 clamp(34px, 4.5vw, 48px)/1.08 var(--font-display);
  letter-spacing: -.015em;
  color: var(--text-display);
}
.pitch__intro {
  margin: 0 0 28px;
  font: 400 17px/1.6 var(--font-text);
  color: var(--text-muted);
  max-width: 38ch;
}
.pitch__puntos {
  list-style: none;
  margin: 0 0 30px; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pitch__puntos li {
  position: relative;
  padding-left: 18px;
  font: 400 16px/1.55 var(--font-text);
  color: var(--text-body);
  max-width: 40ch;
}
.pitch__puntos li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--accent-600);
  font-weight: 700;
}
.pitch__nota { margin: 0; font: 400 14px/1.55 var(--font-text); color: var(--text-faint); }

.tarjeta-form {
  background: var(--surface-card);
  border-radius: var(--radius-l);
  padding: 28px 26px;
  box-shadow: var(--shadow-2);
}
/* Altura EXPLÍCITA: el iframe de Calendly es height:100% y colapsa
   contra un contenedor sin altura definida (min-height no basta). */
#cita-lado { height: 700px; }
#cita-lado iframe { border-radius: var(--radius-m); }

@media (max-width: 920px) {
  .aplicar { grid-template-columns: 1fr; gap: 40px; }
  .pitch { padding-top: 0; }
  .tarjeta-form { padding: 24px 20px; }
  #cita-lado { height: 940px; }
}

/* ---- Campos --------------------------------------------------------------- */
.formulario { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field__label { font: 500 13px/1.2 var(--font-text); color: var(--text-muted); }
.field__label small { font-size: 13px; font-weight: 400; color: var(--text-faint); }
.field__input {
  width: 100%; height: 52px; padding: 0 18px;
  font: 400 16px/1.4 var(--font-text); color: var(--text-display);
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-s); outline: none;
  transition: var(--transition-soft);
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:focus { border-color: var(--tinta-900); }
select.field__input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E6459' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
select.field__input:invalid { color: var(--text-faint); }

.formulario .btn { width: 100%; margin-top: 10px; }
.formulario .btn:disabled { opacity: .4; cursor: default; }
/* Contacto secundario: presente, sin competir con el formulario. */
.whats-alt {
  margin: 16px 0 0;
  text-align: center;
  font: 400 14px/1.55 var(--font-text);
  color: var(--text-faint);
}

/* ---- El precio (paso 2 de la admisión) ------------------------------------- */
.garantia {
  background: var(--surface-tint);
  border-radius: var(--radius-l);
  padding: 24px 26px;
  max-width: 480px;
  margin: 0 auto 26px;
}
.garantia p {
  margin: 0;
  font: 400 16px/1.65 var(--font-text);
  color: var(--text-body);
  text-align: center;
}
.precio-accion { display: flex; justify-content: center; margin-top: 6px; }
#precio-codigo { margin-bottom: 22px; }

/* ---- La cita -----------------------------------------------------------------
   Calendly llena a su contenedor: la altura tiene que ser explícita y generosa
   para que el calendario respire sin scroll interno. */
.paso--cita .col-form { max-width: 760px; }
#calendly { height: 820px; }
#calendly iframe { border-radius: var(--radius-m); }
@media (max-width: 560px) {
  #calendly { height: 940px; }
}

/* ---- El cierre ------------------------------------------------------------------ */
.paso--listo { text-align: center; padding-top: 8vh; }
.listo__sol {
  display: inline-block; width: 58px; height: 58px;
  color: var(--sol-500); margin-bottom: 26px;
}
.listo__sol svg { width: 100%; height: 100%; }
html.js .paso--listo:not([hidden]) .rayo {
  stroke-dasharray: 20; stroke-dashoffset: 20;
  animation: trazo var(--dur-drift) var(--ease-out) forwards;
}
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(2) { animation-delay: 70ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(3) { animation-delay: 140ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(4) { animation-delay: 210ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(5) { animation-delay: 280ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(6) { animation-delay: 350ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(7) { animation-delay: 420ms; }
html.js .paso--listo:not([hidden]) .rayo:nth-of-type(8) { animation-delay: 490ms; }
.paso--listo p {
  margin: 0 auto 30px;
  font: 400 17px/1.6 var(--font-text);
  color: var(--text-muted);
  max-width: 38ch;
}
.volver {
  font: 500 14px/1.4 var(--font-text);
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: var(--transition-soft);
}
.volver:hover { color: var(--tinta-900); border-bottom-color: var(--tinta-900); }

/* ---- /agenda: la puerta como marca --------------------------------------------
   El arco relleno en el acento — el símbolo de Temoc — regresa al inicio. */
.mark-arco {
  display: inline-block;
  width: 26px; height: 34px;
  background: var(--accent-500);
  border-radius: 999px 999px 4px 4px;
  transition: var(--transition-soft);
}
.mark-arco:hover { background: var(--accent-600); transform: translateY(-3px); }

/* ---- /app: descarga y código de invitación -------------------------------------- */
.tiendas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.tiendas .btn[aria-disabled="true"] { opacity: .4; cursor: default; pointer-events: none; }
.codigo-caja { margin-top: 9vh; text-align: center; }
.codigo {
  display: block;
  font: 400 clamp(34px, 7vw, 54px)/1.1 var(--font-display);
  letter-spacing: .06em;
  color: var(--text-display);
  margin: 8px 0 26px;
  word-break: break-all;
}
.codigo-acciones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Prosa legal (privacidad y afines) ------------------------------------- */
.prosa {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 20px;
  text-align: left;
}
.prosa .t-eyebrow { display: block; margin-bottom: 14px; }
.prosa h1 {
  margin: 0 0 8px;
  font: 400 clamp(30px, 4.4vw, 42px)/1.12 var(--font-display);
  letter-spacing: -.015em;
  color: var(--text-display);
}
.prosa__fecha { margin: 0 0 30px; font: 400 13px/1.5 var(--font-text); color: var(--text-faint); }
.prosa h2 {
  margin: 34px 0 10px;
  font: 400 24px/1.2 var(--font-display);
  color: var(--text-display);
}
.prosa p, .prosa li {
  margin: 0 0 12px;
  font: 400 15px/1.7 var(--font-text);
  color: var(--text-body);
}
.prosa b { font-weight: 500; color: var(--text-display); }
.prosa ul { margin: 0 0 12px; padding-left: 20px; }
.prosa a { color: var(--text-body); border-bottom: 1px solid var(--arena-300); }
.prosa a:hover { color: var(--tinta-900); border-bottom-color: var(--tinta-900); }

@media (prefers-reduced-motion: reduce) {
  .paso:not([hidden]) { animation: none; }
  html.js .paso--listo:not([hidden]) .rayo { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .mark-arco:hover { transform: none; }
}
