/* Panel "Conversemos" compartido (mismo diseño que el del home). Se carga en las páginas que abren el formulario sin ir al home. */
/* ==========================================================================
   CONVERSEMOS — scrim, panel deslizante y buscador
   ========================================================================== */

.ph-conv-scrim {
  position: fixed; inset: 0; z-index: 900; background: rgba(17,19,21,.55);
  opacity: 0; display: none; transition: opacity .25s ease;
}
.ph-conv-scrim.is-open { opacity: 1; display: block; }

.ph-conv-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 910;
  width: min(438px, 92vw); box-sizing: border-box; background: var(--paper, #fff);
  border-left: 1px solid var(--grey); box-shadow: none;
  transform: translateX(101%); visibility: hidden;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), visibility 0s linear .32s;
  display: flex; flex-direction: column; overflow: hidden;
}
/* La sombra y la visibilidad solo existen con el panel abierto: cerrado, su sombra se asomaba como una franja oscura en el borde derecho */
.ph-conv-panel.is-open { transform: translateX(0); visibility: visible; box-shadow: -24px 0 60px rgba(17,19,21,.28); transition-delay: 0s; }

.ph-conv-panel__mountain { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(308px, 30vh, 418px); pointer-events: none; overflow: hidden; }
.ph-conv-panel__mountain img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: grayscale(.75) saturate(.22) contrast(.95) brightness(.92); opacity: .46; }
.ph-conv-panel__mountain-fade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(250,250,249,.92) 18%, rgba(250,250,249,.55) 46%, rgba(250,250,249,.14) 74%, rgba(250,250,249,0) 100%); }
.ph-conv-panel__mountain-dark { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(17,19,21,0) 0%, rgba(17,19,21,.55) 55%, rgba(17,19,21,.85) 100%); }
.ph-conv-panel__mountain-tag { position: absolute; left: 34px; right: 34px; bottom: 24px; display: flex; flex-direction: column; gap: 2px; }
.ph-conv-panel__mountain-tag span { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(250,250,249,.82); }
.ph-conv-panel__mountain-tag .is-yellow { color: var(--yellow); }

.ph-conv-panel__inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ph-conv-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 28px 0; }
.ph-conv-panel__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph-conv-panel__kicker-line { width: 22px; height: 1.5px; background: var(--black); }
.ph-conv-panel__kicker span:last-child { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; }
.ph-conv-panel__head h2 { margin: 0; font-size: 24px; line-height: 1.14; letter-spacing: -.025em; font-weight: 700; }
.ph-conv-panel__close { background: none; border: none; font-size: 24px; line-height: 1; color: var(--steel); cursor: pointer; padding: 0; min-width: 44px; min-height: 44px; }

.ph-conv-panel__progress { padding: 14px 28px 0; }
.ph-conv-panel__progress span { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; color: var(--steel); }
.ph-conv-panel__progress-track { margin-top: 10px; height: 1px; background: var(--grey); position: relative; }
.ph-conv-panel__progress-fill { position: absolute; inset: 0 auto 0 0; width: 33.3%; height: 1px; background: var(--yellow); transition: width .3s ease; }
.ph-conv-panel__progress.is-hidden { display: none; }

.ph-conv-panel__body { flex: 1; overflow-y: auto; padding: 16px 28px 26px; }

/* ---- Tarjetas de opción reutilizables (steps 1 y 2) ---- */
.ph-conv-option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--grey); background: #fff;
  color: var(--black); font-size: 14.5px; font-weight: 550; text-align: left; cursor: pointer;
}
.ph-conv-option[aria-pressed="true"] { border-color: var(--yellow); background: rgba(234,203,53,.08); }
.ph-conv-option svg { flex: none; }
.ph-conv-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-conv-option-list { display: grid; gap: 7px; }

.ph-conv-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  margin-top: 20px; background: var(--yellow); color: var(--black); font: 600 14px Manrope, sans-serif;
  border: none; border-radius: 8px; cursor: pointer;
}
.ph-conv-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.ph-conv-btn-primary.is-dark { background: var(--black); color: var(--white); }
.ph-conv-btn-back {
  display: block; width: 100%; text-align: center; margin-top: 10px; padding: 12px 0;
  background: none; border: none; font-size: 14.5px; font-weight: 600; color: var(--steel); cursor: pointer;
}

.ph-conv-step__lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--steel); }
.ph-conv-step__question { font-size: 16px; font-weight: 600; margin: 18px 0 10px; }

