/* Chatbot IA · landing compacta (index-nuevo.html)
   Se carga después de home-curvas.css y solo agrega las piezas nuevas:
   problema, tres pilares y pasos compactos. */

/* ---------- problema ---------- */
.pain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pain li { display: grid; gap: 8px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 50px -42px rgba(10,106,130,.5); }
.pain .ico { margin-bottom: 8px; }
.pain h3 { font-size: var(--h3-m); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.pain p { color: var(--t2); font-size: 15.5px; }

/* ---------- tres pilares ---------- */
.pil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pilar { display: flex; flex-direction: column; padding: 12px 12px clamp(22px, 2.6vw, 30px); border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(8,32,42,.04), 0 40px 70px -48px rgba(10,106,90,.55); }
.pilar-v { border-radius: 20px; min-height: 290px; display: grid; place-items: center; padding: clamp(16px, 2vw, 24px); margin-bottom: 22px; }
.pilar-v .ucard { width: 100%; max-width: 340px; padding: 16px; gap: 9px; border-radius: 20px; }
.pilar .kick { display: inline-block; align-self: flex-start; margin: 0 14px; font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 10px; background: var(--ice-2); color: var(--t2); }
.pilar h3 { margin: 12px 14px 14px; font-size: var(--h3-l); line-height: 1.12; letter-spacing: -.04em; font-weight: 400; max-width: 16ch; text-wrap: balance; }
.tick { list-style: none; padding: 0; margin: 0 14px; display: grid; gap: 10px; }
.tick li { display: flex; gap: 10px; font-size: 15px; color: var(--t2); }
.tick .i { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: url(#gMarca); stroke-width: 2.2; }

/* piezas de las vistas previas (solo dentro de los pilares) */
.pilar-v .ut { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14px; padding-bottom: 4px; }
.pilar-v .ut small { font-weight: 400; color: var(--t3); font-size: 12px; }
.pilar-v .mb { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.pilar-v .mb.in { justify-self: start; background: var(--ice-2); border-bottom-left-radius: 4px; }
.pilar-v .mb.bot { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.pilar-v .slotrow { display: flex; gap: 6px; justify-self: end; }
.pilar-v .slotrow span { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 10px; background: var(--ice-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.pilar-v .slotrow .sel { background: linear-gradient(140deg, #0a8466, #0b7f96); color: #fff; }
.pilar-v .sent-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; padding: 8px 11px; border-radius: 10px; background: #e7f7f1; color: #0a6b55; }
.pilar-v .sent-note .i { flex: none; width: 15px; height: 15px; stroke-width: 2.2; }
.pilar-v .u-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pilar-v .u-kpis div { padding: 9px 10px; border-radius: 14px; background: var(--ice); font-size: 11.5px; color: var(--t2); }
.pilar-v .u-kpis b { display: block; margin-top: 2px; font-size: 22px; font-weight: 400; letter-spacing: -.03em; color: var(--ink); }
.pilar-v .staff { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; }
.pilar-v .staff i { width: 8px; height: 28px; border-radius: 4px; background: var(--c, #1fb5a0); }
.pilar-v .staff b { display: block; font-weight: 500; line-height: 1.2; }
.pilar-v .staff small { color: var(--t3); font-size: 11.5px; }

/* ---------- pasos compactos ---------- */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.steps3 li { position: relative; padding: clamp(22px, 2.6vw, 30px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 50px -42px rgba(10,106,130,.5); }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 52px; width: 14px; height: 2px; background: linear-gradient(90deg, #22c98f, #0e93a8); opacity: .8; }
.steps3 .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; font-weight: 500; color: #fff; background: linear-gradient(140deg, #0a8466, #0b7f96); box-shadow: 0 14px 24px -14px rgba(10,132,102,.8); }
.steps3 h3 { font-size: var(--h3-l); line-height: 1.12; letter-spacing: -.04em; font-weight: 400; margin: 20px 0 8px; }
.steps3 p { color: var(--t2); font-size: 15.5px; max-width: 32ch; }

/* ---------- ajustes de secciones existentes ---------- */
.sec.tight .head { margin-bottom: clamp(28px, 4vw, 48px); }
.plans-note { text-align: center; color: var(--t2); font-size: 15.5px; margin: 26px auto 0; max-width: 56ch; text-wrap: balance; }

@media (max-width: 960px) {
  .pil { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pilar h3 { max-width: none; }
}
@media (max-width: 760px) {
  .pain, .steps3 { grid-template-columns: 1fr; }
  .steps3 li:not(:last-child)::after { display: none; }
}

/* ---------- para quién es ---------- */
.quien { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quien li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-content: start; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.quien .ico { grid-row: span 2; }
.quien h3 { font-size: var(--h3-s); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; align-self: end; }
.quien p { color: var(--t2); font-size: 14.5px; }
.quien-nota { margin-top: 18px; text-align: center; color: var(--t3); font-size: 14.5px; }

/* ---------- calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; align-items: stretch; }
.calc-in { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 50px -42px rgba(10,106,130,.5); align-content: center; }
.calc-in label { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: baseline; font-size: 15.5px; color: var(--t2); }
.calc-in label b { font-weight: 500; color: var(--ink); font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-in input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: #0b9a86; }
.calc-out { border-radius: 28px; padding: clamp(24px, 3.2vw, 40px); display: grid; gap: 18px; align-content: center; color: #fff; }
.calc-out small { display: block; font-size: 14px; color: rgba(255,255,255,.88); }
.calc-out b { display: block; font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-out b.big { font-size: clamp(40px, 5vw, 64px); }
.calc-out p { font-size: 13px; color: rgba(255,255,255,.85); max-width: 40ch; }
.calc-out .btn-primary { justify-self: start; }

/* ---------- confianza ---------- */
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 4px 0; }
.trust b { display: block; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.trust small { display: block; color: var(--t2); font-size: 14px; margin-top: 2px; }

/* ---------- ritmo más compacto ---------- */
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec.tight { padding-block: clamp(44px, 5vw, 72px); }
.head { margin-bottom: clamp(26px, 3.6vw, 48px); }

@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quien { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .quien, .trust { grid-template-columns: 1fr; }
}
/* ---------- CRM y datos en pestañas ---------- */
.ctabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: clamp(20px, 3vw, 32px); border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ctabs button { font: inherit; font-size: 15px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--t2); cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.ctabs button[aria-selected="true"] { color: #fff; background: linear-gradient(140deg, #0a8466, #0b7f96); }
.ctabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.cpan[hidden] { display: none; }
.vs-wrap { border-radius: 28px; padding: clamp(24px, 4vw, 52px); }
@media (max-width: 600px) { .ctabs { display: flex; } .ctabs button { flex: 1; padding: 10px 8px; font-size: 14px; } }
/* ---------- héroe: botones centrados sobre los ticks y sugerencias del chat ---------- */
.hero-act { align-items: center; }
.hero-act .ctas, .hero-act .meta { justify-content: center; }
.sugs { justify-content: center; padding-top: 12px; }
@media (max-width: 1020px) { .hero-act { align-items: flex-start; } .hero-act .ctas, .hero-act .meta { justify-content: flex-start; } }
/* confirmación del chat del héroe: un poco más separada de la conversación */
#chatHero .msg.ok { margin-top: 18px; }
/* ---------- ventana de turnos dentro del chat (no modal) ---------- */
.hero .chatcard { position: relative; }
.hero .tp { position: absolute; inset: 0; width: auto; max-height: none; margin: 0; border-radius: 20px; }
.hero .tp[open] { display: grid; place-items: center; padding: 12px; z-index: 5; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.hero .tp .tp-card { width: 100%; max-height: 100%; box-shadow: 0 24px 50px -28px rgba(3,40,56,.6); border: 1px solid var(--line); }
/* texto de la sección "problema" justificado */
#problema .head p { text-align: justify; text-justify: inter-word; hyphens: none; overflow-wrap: normal; word-break: normal; }
/* pilares sin etiqueta superior */
.pilar h3 { margin-top: 2px; }

/* pilares: imagen, título y ticks comparten filas, así los ticks quedan al mismo nivel en las tres tarjetas */
.pil { grid-template-rows: auto auto 1fr; }
.pilar { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.pilar-v { margin-bottom: 22px; }
.pilar .tick { align-content: start; }
.pilar h3 { max-width: none; text-wrap: pretty; }

/* ---------- CRM y datos unificados en una sola sección ---------- */
.cpan-t { font-size: var(--h3-l); font-weight: 400; letter-spacing: -.035em; margin: 0 0 14px; }
.cpan-datos { margin-top: clamp(28px, 4vw, 48px); }
.cpan-datos .cpan-t { color: var(--ink); }
/* CRM y datos: bloque más bajo */
.crm-3 { min-height: 540px; }
.crm-stage { padding-block: clamp(36px, 4vw, 52px) clamp(16px, 2.4vw, 30px); }
/* ventas y estadísticas más compacto: lista en fila y dashboard a todo el ancho, sin huecos */
@media (min-width: 1021px) {
  .vs-wrap { padding: clamp(22px, 3vw, 38px); }
  .vs { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .vs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .vs-list h3 { font-size: var(--h3-s); }
  .vs-list p { font-size: 14.5px; }
  .dash { padding: 18px; gap: 12px; }
  .dg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg .dc.wide { grid-column: span 2; }
}
/* aclaración de la calculadora: a todo el ancho y justificada */
.calc-out p { max-width: none; text-align: justify; text-justify: inter-word; hyphens: none; }

/* calculadora: barras y valores con la misma identidad del resto de la página */
.calc-in { gap: 26px; }
.calc-in label b { padding: 3px 11px; border-radius: 10px; background: var(--ice-2); font-size: 16px; }
.calc-in input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 10px; cursor: pointer; outline: none; margin: 4px 0 2px;
  background: linear-gradient(90deg, #22c98f, var(--sky), #0e93a8) 0 / var(--p, 50%) 100% no-repeat, var(--ice-2); }
.calc-in input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 10px; background: #fff; border: 2px solid #0b9a86; box-shadow: 0 6px 14px -4px rgba(10,106,130,.55); transition: transform 160ms var(--out); }
.calc-in input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 10px; background: #fff; border: 2px solid #0b9a86; box-shadow: 0 6px 14px -4px rgba(10,106,130,.55); }
.calc-in input[type=range]::-moz-range-track { background: transparent; }
.calc-in input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }
.calc-in input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(14,147,168,.3); }
/* planes: las tarjetas ocupan el mismo ancho que el resto del contenido */
.plans { max-width: none; }
#planes .head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
#planes .head p { max-width: none; text-align: justify; text-justify: inter-word; hyphens: none; }
/* confianza dentro de funciones */
.trust-in { margin-top: clamp(28px, 3.6vw, 44px); padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--line-2); }
/* función destacada: consulta al dueño y aprende */
.aprende { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 18px; padding: 12px; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(8,32,42,.04), 0 40px 70px -48px rgba(10,106,90,.55); }
.aprende-t { padding: clamp(14px, 2.4vw, 34px); }
.aprende-t h3 { font-size: var(--h3-xl); line-height: 1.08; letter-spacing: -.045em; font-weight: 400; max-width: 18ch; text-wrap: balance; }
.aprende-t p { margin-top: 14px; color: var(--t2); font-size: 16.5px; max-width: 46ch; }
.aprende-pasos { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.aprende-pasos li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; font-size: 15.5px; }
.aprende-pasos b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #fff; background: linear-gradient(140deg, #0a8466, #0b7f96); }
.aprende-v { margin-bottom: 0; min-height: 360px; }
.pilar-v .mb.own { justify-self: end; background: #e7f7f1; color: #0a4f40; border-bottom-right-radius: 4px; }
.pilar-v .mb.own small { display: block; font-size: 11.5px; font-weight: 500; opacity: .75; margin-bottom: 2px; }
.trust-in { margin-top: clamp(22px, 3vw, 34px); }
@media (min-width: 601px) { .trust-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .aprende { grid-template-columns: minmax(0, 1fr); } .aprende-t h3 { max-width: none; } }
/* aviso 'Aprendió una respuesta nueva': centrado y más separado */
.aprende-v .sent-note { justify-content: center; text-align: center; margin-top: 16px; }

/* llamado final: separado del bloque de preguntas */
.cta-sec { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 72px); }

/* lista desplegable propia (rubro del formulario de contacto) */
.dd { position: relative; }
.dd-native { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; text-align: left; cursor: pointer; padding-right: 40px; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233d5762' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.dd-btn.vacio { color: #86a0ab; }
.dd-btn[aria-expanded="true"] { border-color: var(--sky); background-color: #fff; box-shadow: 0 0 0 4px rgba(34,201,143,.22); }
.dd-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 50px -24px rgba(3,40,56,.45); animation: ddIn 160ms var(--out); }
.dd-list[hidden] { display: none; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }
.dd-list li { padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); cursor: pointer; outline: none; }
.dd-list li:hover, .dd-list li:focus { background: var(--ice); }
.dd-list li[aria-selected="true"] { background: var(--ice-2); font-weight: 500; }
/* fondo único: las tarjetas se definen con borde fino ahora que no hay franjas de color entre secciones */
.pilar, .aprende { border: 1px solid var(--line); }

/* el recuadro del CRM conserva su fondo celeste con ondas */
/* franjas de la página: blanco y celeste liso, alternando; sin patrón detrás del texto */
.sec.bg-ice::before, .sec.bg-ice::after { content: none; }

/* ---------- coherencia: celeste con más presencia y calculadora clara ---------- */
.sec.bg-ice { background: linear-gradient(180deg, #e9f6f2, #d9eee9); border-block: 1px solid #cde4de; }
.calc-out { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 50px -42px rgba(10,106,130,.5); }
.calc-out small { color: var(--t2); }
.calc-out b { color: var(--ink); }
.calc-out b.big { background: linear-gradient(140deg, #0a8466, #0b7f96); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.calc-out p { color: var(--t3); }

/* título del héroe: ocupa el ancho disponible y se reparte parejo en dos renglones */
/* (sin cambios: el título usa el tamaño y ancho originales de home-curvas.css) */

/* rubros: "Ver todos" */
.quien-mas { margin-top: 14px; } .quien-mas[hidden] { display: none; }
.quien-mas-t { margin: 22px 0 14px; font-size: 15px; font-weight: 500; color: var(--t3); letter-spacing: 0; text-align: center; }
.quien-nota a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.quien-ver { display: flex; justify-content: center; margin-top: 18px; }


/* En celulares, los campos con letra menor a 16px hacen que el iPhone acerque la pantalla al tocarlos */
@media (max-width: 640px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }

/* enlace para saltar al contenido: visible solo al enfocarlo con el teclado */
.saltar { position: absolute; left: 12px; top: -64px; z-index: 1000; background: #fff; color: #0b1f27; padding: 10px 16px; border-radius: 10px; font-weight: 500; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: top 160ms ease; }
.saltar:focus { top: 12px; }
