/*
Theme Name: Iridax
Theme URI: https://iridax.io
Author: Iridax
Author URI: https://iridax.io
Description: Tema a medida de Iridax — agencia de automatización e inteligencia artificial. Diseño propio, sin dependencias externas, pensado para cargar rápido y convertir visitantes en clientes.
Version: 1.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iridax
Tags: one-column, custom-colors, custom-menu, translation-ready
*/

  :root {
    /* Neutros — negro puro */
    --bg: #050506; --bg-2: #0A0A0C; --surface: #101012; --surface-2: #17171A;
    --border: rgba(255,255,255,0.08); --border-2: rgba(255,255,255,0.17);
    --text: #FFFFFF; --muted: #A2A2AC; --faint: #6E6E78;

    /* Acento — lila eléctrico. --lav para superficies y gráficos,
       --lav-lt para textos pequeños (mantiene el contraste sobre negro). */
    --lav: #B026FF; --lav-lt: #C77DFF; --lav-dk: #9612DB;
    --lav-soft: rgba(176,38,255,0.13); --lav-bd: rgba(176,38,255,0.34);
    /* Segunda voz — blanco */
    --sage: #FFFFFF; --sage-soft: rgba(255,255,255,0.07); --sage-bd: rgba(255,255,255,0.22);
    --on-lav: #FFFFFF;

    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --maxw: 1160px; --r: 16px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  p { margin: 0; }
  h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
  h2 { font-size: clamp(30px, 4.3vw, 48px); }
  h3 { font-size: 20px; letter-spacing: -0.015em; }
  .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
  ::selection { background: var(--lav); color: var(--on-lav); }
  :focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 4px; }

  .skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--lav); color: var(--on-lav); padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; }
  .skip:focus { left: 24px; }

  /* Textura + progreso */
  .grain { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.028; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--lav); transition: width .1s linear; }

  .accent { color: var(--lav); }
  .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lav-lt); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 12px; }
  .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--lav); opacity: .6; display: inline-block; }

  /* Botones */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-size: 15.5px; font-weight: 550; padding: 15px 28px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .28s ease, background .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
  .btn-primary { background: var(--lav); color: var(--on-lav); font-weight: 620; }
  .btn-primary:hover { transform: translateY(-2px); background: var(--lav-dk); box-shadow: 0 14px 42px -12px rgba(176,38,255,0.75); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--lav); color: var(--lav); }

  /* Navegación */
  header.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); background: rgba(9,8,13,0.7); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
  header.nav.scrolled { border-bottom-color: var(--border); background: rgba(9,8,13,0.9); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 640; font-size: 20px; letter-spacing: -0.035em; }
  .logo .mark { width: 27px; height: 27px; flex: none; }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a.link { font-size: 15px; color: var(--muted); transition: color .18s ease; position: relative; padding: 4px 0; }
  .nav-links a.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lav); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  .nav-links a.link:hover { color: var(--text); }
  .nav-links a.link:hover::after { transform: scaleX(1); }
  .nav-cta { display: flex; align-items: center; gap: 12px; }
  .menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
  @media (max-width: 900px) { .nav-links { display: none; } .nav-cta .btn-ghost { display: none; } .menu-btn { display: inline-flex; } .mobile-menu.open { display: flex; } }
  /* En pantallas estrechas el botón se acorta para que quepa junto al logo */
  .t-corto { display: none; }
  @media (max-width: 560px) {
    .nav-cta .btn-primary { padding: 12px 17px; font-size: 14px; }
    .t-full { display: none; } .t-corto { display: inline; }
    .logo { font-size: 18px; } .logo .mark { width: 24px; height: 24px; }
    .nav-cta { gap: 6px; }
  }
  .mobile-menu { display: none; flex-direction: column; padding: 10px 24px 22px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
  .mobile-menu a { padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 16px; }
  .mobile-menu a:last-child { border-bottom: 0; color: var(--lav-lt); }

  /* Hero */
  .hero { position: relative; overflow: hidden; padding: 0; }
  .glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(120px); pointer-events: none; }
  .glow.g1 { width: 720px; height: 460px; background: var(--lav); opacity: .17; left: 50%; top: -220px; transform: translateX(-50%); }
  .glow.g2 { width: 380px; height: 300px; background: var(--sage); opacity: .07; right: -80px; top: 90px; }
  #nodes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.75; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 76% at 50% -6%, transparent 42%, var(--bg) 84%), linear-gradient(180deg, transparent 62%, var(--bg) 100%); }
  .hero-inner { position: relative; z-index: 3; padding: clamp(100px, 17vh, 176px) 0 clamp(52px, 9vh, 92px); text-align: center; }
  .hero h1 { font-size: clamp(43px, 7.4vw, 86px); font-weight: 630; letter-spacing: -0.04em; }
  .hero h1 em { font-style: normal; color: var(--lav); }
  .hero p.lead { max-width: 640px; margin: 30px auto 0; font-size: clamp(17px, 2.2vw, 20.5px); color: var(--muted); line-height: 1.62; }
  .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
  .hero-note { margin-top: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--faint); }

  /* Cinturón de herramientas */
  .belt { position: relative; z-index: 3; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.012); padding: 21px 0; overflow: hidden; }
  .belt::before, .belt::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
  .belt::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .belt::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
  .belt-track { display: flex; gap: 54px; width: max-content; animation: slide 38s linear infinite; }
  .belt:hover .belt-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
  .belt-track span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; transition: color .2s ease; }
  .belt-track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lav); opacity: .5; }
  .belt-track span:hover { color: var(--muted); }

  /* Secciones */
  section { padding: clamp(84px, 10.5vw, 138px) 0; position: relative; }
  .sec-head { max-width: 720px; margin-bottom: 60px; }
  .sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .sec-head.center .eyebrow { justify-content: center; }
  .sec-head p.sub { color: var(--muted); margin-top: 22px; font-size: 18px; }

  /* Paneles dúo */
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 780px) { .duo { grid-template-columns: 1fr; } }
  .panel { --c: var(--lav); background: linear-gradient(168deg, var(--surface), var(--bg-2) 74%); border: 1px solid var(--border); border-radius: var(--r); padding: 42px 38px; position: relative; overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
  .panel::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--c); filter: blur(100px); opacity: .11; top: -130px; right: -90px; transition: opacity .4s ease; }
  .panel:hover { transform: translateY(-4px); border-color: var(--border-2); }
  .panel:hover::after { opacity: .2; }
  .panel .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lav-lt); position: relative; }
  .panel[style*="sage"] .tag, .step[style*="sage"] .step-n { color: var(--sage); }
  .panel h3 { font-size: 24px; margin: 16px 0 13px; position: relative; }
  .panel p { color: var(--muted); font-size: 16px; position: relative; }

  /* Diferenciales */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
  @media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 470px) { .stats { grid-template-columns: 1fr; } }
  .stat { background: var(--bg-2); padding: 36px 28px; transition: background .3s ease; }
  .stat:hover { background: var(--surface); }
  .stat .k { font-size: clamp(29px, 3.4vw, 38px); font-weight: 630; letter-spacing: -0.045em; line-height: 1; color: var(--lav); }
  .stat.sage .k { color: var(--sage); }
  .stat .l { color: var(--muted); font-size: 14.5px; margin-top: 13px; line-height: 1.5; }

  /* Tarjetas de servicio */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 34px 28px; position: relative; transition: transform .25s ease, border-color .3s ease, background .3s ease; overflow: hidden; }
  .card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--lav), transparent); opacity: 0; transition: opacity .35s ease; }
  .card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
  .card:hover::before { opacity: .8; }
  .card .ico { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 22px; display: grid; place-items: center; color: var(--lav); background: var(--lav-soft); border: 1px solid var(--lav-bd); transition: transform .3s ease; }
  .card:hover .ico { transform: scale(1.05); }
  .card h3 { margin-bottom: 10px; }
  .card p { color: var(--muted); font-size: 15px; line-height: 1.62; }
  .card .num { position: absolute; top: 28px; right: 28px; font-family: var(--mono); font-size: 12px; color: var(--faint); transition: color .3s ease; }
  .card:hover .num { color: var(--lav-lt); }

  /* Proceso */
  /* Tres fases: llamada, auditoria e implementacion. */
  .process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
  @media (max-width: 1060px) { .process { grid-template-columns: 1fr; } }
  .step { --c: var(--lav); background: linear-gradient(172deg, var(--surface), var(--bg-2) 76%); border: 1px solid var(--border); border-radius: var(--r); padding: 38px 30px; position: relative; overflow: hidden; }
  .step::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--c); filter: blur(110px); opacity: .09; bottom: -160px; left: -110px; }
  .step .step-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; display: inline-block; margin-bottom: 24px; padding: 6px 14px; border-radius: 999px; color: var(--lav-lt); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); position: relative; }
  .step h3 { font-size: 22px; margin-bottom: 13px; position: relative; }
  .step .precio { font-family: var(--mono); font-size: 12.5px; color: var(--lav-lt); opacity: .85; margin-bottom: 14px; position: relative; }
  .step p { color: var(--muted); font-size: 15.5px; position: relative; }
  .step ul { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; position: relative; }
  .step li { color: var(--muted); font-size: 14.5px; padding-left: 30px; position: relative; }
  .step li::before { content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
  .step li::after { content: ""; position: absolute; left: 5.5px; top: 10px; width: 5px; height: 8px; border-right: 1.6px solid var(--c); border-bottom: 1.6px solid var(--c); transform: rotate(42deg); }

  /* Casos */
  .show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  @media (max-width: 780px) { .show-grid { grid-template-columns: 1fr; } }
  .show { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; transition: border-color .3s ease, transform .25s ease, background .3s ease; }
  .show:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
  .show .badge { font-size: 23px; flex: none; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--lav-soft); border: 1px solid var(--lav-bd); transition: transform .3s ease; }
  .show:hover .badge { transform: scale(1.06); }
  .show h3 { font-size: 18px; margin-bottom: 7px; }
  .show p { color: var(--muted); font-size: 14.5px; }

  /* FAQ */
  .faq { max-width: 800px; margin: 0 auto; }
  details.qa { border-bottom: 1px solid var(--border); border-radius: 10px; transition: background .25s ease; }
  details.qa:hover { background: rgba(255,255,255,0.015); }
  details.qa summary { list-style: none; cursor: pointer; padding: 25px 52px 25px 16px; position: relative; font-size: 18px; font-weight: 550; }
  details.qa summary::-webkit-details-marker { display: none; }
  details.qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.6px solid var(--lav); border-bottom: 1.6px solid var(--lav); transform: rotate(45deg); transition: transform .3s ease; }
  details.qa[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
  details.qa .ans { padding: 0 52px 26px 16px; color: var(--muted); font-size: 15.5px; line-height: 1.72; }
  details.qa .ans strong { color: var(--text); font-weight: 600; }

  /* Contacto */
  .cta-band { position: relative; border-radius: 24px; padding: clamp(44px, 6vw, 74px); overflow: hidden; background: linear-gradient(158deg, rgba(176,38,255,0.14), var(--surface) 62%); border: 1px solid var(--border-2); }
  .cta-band::after { content: ""; position: absolute; width: 420px; height: 320px; border-radius: 50%; background: var(--sage); filter: blur(130px); opacity: .07; right: -120px; bottom: -150px; }
  .cta-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
  @media (max-width: 840px) { .cta-grid { grid-template-columns: 1fr; gap: 36px; } }
  .cta-grid h2 { font-size: clamp(29px, 4vw, 42px); }
  .cta-grid p.sub { color: var(--muted); margin-top: 18px; font-size: 17px; }
  .cta-mail { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-family: var(--mono); font-size: 14px; color: var(--lav-lt); border-bottom: 1px solid var(--lav-bd); padding-bottom: 3px; transition: border-color .2s ease; }
  .cta-mail:hover { border-bottom-color: var(--lav); }
  form { display: flex; flex-direction: column; gap: 13px; }
  .field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 8px; }
  .field input, .field textarea { width: 100%; background: rgba(9,8,13,0.6); border: 1px solid var(--border-2); border-radius: 12px; color: var(--text); font-family: var(--sans); font-size: 15px; padding: 14px 16px; transition: border-color .2s ease, box-shadow .25s ease; }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgba(176,38,255,0.22); }
  .field textarea { resize: vertical; min-height: 96px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  @media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
  .form-msg { font-size: 13.5px; color: var(--sage); min-height: 20px; font-family: var(--mono); }
  .form-legal { font-size: 12px; color: var(--faint); line-height: 1.5; }
  /* Campo trampa para bots: invisible para personas, tentador para robots */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

  /* Footer */
  footer.site { border-top: 1px solid var(--border); padding: 62px 0 44px; position: relative; }
  .foot-top { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
  .foot-top p { color: var(--muted); font-size: 14.5px; max-width: 320px; margin-top: 16px; }
  .foot-mail { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 13.5px; color: var(--lav-lt); }
  .foot-links { display: flex; gap: 54px; flex-wrap: wrap; }
  .foot-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 15px; font-weight: 500; }
  .foot-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .18s ease, transform .18s ease; }
  .foot-col a:hover { color: var(--text); transform: translateX(3px); }
  .foot-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
  .foot-bottom span, .foot-bottom a { color: var(--faint); font-size: 13px; font-family: var(--mono); }
  .foot-bottom a:hover { color: var(--muted); }
  .foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }

  /* Aparición al hacer scroll */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
  }