/* Step 3: formulario */
.ph-conv-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ph-conv-tag { font-size: 12.5px; letter-spacing: .04em; padding: 5px 9px; background: #fff; border: 1px solid var(--grey); border-left: 2px solid var(--yellow); border-radius: 6px; color: var(--black); }
.ph-conv-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; margin-top: 18px; }
.ph-conv-field { min-width: 0; }
.ph-conv-field input, .ph-conv-field textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ph-conv-field { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--steel); }
.ph-conv-field--wide { grid-column: 1 / -1; margin-top: 15px; }
.ph-conv-field input, .ph-conv-field textarea {
  border: 1px solid var(--grey); border-radius: 8px; padding: 11px 12px; font: 400 14px Manrope, sans-serif;
  color: var(--black); background: #fff;
}
.ph-conv-field textarea { line-height: 1.5; resize: vertical; }
.ph-conv-msg { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #8a5a2a; min-height: 16px; }
.ph-conv-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.ph-conv-divider span:first-child, .ph-conv-divider span:last-child { flex: 1; height: 1px; background: var(--grey); }
.ph-conv-divider span:nth-child(2) { font-size: 12.5px; color: var(--steel); flex: none; }
.ph-conv-disclaimer { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--steel); }
.ph-conv-required-note { margin: 12px 0 0; font-size: 11.5px; color: var(--steel); }

/* Consentimiento de privacidad (necesario y opcional) */
.ph-conv-consent-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--grey); display: flex; flex-direction: column; gap: 16px; }
.ph-conv-consent-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--steel); margin-bottom: 10px; }
.ph-conv-consent-row { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ph-conv-consent-row input[type="checkbox"] {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.ph-conv-consent-box {
  flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--grey); border-radius: 6px; background: #fff; transition: background .2s ease, border-color .2s ease;
}
.ph-conv-consent-box svg { opacity: 0; transition: opacity .15s ease; }
.ph-conv-consent-row input:checked + .ph-conv-consent-box { border-color: var(--yellow); background: var(--yellow); }
.ph-conv-consent-row input:checked + .ph-conv-consent-box svg { opacity: 1; }
.ph-conv-consent-text { flex: 1; font-size: 12.5px; line-height: 1.55; color: var(--steel); padding-top: 2px; }
.ph-conv-consent-text a { color: inherit; text-decoration: underline; }
.ph-conv-consent-withdraw { margin: 0; font-size: 12px; line-height: 1.5; color: var(--steel); }
.ph-conv-consent-withdraw a { color: inherit; text-decoration: underline; }

/* Confirmación */
.ph-conv-check {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--yellow); box-shadow: 0 8px 22px rgba(17,19,21,.08); margin-bottom: 20px;
}
.ph-conv-confirm-title { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--black); }
.ph-conv-confirm-sub { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--steel); }
.ph-conv-hr { height: 1px; background: var(--grey); margin: 26px 0; }
.ph-conv-confirm-q { font-size: 17px; font-weight: 600; }

/* Transición WhatsApp */
.ph-conv-wa-message { margin-top: 20px; background: #fff; border: 1px solid var(--grey); border-left: 2px solid var(--yellow); border-radius: 2px; padding: 16px 17px; box-shadow: 0 8px 22px rgba(17,19,21,.06); }
.ph-conv-wa-label { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; color: var(--steel); margin-bottom: 10px; }
.ph-conv-wa-text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--black); }
.ph-conv-wa-action { margin-top: 22px; }
.ph-conv-wa-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 11px 13px;
  border-radius: 10px; border: 1px solid var(--grey); background: #fff; color: var(--black);
  font: 600 13.5px Manrope, sans-serif; cursor: not-allowed; opacity: .55; text-decoration: none;
}
.ph-conv-wa-note { margin: 8px 0 0; font-size: 12.5px; color: var(--steel); }

/* Otros canales */
.ph-conv-channel-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--grey); background: #fff; color: var(--black); font-size: 14.5px; font-weight: 550; text-decoration: none; }
.ph-conv-channel-tagline { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }

@media (max-width: 899px) {
  .ph-conv-panel { width: 100vw; }
  .ph-conv-panel__head, .ph-conv-panel__progress, .ph-conv-panel__body { padding-left: 22px; padding-right: 22px; }
  .ph-conv-panel__mountain-tag { left: 22px; right: 22px; }
  .ph-conv-option-grid { grid-template-columns: 1fr; }
  .ph-conv-form-grid { grid-template-columns: 1fr; }
}

/* En móvil, las secciones no fuerzan pantalla completa (para evitar
   espacios vacíos raros cuando el contenido es corto en una pantalla
   angosta) — solo aplica el efecto de "pantalla completa" en escritorio. */