/* iabot — portada «Conoce a iabot»: las secciones bajo la demo, con las medidas de la landing de Grok Bot.
   Tarjetas var(--card) (oscuro o claro) con radio 24, títulos de 36 px en 500, texto gris de 18 px y mucho aire entre bloques. */
.wrap { max-width: 1232px; margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.card { background: var(--card); border-radius: 24px; }
.sec-title, .sec-head h2, .talk h2, .jobs h2, .use h2, .faq h2, .final h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; font-weight: 500; letter-spacing: -.01em; }
.sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; display: grid; gap: 14px; }
.sec-head p { font-size: 18px; line-height: 1.625; color: var(--soft); }
#producto, .many, .jobs, .film, .prices, .use, .guides, .faq { margin-top: clamp(96px, 14vw, 180px); }
#producto { margin-top: 120px; }

/* ---------- Escríbeles como a tu equipo: la mascota en grande ---------- */
.talk { position: relative; display: flex; align-items: center; min-height: 352px; padding: 48px; clip-path: inset(-140px 0 0 0 round 0 0 24px 24px); }
.talk__txt { position: relative; z-index: 1; max-width: 460px; display: grid; gap: 16px; }
.talk__txt p { font-size: 18px; line-height: 1.625; color: var(--muted); }
.talk__face { position: absolute; right: 6%; top: -90px; width: min(440px, 40%); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 80px -20px var(--shadow); }