/* ══════════ Páginas de contenido (privacidad, aviso legal, gracias) ══════════ */
.pagina-contenido { padding: clamp(46px, 7vh, 76px) 0 80px; }
.pagina-contenido .wrap { max-width: 820px; }
.pagina-contenido h1 { font-size: clamp(31px, 5vw, 46px); letter-spacing: -0.04em; margin-bottom: 34px; }
.contenido-legal { font-size: 16.5px; line-height: 1.72; }
.contenido-legal /* Estilos compartidos por las páginas legales de Iridax */


main { flex: 1; padding: clamp(46px, 7vh, 72px) 0 76px; }
.contenido-legal h1 { margin: 0; font-size: clamp(31px, 5vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.contenido-legal .actualizado { display: block; margin-top: 16px; font-family: var(--mono); font-size: 12.5px;
               letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.contenido-legal .intro { margin: 30px 0 0; color: var(--muted); font-size: 17.5px; }

.contenido-legal h2 { margin: 54px 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.contenido-legal h2 .num { font-family: var(--mono); font-size: 13px; color: var(--lav); margin-right: 12px; font-weight: 500; }
.contenido-legal h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 600; }
.contenido-legal p { margin: 0 0 16px; color: var(--muted); }
.contenido-legal p strong, .contenido-legal li strong { color: var(--text); font-weight: 600; }
.contenido-legal ul { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.contenido-legal li { margin-bottom: 9px; }
.contenido-legal a.enlace { color: var(--lav-lt); border-bottom: 1px solid var(--lav-bd); padding-bottom: 1px; }
.contenido-legal a.enlace:hover { border-bottom-color: var(--lav); }

.contenido-legal /* Datos que Javier debe completar antes de publicar — imposibles de pasar por alto */
.pendiente { display: inline-block; background: rgba(232,180,90,0.16); border: 1px dashed rgba(232,180,90,0.55);
             color: #E8B45A; padding: 1px 9px; border-radius: 6px; font-family: var(--mono);
             font-size: 13px; font-weight: 600; }

.contenido-legal .caja { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
        padding: 24px 26px; margin: 24px 0; }
.contenido-legal .caja p:last-child { margin-bottom: 0; }

.contenido-legal table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.contenido-legal th, .contenido-legal td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.contenido-legal th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
     color: var(--faint); font-weight: 500; }
.contenido-legal td { color: var(--muted); }
.contenido-legal .tabla-scroll { overflow-x: auto; }



/* ══════════ Ajustes propios de WordPress ══════════ */
.contenido-legal > *:first-child { margin-top: 0; }
.contenido-legal img { max-width: 100%; height: auto; border-radius: 12px; }
.contenido-legal .wp-block-table { margin: 20px 0 26px; overflow-x: auto; }
.contenido-legal .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.contenido-legal blockquote { border-left: 2px solid var(--lav); padding-left: 20px; margin: 24px 0; color: var(--muted); }
.error404 .pagina-contenido { text-align: center; }
.admin-bar header.nav { top: 32px; }
@media (max-width: 782px) { .admin-bar header.nav { top: 46px; } }

/* ══════════════════════ Landings de campaña ══════════════════════
   Mismo lenguaje visual que la portada: red de nodos animada, resplandores,
   tarjetas y apariciones al bajar. Sin menú: una sola salida, el formulario. */
.landing-cab { padding: 24px 0; position: relative; z-index: 5; }
.landing { position: relative; }
.landing .wrap { max-width: 820px; position: relative; z-index: 3; }

/* — Fondo animado del encabezado — */
.landing-hero { position: absolute; inset: 0 0 auto; height: 720px; overflow: hidden; pointer-events: none; z-index: 0; }
.landing-hero #nodes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.landing-hero .glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.landing-hero .glow.g1 { width: 760px; height: 470px; background: var(--lav); opacity: .20; left: 50%; top: -250px; transform: translateX(-50%); }
.landing-hero .glow.g2 { width: 420px; height: 320px; background: #FFFFFF; opacity: .04; right: -110px; top: 180px; }
.landing-hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% -8%, transparent 40%, var(--bg) 86%),
              linear-gradient(180deg, transparent 52%, var(--bg) 100%); }

.landing-portada { padding: clamp(56px, 9vh, 104px) 24px clamp(12px, 2vh, 22px); text-align: center; }
.landing-portada h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 630; letter-spacing: -0.042em; line-height: 1.06; }
.landing-portada h1 em, .landing-portada h1 strong { font-style: normal; font-weight: 630; color: var(--lav); }

.landing-texto { padding: 0 24px clamp(64px, 9vh, 104px); font-size: 17.5px; line-height: 1.68; color: var(--muted); }
.landing-texto > * + * { margin-top: 22px; }
.landing-texto strong { color: var(--text); font-weight: 600; }

.landing-texto p.filtro { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lav-lt); display: block; }
.landing-texto p.entrada { text-align: center; font-size: clamp(17px, 2.2vw, 20.5px); max-width: 640px;
  margin-left: auto; margin-right: auto; line-height: 1.62; }

