/* ============================================================================
   CONTACTO · CONVERSACIÓN DIRECTA (2026-10-09)
   La página es la conversación: una persona con nombre y rostro, WhatsApp como
   salida principal y el mensaje que se arma a la vista antes de enviarlo.
   Movimiento mínimo y causal: quien responde «escribe» la pregunta una vez y tu
   borrador aparece como burbuja mientras lo escribes. Reduced-motion: estático.
   ========================================================================== */

[data-rh-ct="conversacion"] .ct-hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 15vh, 168px) 0 clamp(64px, 9vh, 104px);
  background:
    radial-gradient(48% 60% at 74% 48%, rgba(242, 106, 27, 0.12), transparent 70%),
    radial-gradient(60% 70% at 20% 0%, rgba(30, 155, 196, 0.10), transparent 70%),
    #070d14;
}
[data-rh-ct="conversacion"] .ct-hero__inner {
  width: min(1180px, 100% - 48px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: clamp(36px, 6vw, 88px); align-items: center;
}
[data-rh-ct="conversacion"] .ct-title { margin: 14px 0 0; font-size: clamp(34px, 4.3vw, 58px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: #fff; max-width: 13em; }
[data-rh-ct="conversacion"] .ct-sub { margin: 20px 0 0; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: rgba(214, 226, 234, 0.86); }
[data-rh-ct="conversacion"] .ct-copy .sx-ctx { margin-top: 20px; }

[data-rh-ct="conversacion"] .ct-person { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; }
[data-rh-ct="conversacion"] .ct-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #070d14, 0 0 0 3px rgba(242, 106, 27, 0.7); }
[data-rh-ct="conversacion"] .ct-person p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
[data-rh-ct="conversacion"] .ct-person b { font-size: 15px; color: #fff; }
[data-rh-ct="conversacion"] .ct-person span { font-size: 13px; color: rgba(214, 226, 234, 0.7); }
[data-rh-ct="conversacion"] .ct-person a { color: #ffb48a; text-decoration: none; border-bottom: 1px solid rgba(255, 180, 138, 0.35); }
[data-rh-ct="conversacion"] .ct-person a:hover, [data-rh-ct="conversacion"] .ct-person a:focus-visible { color: #fff; border-color: #f26a1b; }

[data-rh-ct="conversacion"] .ct-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
[data-rh-ct="conversacion"] .ct-alt { font-size: 15px; color: rgba(214, 226, 234, 0.78); text-decoration: none; }
[data-rh-ct="conversacion"] .ct-alt:hover, [data-rh-ct="conversacion"] .ct-alt:focus-visible { color: #fff; }

/* --- La ventana de conversación ----------------------------------------- */
[data-rh-ct="conversacion"] .ct-chat {
  position: relative; width: 100%; max-width: 470px; justify-self: end;
  border-radius: 22px; overflow: hidden;
  background: rgba(10, 20, 28, 0.86); border: 1px solid rgba(214, 222, 227, 0.14);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(242, 106, 27, 0.05);
}
[data-rh-ct="conversacion"] .ct-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(214, 222, 227, 0.1); background: rgba(23, 48, 66, 0.4); }
[data-rh-ct="conversacion"] .ct-chat__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
[data-rh-ct="conversacion"] .ct-chat__head p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
[data-rh-ct="conversacion"] .ct-chat__head b { font-size: 15px; color: #fff; }
[data-rh-ct="conversacion"] .ct-chat__head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(214, 226, 234, 0.7); }
[data-rh-ct="conversacion"] .ct-chat__head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fd07a; }

[data-rh-ct="conversacion"] .ct-chat__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; min-height: 176px; }
[data-rh-ct="conversacion"] .ct-bubble { position: relative; max-width: 86%; margin: 0; padding: 11px 14px; font-size: 15px; line-height: 1.45; border-radius: 16px; overflow-wrap: anywhere; white-space: pre-line; }
[data-rh-ct="conversacion"] .ct-bubble--in { align-self: flex-start; display: block; border-bottom-left-radius: 4px; background: #1b2c38; color: #fff; font-weight: 600; cursor: text; }
[data-rh-ct="conversacion"] .ct-bubble--out { align-self: flex-end; border-bottom-right-radius: 4px; background: rgba(30, 155, 196, 0.2); border: 1px solid rgba(127, 208, 234, 0.25); color: #eaf7fc; }
[data-rh-ct="conversacion"] .ct-bubble--ctx { font-size: 13px; color: rgba(234, 247, 252, 0.82); }
[data-rh-ct="conversacion"] .ct-bubble[hidden] { display: none; }

[data-rh-ct="conversacion"] .ct-chat__compose { display: grid; gap: 10px; padding: 0 20px; }
[data-rh-ct="conversacion"] .ct-chat__f {
  width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border-radius: 14px;
  background: rgba(4, 10, 16, 0.7); border: 1px solid rgba(214, 222, 227, 0.18); color: #fff; font: inherit; font-size: 15px; line-height: 1.45;
}
[data-rh-ct="conversacion"] .ct-chat__f::placeholder { color: rgba(214, 226, 234, 0.45); }
[data-rh-ct="conversacion"] .ct-chat__f:focus { outline: none; border-color: rgba(242, 106, 27, 0.7); box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.18); }
[data-rh-ct="conversacion"] .ct-chat__compose .rh-btn { width: 100%; justify-content: center; }
[data-rh-ct="conversacion"] .ct-chat__note { margin: 12px 20px 18px; font-size: 12.5px; line-height: 1.45; color: rgba(214, 226, 234, 0.6); }

/* movimiento causal: la pregunta se «escribe» una vez; tu borrador entra al escribir */
[data-rh-ct="conversacion"] .ct-bubble--in.is-typing { color: transparent; }
[data-rh-ct="conversacion"] .ct-bubble--in.is-typing::after {
  content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(214, 226, 234, 0.7);
  box-shadow: 11px 0 0 rgba(214, 226, 234, 0.5), 22px 0 0 rgba(214, 226, 234, 0.3); animation: ct-dots 0.9s ease-in-out infinite;
}
@keyframes ct-dots { 50% { opacity: 0.4; } }
[data-rh-ct="conversacion"] .ct-bubble--draft { animation: ct-in 0.28s ease-out both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- Otros caminos: dos columnas -------------------------------------- */
[data-rh-ct="conversacion"] .ct-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); margin-top: 22px; }

@media (max-width: 900px) {
  [data-rh-ct="conversacion"] .ct-hero { padding-top: 104px; }
  [data-rh-ct="conversacion"] .ct-hero__inner { grid-template-columns: 1fr; width: calc(100% - 40px); }
  [data-rh-ct="conversacion"] .ct-chat { justify-self: stretch; max-width: none; }
  [data-rh-ct="conversacion"] .ct-doors { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-rh-ct="conversacion"] .ct-bubble--draft, [data-rh-ct="conversacion"] .ct-bubble--in.is-typing::after { animation: none; }
}