/* ---------- Cuatro tarjetas ilustradas ---------- */
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feat { display: flex; flex-direction: column; gap: 4px; min-height: 404px; padding: 32px 32px 0; overflow: hidden; }
.feat h3 { font-size: 16px; line-height: 1.6; font-weight: 500; }
.feat > p { font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 520px; }
.feat__art { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; margin-top: 26px; }
/* Pinturas de fondo: degradados con grano, como las ilustraciones de Grok */
.paint { position: relative; flex: 1; min-height: 200px; border-radius: 14px 14px 0 0; overflow: hidden; display: grid; place-items: end center; padding: 22px 22px 0; }
.paint::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paint--a { background: radial-gradient(120% 90% at 10% 100%, #3d6b4f 0%, transparent 55%), radial-gradient(90% 80% at 90% 0%, #4f8a8f 0%, transparent 60%), linear-gradient(160deg, #6fa3a0, #b9a06a 60%, #8a6a3d); }
.paint--b { background: radial-gradient(100% 80% at 0% 0%, #3b5f86 0%, transparent 60%), radial-gradient(90% 90% at 100% 100%, #e08a5b 0%, transparent 60%), linear-gradient(180deg, #5b7fa6, #d79a7a); }

.pc { margin: 0 -32px; padding: 0 32px 14px; }
.pc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pc__top b { font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 12px; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live 1.6s infinite; }
.pc__ask { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.mini { position: relative; z-index: 1; width: min(100%, 360px); border-radius: 10px 10px 0 0; background: var(--pop); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 20px 50px -10px rgba(0,0,0,.35); }
.mini__bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mini__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.mini__form { display: grid; gap: 5px; width: 66%; margin: 0 auto; padding: 16px 0 18px; }
.mini__logo { width: 22px; height: 22px; border-radius: 6px; background: #e8473c; margin-bottom: 6px; }
.mini__lbl { font-size: 10.5px; color: var(--muted); }
.mini__in { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11px; line-height: 22px; color: var(--soft); overflow: hidden; white-space: nowrap; }
.typing { display: inline-block; overflow: hidden; vertical-align: top; border-right: 1px solid var(--text); animation: type 4.5s steps(23) infinite; }
.mini__btn { margin-top: 6px; height: 24px; border-radius: 6px; background: var(--pri-bg); color: var(--pri-fg); font-size: 11px; font-weight: 600; text-align: center; line-height: 24px; }
@keyframes type { 0% { width: 0; } 55%, 100% { width: 23ch; } }

.routine-pill { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--nav-bg); font-size: 12px; backdrop-filter: blur(6px); }
.cal { position: relative; z-index: 1; width: min(100%, 380px); padding: 10px; border-radius: 10px 10px 0 0; background: var(--pop); border: 1px solid var(--line-2); border-bottom: 0; display: grid; gap: 5px; }
.cal__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.cal__row > span { height: 40px; border-radius: 6px; background: var(--cell); padding: 4px; }
.cal__head > span { height: auto; background: none; text-align: center; font-size: 10.5px; color: var(--muted); }
.ev { display: block; height: 15px; border-radius: 4px; background: var(--green-tint); color: var(--green); font-size: 9.5px; font-style: normal; line-height: 15px; padding: 0 4px; white-space: nowrap; overflow: hidden; animation: in .4s ease both; }
.cal__row:nth-child(3) .ev:not(.ev--dim) { animation-delay: .5s; } .cal__row:nth-child(4) .ev:not(.ev--dim) { animation-delay: 1s; }
.ev--dim { background: var(--cell-dim); }

.feat__art--mem { justify-content: center; align-items: flex-start; gap: 8px; padding-bottom: 32px; }
.bub { max-width: 92%; padding: 10px 14px; border-radius: 14px; background: var(--bub); font-size: 14px; line-height: 1.5; color: var(--bub-fg); }
.mem { align-self: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mem__who { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 1px 8px 1px 3px; border-radius: 999px; background: var(--green-tint); color: var(--green); }
.mem__who img { width: 16px; height: 16px; border-radius: 50%; }
.feat__art--team { justify-content: center; align-items: center; padding-bottom: 32px; }
.handoff { display: flex; align-items: center; gap: 10px; }
.handoff__faces { display: flex; }
.handoff__faces img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); margin-left: -6px; transition: transform .3s, opacity .3s; opacity: .55; }
.handoff__faces img.is-on { opacity: 1; transform: translateY(-3px); }
.handoff__pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--bub); color: var(--warm); font-size: 13.5px; white-space: nowrap; }

/* ---------- Un puesto para cada empleado ---------- */
.jobs { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; max-width: 976px; }
.jobs__txt { display: grid; gap: 28px; justify-items: start; }
.jobs__tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 470px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 13.5px; }
.tab:hover { color: var(--text); }
.tab img { width: 18px; height: 18px; border-radius: 50%; margin-left: -6px; }
.tab[aria-selected="true"] { color: var(--green); border-color: var(--green-line); background: var(--green-tint); }
.jobs__desc { max-width: 470px; font-size: 16px; line-height: 1.6; color: var(--muted); min-height: 5em; }
.jobs__desc b { color: var(--text); font-weight: 500; }
.phone { justify-self: center; width: 300px; padding: 9px; border-radius: 46px; background: var(--phone); border: 1px solid var(--phone-edge); box-shadow: 0 40px 90px -30px var(--shadow); }
.phone__screen { position: relative; height: 600px; border-radius: 38px; overflow: hidden; background: var(--phone-screen); display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 2; }
.phone__head { display: flex; align-items: center; gap: 8px; padding: 46px 16px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.phone__head > span { color: var(--muted); font-size: 20px; line-height: 1; margin-right: auto; }
.phone__head b { font-weight: 500; margin-right: auto; }
.phone__head img { border-radius: 50%; }
.phone__log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 8px; scrollbar-width: none; }
.phone__log > * { animation: in .3s ease both; }
.pm { max-width: 86%; padding: 8px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; }
.pm--me { align-self: flex-end; background: var(--me-bg); color: var(--me-fg); border-bottom-right-radius: 5px; }
.pm--bot { align-self: flex-start; background: var(--phone-bot); border-top-left-radius: 5px; }
.psep { align-self: center; font-size: 11px; color: var(--muted); }
.psep::before { content: "✦ "; color: var(--green); }
.pcard { align-self: stretch; border-radius: 14px; background: #f4f4f5; color: #111; font-size: 12px; overflow: hidden; border: 1px solid var(--line); }
.pcard__top { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e2e2e5; font-weight: 600; }
.pcard__top small { font-weight: 500; color: #6b6b70; }
.pcard__f { display: flex; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #ececef; }
.pcard__f span { width: 52px; flex: none; color: #8a8a90; }
.pcard__f b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__body { padding: 8px 12px; display: grid; gap: 5px; line-height: 1.45; }
.pcard__att { justify-self: start; padding: 2px 8px; border-radius: 6px; background: #e6e6ea; font-size: 11px; }
.pcard__act { display: flex; gap: 6px; padding: 0 12px 10px; }
.pbtn { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid #d4d4d8; background: #fff; color: #111; font-size: 12px; font-weight: 500; }
.pbtn--ok { background: #111; color: #fff; border-color: #111; }
.pbtn:hover { filter: brightness(.94); }
.pdone { padding: 0 12px 10px; font-size: 12px; font-weight: 500; color: #1f7a3a; }
.pdone--no { color: #8a8a90; }
.phone__composer { display: flex; align-items: center; gap: 10px; margin: 6px 10px 16px; padding: 8px 12px; border-radius: 999px; background: var(--phone-input); font-size: 12px; color: var(--muted); }
.phone__composer i { font-style: normal; }

/* ---------- Vídeo ---------- */
.film .sec-title { text-align: center; margin-bottom: 28px; }
.film__box { position: relative; border-radius: 24px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.film__box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); padding: 24px; border: 0; color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); text-align: left; }
.film__btn { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(22px, 3vw, 36px); font-weight: 500; }
.film__btn svg { width: .7em; height: .7em; fill: currentColor; }
.film__line { font-size: clamp(18px, 2.6vw, 32px); font-weight: 400; opacity: .92; }
.film__play:hover .film__btn { transform: scale(1.04); }
.film__box.is-playing .film__play { display: none; }

/* ---------- Tarifas ---------- */
.prices { max-width: 976px; display: grid; justify-items: center; gap: 22px; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.prices__tax { max-width: 700px; color: var(--muted); font-size: 13.5px; line-height: 1.55; text-align: center; }
.plan { padding: 28px; display: grid; align-content: start; gap: 4px; }
.plan__name { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan__price { margin-top: 10px; font-size: 14px; color: var(--muted); }
.plan__price b { font-size: 36px; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.plan__bill { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.plan__inc { margin-top: 22px; font-size: 14px; font-weight: 500; }
.checks { display: grid; gap: 8px; margin-top: 8px; }
.checks li { position: relative; padding-left: 22px; font-size: 14px; color: var(--soft); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--muted); }
.strip { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 28px; }
.strip svg, .use__row svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.strip p { flex: 1; font-size: 14.5px; }
.strip p b { font-weight: 500; }
.strip p span { color: var(--muted); }

/* ---------- Dónde usarlo ---------- */
.use { max-width: 976px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.use__txt { display: grid; gap: 14px; }
.use__txt p { font-size: 18px; line-height: 1.625; color: var(--muted); }
.use__list { display: grid; gap: 12px; }
.use__row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; text-decoration: none; transition: background .15s; }
.use__row:hover { background: var(--sec-hover); }
.use__row > span:nth-child(2) { flex: 1; display: grid; line-height: 1.35; }
.use__row b { font-weight: 500; font-size: 15px; }
.use__row small { font-size: 12.5px; color: var(--muted); }
.use__go { color: var(--muted); }

/* ---------- Guías ---------- */
.guides { display: grid; justify-items: center; gap: 14px; text-align: center; }
.guides p { font-size: 17px; color: var(--soft); margin-bottom: 8px; }

/* ---------- Preguntas ---------- */
.faq { max-width: 976px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 500; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; color: var(--muted); font-size: 20px; line-height: 1; font-weight: 300; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { padding: 0 32px 18px 0; font-size: 15px; line-height: 1.6; color: var(--soft); }

/* ---------- Cierre y pie ---------- */
.final { margin-top: clamp(110px, 16vw, 200px); display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 20px; overflow: hidden; }
.final > p { font-size: 17px; color: var(--soft); }
.final .hero__cta { margin: 10px 0 0; }
.final__face { width: min(860px, 100%); height: auto; margin-top: 56px; margin-bottom: -2px; fill: none; stroke: var(--face-line); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.final__face rect { vector-effect: non-scaling-stroke; }
.final__eyes { transform-origin: 50% 64%; animation: blink 6s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.foot { max-width: 1232px; margin: 0 auto; padding: 40px 24px 64px; box-sizing: content-box; display: grid; grid-template-columns: 240px 1fr; gap: 40px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot__brand { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 12.5px; }
.foot__brand .brand { margin-bottom: 8px; }
.foot__theme { order: 9; justify-self: start; margin-top: 18px; margin-left: -8px; }
.foot__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-left: 40px; border-left: 1px solid var(--line); }
.foot nav { display: grid; align-content: start; gap: 9px; }
.foot h3 { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .jobs { grid-template-columns: 1fr; gap: 48px; }
  .foot { grid-template-columns: 1fr; }
  .foot__cols { padding-left: 0; border-left: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  #producto { margin-top: 96px; }
  .talk { flex-direction: column; align-items: stretch; padding: 32px 24px 0; min-height: 0; clip-path: inset(0 round 24px); }
  .talk__face { position: static; width: 220px; margin: 28px auto -70px; }
  .grid4 { grid-template-columns: 1fr; }
  .feat { min-height: 360px; padding: 26px 22px 0; }
  .pc { margin: 0 -22px; padding: 0 22px 12px; }
  .sec-head { margin-bottom: 36px; text-align: left; }
  .sec-head p, .talk__txt p, .use__txt p { font-size: 16.5px; }
  .phone { width: min(300px, 100%); }
  .phone__screen { height: 560px; }
  .film__play { flex-direction: column; gap: 6px; }
  .film__line { text-align: center; }
  .plans { grid-template-columns: 1fr; }
  .strip { flex-wrap: wrap; padding: 18px 20px; }
  .use, .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq__list p { padding-right: 0; }
  .foot { padding: 32px 16px 48px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}

/* La pregunta larga y el indicador comparten ancho incluso a 360 px. */
.faq__list summary { display: block; position: relative; padding-right: 28px; }
.faq__list summary::after { position: absolute; right: 0; top: 16px; }