.landing-texto h2 { font-size: clamp(27px, 3.8vw, 38px); color: var(--text); margin-top: 78px;
  text-align: center; letter-spacing: -0.032em; line-height: 1.12; }
.landing-texto h3 { font-size: 19px; color: var(--text); margin-top: 40px; text-align: center; }
.landing-texto hr { border: 0; height: 1px; margin: 64px 0;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* — Cada punto es una tarjeta numerada, no una viñeta suelta — */
.landing-texto ul { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: punto; }
@media (min-width: 720px) { .landing-texto ul { grid-template-columns: 1fr 1fr; } }
.landing-texto li { counter-increment: punto; position: relative; font-size: 15.5px; line-height: 1.6;
  padding: 26px 26px 26px 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform .25s ease, border-color .3s ease, background .3s ease; }
.landing-texto li::before { content: counter(punto, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--lav-lt); margin-bottom: 12px; }
.landing-texto li::after { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lav), transparent); opacity: 0; transition: opacity .35s ease; }
.landing-texto li:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.landing-texto li:hover::after { opacity: .85; }

/* — El «no recomendado» se lee distinto: apagado y a una columna — */
.landing-texto .no { grid-template-columns: 1fr; margin-top: 14px; }
.landing-texto .no li { background: transparent; border-style: dashed; }
.landing-texto .no li::before { content: "✕"; color: var(--faint); font-size: 14px; }
.landing-texto .no li:hover { transform: none; background: transparent; }

.landing-texto .wp-block-buttons { justify-content: center; margin-top: 42px; }
.landing-texto .wp-block-button__link { background: var(--lav); color: var(--on-lav); border-radius: 999px;
  padding: 17px 36px; font-size: 15.5px; font-weight: 620; text-decoration: none; display: inline-block;
  box-shadow: 0 12px 40px -16px rgba(176,38,255,0.9);
  transition: transform .2s ease, background .2s ease, box-shadow .28s ease; }
.landing-texto .wp-block-button__link:hover { transform: translateY(-2px); background: var(--lav-dk);
  box-shadow: 0 16px 46px -12px rgba(176,38,255,0.8); }

/* — Ficha del formulario — */
.landing-solicitud { padding: 0 0 clamp(74px, 10vh, 116px); position: relative; z-index: 3; }
.landing-form { background: linear-gradient(162deg, rgba(176,38,255,0.13), var(--surface) 62%);
  border: 1px solid var(--border-2); border-radius: 24px; padding: clamp(30px, 4vw, 50px); position: relative; overflow: hidden; }
.landing-form::after { content: ""; position: absolute; width: 360px; height: 300px; border-radius: 50%;
  background: var(--lav); filter: blur(120px); opacity: .13; right: -110px; bottom: -140px; pointer-events: none; }
.landing-form > * { position: relative; z-index: 1; }
.landing-form .eyebrow { display: inline-flex; }
.landing-form h2 { font-size: clamp(25px, 3vw, 32px); margin-bottom: 12px; }
.landing-form .landing-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }

.landing-pie { border-top: 1px solid var(--border); padding: 24px 0; position: relative; z-index: 3; }
.landing-pie .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px; font-family: var(--mono); }
.landing-pie div { display: flex; gap: 20px; }
.landing-pie a:hover { color: var(--muted); }

@media (max-width: 620px) {
  .landing-hero { height: 560px; }
  .landing-texto h2 { margin-top: 60px; }
  .landing-texto li { padding: 22px; }
}

/* ══════════ Botón flotante de la landing ══════════
   Acompaña al visitante mientras baja y desaparece al llegar al formulario. */
.cta-flotante {
  position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 130%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--lav); color: var(--on-lav); font-size: 15.5px; font-weight: 620;
  box-shadow: 0 14px 44px -10px rgba(176,38,255,0.85), 0 0 0 1px rgba(255,255,255,0.10) inset;
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), opacity .35s ease, background .2s ease;
}
.cta-flotante.visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto;
  animation: latido 2.8s ease-in-out 1s infinite; }
.cta-flotante:hover { background: var(--lav-dk); animation: none; }
.cta-flotante svg { width: 17px; height: 17px; transition: transform .25s ease; }
.cta-flotante:hover svg { transform: translateX(4px); }
@keyframes latido {
  0%, 100% { box-shadow: 0 14px 44px -10px rgba(176,38,255,0.85), 0 0 0 1px rgba(255,255,255,0.10) inset; }
  50%      { box-shadow: 0 14px 54px -6px rgba(176,38,255,1), 0 0 0 1px rgba(255,255,255,0.18) inset; }
}
@media (max-width: 620px) { .cta-flotante { width: calc(100% - 40px); justify-content: center; bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .cta-flotante.visible { animation: none; } }

/* ══════════ Beneficios con icono, al estilo de una lista de ventajas ══════════ */
.landing-texto ul.beneficios { grid-template-columns: 1fr; gap: 12px; counter-reset: none; }
.landing-texto ul.beneficios li { padding: 22px 26px 22px 74px; font-size: 16px; }
.landing-texto ul.beneficios li::before {
  content: attr(data-icono); position: absolute; left: 24px; top: 20px;
  font-size: 26px; margin: 0; line-height: 1.2;
}
.landing-texto ul.beneficios li:nth-child(1)::before { content: "🚀"; }
.landing-texto ul.beneficios li:nth-child(2)::before { content: "⏱️"; }
.landing-texto ul.beneficios li:nth-child(3)::before { content: "📊"; }
.landing-texto ul.beneficios li:nth-child(4)::before { content: "⚡"; }
.landing-texto ul.beneficios li:nth-child(5)::before { content: "💸"; }

/* ══════════ «Qué obtienes»: lista de comprobación compacta ══════════ */
.landing-texto ul.obtienes { grid-template-columns: 1fr; gap: 0; counter-reset: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.landing-texto ul.obtienes li { background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 19px 26px 19px 60px; font-size: 15.5px; }
.landing-texto ul.obtienes li:last-child { border-bottom: 0; }
.landing-texto ul.obtienes li:hover { transform: none; background: var(--surface-2); }
.landing-texto ul.obtienes li::before { content: ""; position: absolute; left: 26px; top: 24px;
  width: 6px; height: 11px; margin: 0; border-right: 2px solid var(--lav-lt);
  border-bottom: 2px solid var(--lav-lt); transform: rotate(42deg); }
.landing-texto ul.obtienes li::after { display: none; }

/* ══════════ Destacado del descuento ══════════ */
.landing-texto p.descuento {
  text-align: center; margin-top: 30px; padding: 22px 26px;
  background: linear-gradient(150deg, rgba(176,38,255,0.16), var(--surface) 70%);
  border: 1px solid var(--lav-bd); border-radius: var(--r);
  color: var(--text); font-size: 16.5px;
}

/* ══════════ Plazas y plazo de respuesta ══════════ */
.landing-limite { margin-top: 22px; text-align: center; font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.08em; color: var(--faint); line-height: 1.7; }

/* ══════════ Bloque de precios de la landing ══════════ */
.landing-texto .precios { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .landing-texto .precios { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.landing-texto .precios .plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px 26px; position: relative; transition: transform .25s ease, border-color .3s ease; }
.landing-texto .precios .plan:hover { transform: translateY(-4px); border-color: var(--border-2); }
.landing-texto .precios .destacado { border-color: var(--lav-bd);
  background: linear-gradient(162deg, rgba(176,38,255,0.12), var(--surface) 66%); }
.landing-texto .precios .etiqueta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lav-lt); display: block; margin-bottom: 14px; }
.landing-texto .precios .cifra { font-size: clamp(30px, 4vw, 40px); font-weight: 630; letter-spacing: -0.04em;
  color: var(--text); line-height: 1; }
.landing-texto .precios .cifra small { font-size: 14px; font-weight: 500; color: var(--faint);
  letter-spacing: 0; display: block; margin-top: 8px; }
.landing-texto .precios .detalle { color: var(--muted); font-size: 14.5px; margin-top: 16px; line-height: 1.6; }

/* Un solo plan: se centra y no ocupa las tres columnas */
.landing-texto .precio-unico { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
.landing-texto .precio-unico .plan { text-align: center; }

/* Desplegables del formulario, con el mismo aspecto que los campos de texto */
.field select {
  width: 100%; background: rgba(9,8,13,0.6); border: 1px solid var(--border-2); border-radius: 12px;
  color: var(--text); font-family: var(--sans); font-size: 15px; padding: 14px 40px 14px 16px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B96A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
.field select:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgba(176,38,255,0.16); }
.field select option { background: var(--surface); color: var(--text); }
.field select:invalid, .field select option[value=""] { color: var(--faint); }

  /* ═══ AVISO DE COOKIES ═══
     Abajo a la izquierda y estrecho a proposito: tiene que verse y poder
     responderse, no tapar la web ni obligar a nada. */
  .cookies { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(420px, calc(100vw - 40px));
    background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
    padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
    opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
  .cookies.visible { opacity: 1; transform: none; }
  .cookies[hidden] { display: none; }
  .cookies-txt strong { display: block; font-size: 15px; margin-bottom: 7px; }
  .cookies-txt p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
  .cookies-txt a { color: var(--lav-lt); text-decoration: underline; text-underline-offset: 2px; }
  .cookies-btns { display: flex; gap: 10px; margin-top: 18px; }
  .cookies-btns .btn { flex: 1; padding: 11px 14px; font-size: 14px; text-align: center; justify-content: center; }
  @media (max-width: 520px) {
    .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
    .cookies-btns { flex-direction: column-reverse; }
  }
  @media (prefers-reduced-motion: reduce) { .cookies { transition: none; } }

  /* ═══ COMPARATIVA: IRIDAX FRENTE A UNA AGENCIA CUALQUIERA ═══
     La columna de Iridax lleva un tinte lila que recorre la tabla de arriba
     abajo: el ojo la sigue sin necesidad de volver a leer las cabeceras.
     En movil deja de ser tabla y cada fila se convierte en una ficha, porque
     tres columnas en 375 px no se leen. */
  .vs { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
  .vs-cab, .vs-fila { display: grid; grid-template-columns: 0.8fr 1fr 1.2fr; }
  .vs-cab { background: var(--surface); }
  .vs-cab > span { padding: 15px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); }
  .vs-cab > .vs-iridax { color: var(--lav-lt); }
  .vs-fila { border-top: 1px solid var(--border); }
  .vs-fila > span { padding: 17px 22px; font-size: 15px; line-height: 1.5; display: flex; align-items: center; }
  .vs-fila > .vs-lbl { color: var(--faint); font-size: 13.5px; }
  .vs-otros { color: var(--muted); }
  .vs-iridax { color: var(--text); background: var(--lav-soft); border-left: 1px solid var(--lav-bd); }
  .vs-iridax strong { color: var(--lav-lt); font-weight: 600; }
  .vs-fila:hover .vs-iridax { background: color-mix(in srgb, var(--lav) 19%, transparent); transition: background .25s ease; }

  @media (max-width: 860px) {
    .vs-cab { display: none; }
    .vs-fila { grid-template-columns: 1fr; padding: 20px 20px 18px; }
    .vs-fila > span { display: block; padding: 0; }
    .vs-fila > .vs-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 13px; }
    .vs-otros::before, .vs-iridax::before { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
    .vs-otros::before { content: "Agencia típica"; color: var(--faint); }
    .vs-iridax::before { content: "Iridax"; color: var(--lav-lt); }
    .vs-fila > .vs-iridax { background: transparent; border-left: 0; border-top: 1px solid var(--border); margin-top: 15px; padding-top: 15px; }
  }
  @media (prefers-reduced-motion: reduce) { .vs-fila:hover .vs-iridax { transition: none; } }

  /* ═══ CATEGORÍA DE NEGOCIO EN LAS TARJETAS ═══
     Va encima del titular: primero el área del negocio, después el beneficio.
     La tecnología, si aparece, va en el párrafo — nunca de titular. */
  .card .cat { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--lav-lt); margin-bottom: 9px; }

  /* ═══ EL LEMA QUE ABRE LAS TARJETAS ═══
     Es la bisagra entre lo que hacemos y la auditoría: dice que no automatizamos
     todo, que es justo lo que justifica cobrar por decidir qué automatizar. */
  .lema { text-align: center; max-width: 800px; margin: -18px auto 52px;
    font-size: clamp(23px, 3.2vw, 34px); font-weight: 620; letter-spacing: -0.028em; line-height: 1.28; }
  @media (max-width: 620px) { .lema { margin: -8px auto 38px; } }

  /* ═══ APARICIÓN DE LA COMPARATIVA ═══
     Cada fila entra por separado según se baja, con un desplazamiento lateral
     corto en vez del vertical del resto: en una tabla el movimiento vertical
     se pelea con el propio scroll y marea. */
  .vs-fila.reveal, .vs-cab.reveal { transform: translateX(-16px); }
  .vs-fila.reveal.in, .vs-cab.reveal.in { transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .vs-fila.reveal, .vs-cab.reveal { transform: none; }
  }

  /* ═══ CHAT DE IRIDAX ═══
     Hecho a medida en vez de usar el widget oficial de n8n, que pesa 858 KB.
     La burbuja va abajo a la derecha y el aviso de cookies abajo a la izquierda,
     para que no se estorben. En movil el panel ocupa casi toda la pantalla. */
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  .chat-burbuja { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 56px; height: 56px;
    border-radius: 50%; border: 1px solid var(--lav-bd); background: var(--lav); color: var(--on-lav);
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(176,38,255,.35);
    transition: transform .25s ease, box-shadow .25s ease; }
  .chat-burbuja:hover { transform: scale(1.06); box-shadow: 0 14px 38px rgba(176,38,255,.5); }
  .chat-burbuja svg { grid-area: 1/1; transition: opacity .2s ease, transform .25s ease; }
  .chat-burbuja .ico-cerrar { opacity: 0; transform: rotate(-90deg); }
  .chat-burbuja.abierto .ico-abrir { opacity: 0; transform: rotate(90deg); }
  .chat-burbuja.abierto .ico-cerrar { opacity: 1; transform: none; }

  .chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 95; width: min(384px, calc(100vw - 44px));
    height: min(560px, calc(100vh - 140px)); background: var(--bg-2); border: 1px solid var(--border-2);
    border-radius: var(--r); box-shadow: 0 22px 60px rgba(0,0,0,.6); display: flex; flex-direction: column;
    overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
    transition: opacity .25s ease, transform .25s ease; }
  .chat-panel.visible { opacity: 1; transform: none; }
  .chat-panel[hidden] { display: none; }

  .chat-cab { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .chat-cab strong { display: block; font-size: 14.5px; }
  .chat-cab span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
  .chat-punto { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); flex: none; }

  .chat-hilo { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
  .chat-hilo::-webkit-scrollbar { width: 8px; }
  .chat-hilo::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
  .chat-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14.3px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
  .chat-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
  .chat-msg.yo { align-self: flex-end; background: var(--lav-soft); border: 1px solid var(--lav-bd); border-bottom-right-radius: 5px; }
  .chat-msg.error { align-self: flex-start; background: rgba(232,160,160,.09); border: 1px solid rgba(232,160,160,.3); color: #E8A0A0; }
  .chat-msg a { color: var(--lav-lt); text-decoration: underline; text-underline-offset: 2px; }
  .chat-msg strong { color: #fff; }

  .chat-puntos { align-self: flex-start; display: flex; gap: 4px; padding: 14px; }
  .chat-puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: chatlat 1.3s infinite; }
  .chat-puntos i:nth-child(2) { animation-delay: .18s; }
  .chat-puntos i:nth-child(3) { animation-delay: .36s; }
  @keyframes chatlat { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

  .chat-pie { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); align-items: flex-end; }
  .chat-pie textarea { flex: 1; resize: none; max-height: 108px; background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
    color: var(--text); font: inherit; font-size: 14.3px; padding: 11px 13px; line-height: 1.45; }
  .chat-pie textarea:focus { outline: none; border-color: var(--lav-bd); }
  .chat-pie button { flex: none; width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--lav); color: var(--on-lav);
    display: grid; place-items: center; cursor: pointer; transition: opacity .2s ease; }
  .chat-pie button:disabled { opacity: .4; cursor: default; }
  .chat-nota { padding: 0 16px 13px; margin: 0; color: var(--faint); font-size: 11.5px; background: var(--surface); text-align: center; }

  @media (max-width: 520px) {
    .chat-panel { right: 10px; left: 10px; bottom: 84px; width: auto; height: min(72vh, calc(100vh - 150px)); }
    .chat-burbuja { right: 16px; bottom: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .chat-burbuja, .chat-panel, .chat-burbuja svg { transition: none; }
    .chat-puntos i { animation: none; }
  }
