/* Fuentes alojadas en el propio servidor (licencia OFL, ver static/fonts/). Sin llamadas a Google. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* =====================================================================
   Bretecitos — sistema visual v3
   Profesional y serio en la estructura; colorido y joven en los acentos.
   ===================================================================== */
:root {
  /* Base */
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5B6477;
  --line: #E8E1D8;
  --line-2: #D6CEC3;

  /* Marca */
  --naranja: #FF6B1A;
  --naranja-hover: #FF8240;
  --naranja-texto: #C2410C;
  --naranja-suave: #FFF0E6;
  --navy: #0E1B3D;
  --navy-2: #172A57;
  --verde: #0F766E;
  --verde-vivo: #14B8A6;
  --verde-suave: #E3F7F2;
  --amarillo: #FFC53D;
  --rosa: #EC4C7C;
  --lila: #7C4DFF;
  --azul: #3B6FF6;
  --rojo: #BE123C;

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --sombra-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --sombra-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 20px 48px rgba(16, 24, 40, .12);
  --fuente-titulo: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--fuente); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--fuente-titulo); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--naranja-texto); text-underline-offset: 3px; }
a:hover { color: #9A3412; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
::selection { background: #FFD9C2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--surface); padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); box-shadow: var(--sombra); }

/* ---------- Layout ---------- */
.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.seccion { padding: 80px 0; }
.seccion-blanca { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seccion-oscura { background: var(--navy); color: #E6EAF5; }
.seccion-oscura h2, .seccion-oscura h3 { color: #fff; }
.seccion-durazno { background: var(--naranja-suave); }
.pila { display: flex; flex-direction: column; gap: 16px; }
.pila-sm { display: flex; flex-direction: column; gap: 6px; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.entre { justify-content: space-between; }
.encabezado { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 36px; }
.encabezado-fila { align-items: flex-end; margin-bottom: 8px; }
.encabezado-fila .encabezado { margin-bottom: 0; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); font-size: 14.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tarjeta-pie .btn { white-space: nowrap; }
.columnas { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.col-principal { flex: 999 1 520px; min-width: 0; }
.col-lateral { flex: 1 1 300px; min-width: 0; }
.kicker, .etiqueta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--naranja-texto); background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px 6px 10px; border-radius: 999px; box-shadow: var(--sombra-sm);
}
.etiqueta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); box-shadow: 10px 0 0 var(--verde-vivo), 20px 0 0 var(--amarillo); margin-right: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 650; font-size: 15.5px; text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-sm); transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.btn:hover { color: var(--ink); border-color: var(--ink-2); background: #fff; box-shadow: var(--sombra); }
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--naranja); border-color: var(--naranja); color: var(--ink); }
.btn-primario:hover { background: var(--naranja-hover); border-color: var(--naranja-hover); color: var(--ink); }
.btn-oscuro { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-oscuro:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-peligro { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.btn-peligro:hover { background: #9F1239; border-color: #9F1239; color: #fff; }
.btn-sombra { box-shadow: 0 6px 16px rgba(255, 107, 26, .28); }
.btn-pill { border-radius: 999px; }
.btn-grande { min-height: 58px; padding: 10px 26px; font-size: 17px; border-radius: 14px; }
.btn-link { background: none; border: none; padding: 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 244, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marca:hover { color: var(--ink); }
.marca img { width: 38px; height: 38px; }
.marca span { font-family: var(--fuente-titulo); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:not(.btn):hover { background: rgba(16, 24, 40, .05); color: var(--ink); }
.nav-links form { margin: 0; }
.nav-links .btn { min-height: 42px; padding: 8px 18px; }
.nav-avisos { gap: 6px; }
.burbuja { background: var(--rosa); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; line-height: 18px; }

/* ---------- Mensajes ---------- */
.flashes { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.aviso { border-radius: var(--r); padding: 12px 16px; font-weight: 600; border: 1px solid transparent; }
.aviso-ok { background: var(--verde-suave); color: #0B5D54; border-color: #B7E6DA; }
.aviso-info { background: #EEF3FF; color: #1E3A8A; border-color: #CBD9FF; }
.aviso-error { background: #FFF0F3; color: #881337; border-color: #FBCFD9; }
.aviso ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.aviso-protegido { background: var(--verde-suave); color: #0B5D54; border-color: #B7E6DA; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(600px 300px at 85% 10%, rgba(255, 197, 61, .22), transparent 70%),
  radial-gradient(520px 320px at 100% 80%, rgba(20, 184, 166, .14), transparent 70%),
  var(--bg); }
.hero .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; padding-top: 56px; padding-bottom: 72px; }
.hero-texto { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-texto h1 .resaltado { background: linear-gradient(transparent 62%, rgba(255, 107, 26, .35) 62%); padding: 0 4px; }
.hero-arte { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-arte svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 24px 40px rgba(16, 24, 40, .12)); }
.hero-barra { flex: 1 1 100%; min-width: 0; }
.hero-confianza { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.hero-confianza li { display: inline-flex; align-items: center; gap: 8px; }
.hero-confianza svg { color: var(--verde); flex: 0 0 auto; }

/* Escena animada del hero: breteadora diseñando y breteador armando */
.escena .martillar { transform-box: view-box; transform-origin: 392px 236px; animation: martillar 1.3s cubic-bezier(.5, 0, .6, 1) infinite; }
@keyframes martillar { 0%, 30% { transform: rotate(-38deg); } 62% { transform: rotate(4deg); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(-38deg); } }
.escena .chispas { opacity: 0; transform-box: fill-box; transform-origin: 0% 100%; animation: chispas 1.3s linear infinite; }
@keyframes chispas { 0%, 58% { opacity: 0; transform: scale(.4); } 64% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.25); } }
.escena .dibujar { transform-box: view-box; transform-origin: 100px 236px; animation: dibujar 2.4s ease-in-out infinite; }
@keyframes dibujar { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 25% { transform: rotate(-3deg) translate(3px, -2px); } 50% { transform: rotate(1deg) translate(6px, 1px); } 75% { transform: rotate(-2deg) translate(2px, 2px); } }
.escena .trazo { stroke-dasharray: 210; stroke-dashoffset: 210; animation: trazar 4.8s ease-in-out infinite; }
.escena .trazo-2 { stroke-dasharray: 80; stroke-dashoffset: 80; animation-delay: .6s; }
@keyframes trazar { 0% { stroke-dashoffset: 210; opacity: 1; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 95% { opacity: 0; stroke-dashoffset: 0; } 100% { opacity: 0; } }
.escena .parpadeo { transform-box: fill-box; transform-origin: center; animation: parpadeo 4.2s infinite; }
@keyframes parpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.escena .flota { animation: flotar 4s ease-in-out infinite; }
.escena .flota-2 { animation-delay: -2s; animation-duration: 4.6s; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Barra gigante ---------- */
.barra { display: flex; flex-direction: column; gap: 12px; }
.barra-label { font-family: var(--fuente-titulo); font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.015em; }
.barra-caja { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 8px; box-shadow: var(--sombra-lg); transition: box-shadow .2s, border-color .2s; }
.barra-caja:focus-within { border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 107, 26, .18), var(--sombra-lg); }
.barra-input { position: relative; flex: 1 1 320px; min-width: 0; display: flex; }
.barra-input input { width: 100%; border: none; font: inherit; font-size: clamp(17px, 2vw, 21px); font-weight: 500; padding: 12px 16px; min-height: 58px; background: transparent; color: var(--ink); border-radius: 14px; }
.barra-input input::placeholder { color: #8A90A0; }
.barra-input input:focus { outline: none; }
.btn-voz { flex: 0 0 58px; min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: #F6F3EE; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.btn-voz:hover { background: #EFEAE2; }
.btn-voz[hidden] { display: none; }
.btn-voz.escuchando { background: var(--rosa); color: #fff; border-color: var(--rosa); animation: latido 1s ease-in-out infinite; }
@keyframes latido { 0%,100% { box-shadow: 0 0 0 0 rgba(236, 76, 124, .45); } 50% { box-shadow: 0 0 0 10px rgba(236, 76, 124, 0); } }
.barra-ayuda { font-size: 14px; color: var(--muted); }
.link-ayudame { font-weight: 650; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.barra-compacta .barra-label { font-size: 18px; }
.seccion-barra { background: var(--bg); padding: 28px 0 4px; }

/* Autocompletado */
.sugerencias { position: absolute; z-index: 40; top: calc(100% + 14px); left: -8px; right: -8px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra-lg); max-height: 380px; overflow-y: auto; }
.sugerencias[hidden] { display: none; }
.sugerencias li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; min-height: 48px; }
.sugerencias li[aria-selected="true"], .sugerencias li:hover { background: var(--naranja-suave); }
.sug-texto { font-weight: 600; }
.sug-texto mark { background: none; color: var(--naranja-texto); font-weight: 750; }
.sug-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.activo { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-prov { font-size: 14px; }
.chip-prov.activo { background: var(--verde); border-color: var(--verde); }
.chip-suave { background: rgba(255, 255, 255, .7); font-size: 14px; }
.label { font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
.entendimos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-entendido { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid #B7E6DA; color: #0B5D54; font-weight: 650; border-radius: 999px; padding: 4px 4px 4px 14px; min-height: 44px; box-shadow: var(--sombra-sm); }
.chip-k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.chip-x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #0B5D54; }
.chip-x:hover { background: var(--verde-suave); color: #0B5D54; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; background: #F2EEE8; color: var(--ink-2); font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.badge-verde { background: var(--verde-suave); color: #0B5D54; }
.badge-amarillo { background: #FFF6DB; color: #8A5300; }
.badge-protegido { background: var(--verde); color: #fff; }

/* ---------- Categorías ---------- */
.cat-card { position: relative; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; box-shadow: var(--sombra-sm); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tinte); opacity: .7; transition: transform .25s; }
.cat-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sombra-lg); border-color: transparent; }
.cat-card:hover::after { transform: scale(1.25); }
.cat-card > * { position: relative; z-index: 1; }
.cat-icono { width: 52px; height: 52px; border-radius: 14px; background: var(--tinte); color: var(--tono); display: inline-flex; align-items: center; justify-content: center; }
.cat-nombre { font-family: var(--fuente-titulo); font-weight: 750; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.cat-card .cat-desc { color: var(--muted); font-size: 15px; }
.cat-ir { margin-top: auto; font-weight: 650; font-size: 14px; color: var(--tono); display: inline-flex; align-items: center; gap: 6px; }
.cat-Digital { --tinte: #F1EBFF; --tono: #5B32C9; }
.cat-Clases { --tinte: #E8F0FF; --tono: #2448C8; }
.cat-Hogar { --tinte: #FFF0E6; --tono: #B23A0A; }
.cat-Mandados { --tinte: #E3F7F2; --tono: #0B6B5F; }
.cat-Creativos { --tinte: #FDECF2; --tono: #B0174B; }
.cat-Tech { --tinte: #FFF6DB; --tono: #8A5300; }
.cat-letra { display: none; }

/* ---------- Tarjetas ---------- */
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sombra-sm); transition: box-shadow .18s, transform .18s; }
.tarjeta:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: linear-gradient(135deg, #FFD3B5, #FFB4C8); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--fuente-titulo); font-weight: 750; font-size: 19px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 112px; height: 112px; flex-basis: 112px; font-size: 40px; background: linear-gradient(135deg, #FFE08A, #FFB37A); }
.nombre { font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.nombre:hover { color: var(--ink); text-decoration: underline; }
.lugar { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.oficio { font-family: var(--fuente-titulo); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.desc { font-size: 14.5px; color: var(--muted); }
.desc-larga { white-space: pre-line; }
.tarjeta-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.precio { font-size: 13.5px; color: var(--muted); }
.precio strong { font-size: 19px; color: var(--ink); font-weight: 750; letter-spacing: -0.01em; }
.tarjeta .btn { min-height: 42px; padding: 8px 16px; font-size: 14.5px; }
.tarjeta-pedido { border-top: 4px solid var(--verde-vivo); }
.pedido-texto { font-family: var(--fuente-titulo); font-weight: 650; font-size: 19px; line-height: 1.3; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.pedido-texto:hover { text-decoration: underline; color: var(--ink); }
.pedido-titulo { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; }
.vacio { background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 44px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.paginacion { display: flex; gap: 10px; justify-content: center; margin-top: 32px; align-items: center; }

/* ---------- Pasos ---------- */
.paso { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.paso-num { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fuente-titulo); font-weight: 800; font-size: 22px; color: var(--ink); }
.paso p { color: #B9C3DB; }
.n1 { background: var(--naranja); } .n2 { background: var(--amarillo); } .n3 { background: #5EEAD4; }

/* ---------- Reglas ---------- */
.reglas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.regla { border-radius: var(--r-lg); padding: 28px; border: 1px solid; background: var(--surface); }
.regla ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.regla li { display: flex; gap: 10px; align-items: flex-start; }
.regla li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.regla-si { border-color: #B7E6DA; }
.regla-si h3 { color: #0B5D54; }
.regla-si li::before { background-color: var(--verde-suave); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B5F' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.regla-no { border-color: #FBCFD9; }
.regla-no h3 { color: #881337; }
.regla-no li::before { background-color: #FFF0F3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BE123C' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

/* ---------- Formularios ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sombra); }
.panel-angosto { max-width: 520px; margin: 48px auto; }
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
.campo input, .campo select, .campo textarea {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px;
  min-height: 46px; color: var(--ink); background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 107, 26, .15); }
.ayuda { font-size: 13.5px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--naranja-texto); flex: 0 0 20px; }
.check-protegido { background: var(--verde-suave); border: 1px solid #B7E6DA; border-radius: var(--r); padding: 16px; }
.oficio-fila { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #FCFAF7; }
.oficio-fila[hidden] { display: none; }
@media (max-width: 640px) { .oficio-fila { grid-template-columns: 1fr; } }
.foto-fila { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; }

/* Asistente */
.asistente { display: flex; flex-direction: column; gap: 28px; max-width: 960px; margin: 0 auto; }
.paso-asistente { display: flex; flex-direction: column; gap: 16px; }
.paso-asistente[hidden] { display: none; }
.pregunta { font-family: var(--fuente-titulo); font-weight: 750; font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -0.015em; margin-bottom: 8px; }
.opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.opciones-grandes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.opcion { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; cursor: pointer; background: #fff; min-height: 56px; transition: border-color .15s, box-shadow .15s, background .15s; }
.opcion:hover { border-color: var(--ink-2); }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--naranja); background: var(--naranja-suave); box-shadow: 0 0 0 3px rgba(255, 107, 26, .25); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 2px; }
.opcion-chica { justify-content: center; text-align: center; padding: 14px; }
.opcion-titulo { font-weight: 700; font-size: 16.5px; }
.opcion-sub { font-size: 14px; color: var(--muted); }
.opcion .cat-icono { width: 44px; height: 44px; border-radius: 12px; }
.asistente-nav { border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Resultados ---------- */
.seccion-resultados { padding-top: 24px; }
.h-resultados { font-size: clamp(28px, 3.4vw, 38px); }
.h-sub { font-size: 24px; margin-top: 16px; }
.cta-destacada { border-color: #FFC9A8; box-shadow: 0 0 0 4px var(--naranja-suave), var(--sombra); }

/* ---------- Perfil ---------- */
.perfil-cab { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.lista-oficios { display: flex; flex-direction: column; gap: 12px; }
.oficio-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sombra-sm); }
.oferta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sombra-sm); }
.oferta-precio { margin-left: auto; font-weight: 750; font-size: 20px; color: var(--ink); }
.enlace-fila { text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.enlace-fila:hover { color: var(--ink); box-shadow: var(--sombra); }
details summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }

/* ---------- Avisos ---------- */
.avisos-lista, .alertas-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.avisos-lista li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.avisos-lista li.nuevo { border-left: 4px solid var(--naranja); }
.avisos-lista a { font-weight: 600; color: var(--ink); }
.alertas-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.alertas-lista form { margin: 0; }

/* ---------- Seguro y confiable ---------- */
.seccion-confianza { position: relative; overflow: hidden; background: var(--navy); color: #E6EAF5; }
.seccion-confianza::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, .35), transparent 65%); }
.seccion-confianza .contenedor { position: relative; }
.seccion-confianza h2, .seccion-confianza h3 { color: #fff; }
.seccion-confianza .lead { color: #B9C3DB; }
.etiqueta-verde { color: #5EEAD4; background: rgba(94, 234, 212, .1); border-color: rgba(94, 234, 212, .3); box-shadow: none; }
.etiqueta-verde::before { display: none; }
.confianza-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.confianza-card { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.confianza-card:hover { border-color: rgba(94, 234, 212, .5); transform: translateY(-2px); }
.confianza-card p { color: #B9C3DB; font-size: 15px; }
.confianza-icono { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.confianza-card:nth-child(1) .confianza-icono { background: var(--naranja); }
.confianza-card:nth-child(2) .confianza-icono { background: var(--amarillo); }
.confianza-card:nth-child(3) .confianza-icono { background: #5EEAD4; }
.confianza-card:nth-child(4) .confianza-icono { background: #FF9BB8; }
.confianza-pasos { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: paso; }
.confianza-pasos li { display: flex; gap: 12px; align-items: flex-start; border-top: 2px solid rgba(255, 255, 255, .14); padding: 16px 4px 0; color: #B9C3DB; font-size: 15px; }
.confianza-pasos strong { color: #fff; }
.paso-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.seccion-confianza .btn:not(.btn-primario) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.seccion-confianza .btn:not(.btn-primario):hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.garantia-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.garantia-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sombra-sm); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; }
.faq[open] { box-shadow: var(--sombra); }
.faq p { padding-bottom: 14px; color: var(--ink-2); }

/* ---------- Admin ---------- */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sombra-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F7F4EF; font-weight: 650; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--muted); box-shadow: var(--sombra-sm); }
.stat strong { display: block; font-family: var(--fuente-titulo); font-size: 34px; line-height: 1.1; color: var(--ink); }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.legal h2 { font-size: 26px; margin-top: 32px; }
.legal p, .legal li { margin-top: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #B9C3DB; border-top: 4px solid; border-image: linear-gradient(90deg, var(--naranja), var(--amarillo), var(--verde-vivo), var(--rosa)) 1; }
.footer .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.footer a { color: #fff; font-weight: 600; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .fila { gap: 8px 22px; }
.footer .marca-pie { font-family: var(--fuente-titulo); font-weight: 800; font-size: 26px; line-height: 1; color: #fff; letter-spacing: -0.03em; }
.footer strong { color: #fff; }

/* ---------- Responsive ---------- */
#breteadores > .contenedor > .fila.entre { margin-bottom: 24px; }
@media (max-width: 760px) {
  .seccion { padding: 56px 0; }
  .hero .contenedor { gap: 28px; padding-top: 32px; }
  .hero-barra { order: 2; }
  .hero-arte { order: 3; }
  .hero-arte svg { max-width: 260px; }
  .btn-grande { flex: 1 1 auto; }
  .nav-links { gap: 2px; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .escena *, .btn-voz.escuchando { animation: none !important; }
  .escena .trazo { stroke-dashoffset: 0; }
  .escena .chispas { opacity: 0; }
  html { scroll-behavior: auto; }
  .tarjeta:hover, .cat-card:hover, .confianza-card:hover { transform: none; }
}
@media (max-width: 520px) {
  .nav .contenedor { gap: 8px; }
  .nav-links a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .nav-links .btn { padding: 6px 14px; min-height: 40px; font-size: 14px; }
}

/* ===================== 100% costarricense ===================== */
.bandera { display: inline-flex; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 24, 40, .12); flex: 0 0 auto; line-height: 0; }
.etiqueta-bandera::before { display: none; }
.etiqueta-bandera { color: #002B7F; }

.barra-tica { background: var(--ink); color: #E6EAF5; font-size: 13.5px; }
.barra-tica .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 7px; padding-bottom: 7px; }
.barra-tica > .contenedor > span { display: inline-flex; align-items: center; gap: 8px; }
.barra-tica strong { color: #fff; }
.barra-tica .sep { opacity: .5; }
.barra-tica-soporte { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.barra-tica-soporte:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .barra-extra { display: none; } }

.punto-vivo { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: vivo 2s ease-out infinite; flex: 0 0 auto; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }


.pie-tico { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #fff; font-weight: 600; }

/* Sección "Hecho en Costa Rica" */
.seccion-tica { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.tica-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.tica-texto { flex: 1 1 520px; min-width: 0; }
.tica-lista { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; }
.tica-lista li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.tica-lista strong { color: var(--ink); display: block; }
.tica-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #E8EEFA; color: #002B7F; }
.tica-ico-2 { background: #FDEBEE; color: #B01022; }
.tica-ico-3 { background: var(--verde-suave); color: #0B6B5F; }
.tica-ico-4 { background: #FFF6DB; color: #8A5300; }
.tica-arte { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.tica-bandera { width: 100%; max-width: 380px; aspect-ratio: 5 / 3; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra-lg); transform: rotate(-4deg); }
.tica-bandera svg { width: 100%; height: 100%; display: block; }
.tica-sello { position: absolute; right: 6%; bottom: 14%; width: 116px; height: 116px; border-radius: 50%; background: var(--amarillo); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--sombra-lg); border: 4px solid #fff; transform: rotate(8deg); }
.tica-sello-num { font-family: var(--fuente-titulo); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.tica-sello-txt { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.tica-pie { font-family: var(--fuente-titulo); font-weight: 700; font-size: 20px; color: var(--muted); margin-top: 8px; }

/* Página de soporte */
.soporte-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 8px 0 12px; }
.soporte-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--sombra-sm); transition: box-shadow .15s, transform .15s; }
.soporte-card:hover { color: var(--ink); box-shadow: var(--sombra); transform: translateY(-2px); }
.soporte-wa { border-color: #B7E6DA; }
.soporte-card-ico { flex: 0 0 52px; height: 52px; border-radius: 14px; background: #22C55E; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.soporte-card-ico-2 { background: #E8EEFA; color: #002B7F; }
.soporte-card-titulo { font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.soporte-lista { margin: 0; }
@media (prefers-reduced-motion: reduce) { .punto-vivo { animation: none; } }

/* ===================== Aviso de cookies ===================== */
.aviso-cookies { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; animation: subir .35s ease-out; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.aviso-cookies-titulo { font-family: var(--fuente-titulo); font-weight: 750; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.aviso-cookies p { font-size: 14.5px; color: var(--ink-2); }
.aviso-cookies-botones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0; }
.aviso-cookies-botones .btn { min-height: 44px; }
@media (max-width: 640px) { .aviso-cookies { left: 10px; right: 10px; bottom: 10px; max-width: none; } .aviso-cookies-botones .btn { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .aviso-cookies { animation: none; } }
code { font-size: 13.5px; background: #F2EEE8; padding: 1px 6px; border-radius: 6px; }

/* ===================== Estrellas y niveles ===================== */
.nivel { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--nivel, #8A6E58); white-space: nowrap; }
.nivel-semilla { --nivel: #6B5A4B; }
.nivel-yiguirro { --nivel: #8A5300; }
.nivel-guaria { --nivel: #6D3FE0; }
.nivel-ceiba { --nivel: #0F766E; }
.nivel-volcan { --nivel: #C2410C; }
.nav-estrellas { color: var(--nivel) !important; font-weight: 700 !important; gap: 4px; }
.aviso-estrellas { background: #FFF6DB; color: #713F12; border-color: #FDE7A6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aviso-estrellas svg { color: #E9A100; flex: 0 0 auto; }
.aviso-estrellas a { color: #713F12; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 2px; color: #E9A100; font-size: 14px; }
.rating strong { color: var(--ink); margin-left: 4px; font-weight: 700; }
.rating .muted { margin-left: 3px; font-size: 13px; }
.badge-estrella { background: #FFF6DB; color: #8A5300; }
.badge-destacado { margin-left: auto; background: linear-gradient(135deg, #FF6B1A, #EC4C7C); color: #fff; }

.estrellas-hero { background: radial-gradient(500px 260px at 90% 20%, rgba(255, 197, 61, .25), transparent 70%), var(--bg); padding-bottom: 40px; }
.estrellas-cab { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.total-estrellas { color: #E9A100; }
.progreso { width: min(460px, 100%); height: 14px; background: #EFE8DE; border-radius: 999px; overflow: hidden; }
.progreso-barra { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--naranja), var(--amarillo)); width: 4%; }
.progreso-10 { width: 10%; } .progreso-20 { width: 20%; } .progreso-30 { width: 30%; } .progreso-40 { width: 40%; }
.progreso-50 { width: 50%; } .progreso-60 { width: 60%; } .progreso-70 { width: 70%; } .progreso-80 { width: 80%; }
.progreso-90 { width: 90%; } .progreso-100 { width: 100%; }
.escalera { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.escalera li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; text-align: center; opacity: .45; }
.escalera li.alcanzado { opacity: 1; }
.escalera li.actual .escalon { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--nivel); transform: scale(1.08); }
.escalon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nivel); color: #fff; }
.escalon-nombre { font-weight: 700; font-size: 13.5px; }
.estrellas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; margin-bottom: 20px; }
.logros, .premios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.logro { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.logro.ganado { background: #FFFBEE; border-color: #FDE7A6; }
.logro-ico { color: #D6CEC3; flex: 0 0 auto; display: inline-flex; }
.logro.ganado .logro-ico { color: #E9A100; }
.logro-texto { flex: 1 1 auto; min-width: 0; }
.logro-pts { font-weight: 800; color: #8A5300; white-space: nowrap; }
.btn-chico { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.premio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); }
.premio.desbloqueado { border-style: solid; background: var(--surface); color: var(--ink); }
.premio-estado { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.premio.desbloqueado .premio-estado { color: var(--verde); }

/* Portada y perfil */
.portada { height: 150px; background: var(--portada, #0F766E); background-image: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .22) 0 70px, transparent 71px), radial-gradient(circle at 10% 120%, rgba(255, 255, 255, .14) 0 120px, transparent 121px); }
.portada-base { --portada: #0F766E; } .portada-naranja { --portada: #FF6B1A; } .portada-lila { --portada: #7C4DFF; }
.portada-azul { --portada: #3B6FF6; } .portada-rosa { --portada: #EC4C7C; } .portada-amarillo { --portada: #FFC53D; }
.portada-navy { --portada: #0E1B3D; }
.seccion-perfil { padding-top: 0; }
.seccion-perfil .perfil-cab { margin-top: -56px; }
.seccion-perfil .perfil-cab .avatar-lg { box-shadow: 0 0 0 5px var(--bg), var(--sombra); }
.portadas { display: flex; flex-wrap: wrap; gap: 10px; }
.portada-opcion { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--portada); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.portada-opcion input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.portada-opcion:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.portada-opcion:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.portada-opcion:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.historial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.historial-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra-sm); }
.historial-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.historial-texto { padding: 16px; }
.candado { display: flex; gap: 10px; align-items: flex-start; background: #F7F4EF; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; color: var(--ink-2); font-size: 14.5px; }
.candado svg { flex: 0 0 auto; margin-top: 2px; }
.mini-lista { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.mini-lista .actual { color: var(--ink); font-weight: 700; }
.resena { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }

/* Mensajes */
.panel-mensaje textarea { min-height: 120px; }
.nota-agente { display: flex; gap: 10px; align-items: flex-start; background: var(--verde-suave); border-radius: var(--r); padding: 12px 14px; }
.nota-agente .punto-vivo { margin-top: 6px; }
.nota-agente p { font-size: 13.5px; color: #0B5D54; }
.conv-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.conv-texto { flex: 1 1 auto; min-width: 0; }
.conv-ultimo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estado { display: inline-flex; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F2EEE8; color: var(--ink-2); white-space: nowrap; }
.estado-nueva { background: #FFF0E6; color: #B23A0A; }
.estado-coordinando { background: #EEF3FF; color: #1E3A8A; }
.estado-agendado { background: #F1EBFF; color: #5B32C9; }
.estado-completado { background: var(--verde-suave); color: #0B5D54; }
.estado-cancelado { background: #F2EEE8; color: var(--muted); }
.chat-cab { display: flex; gap: 14px; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 10px; background: #F7F4EF; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; max-height: 560px; overflow-y: auto; }
.chat-agente { max-height: 420px; }
.burbuja-msj { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.burbuja-msj.propia { align-self: flex-end; background: #FFE3D1; border-color: #FFC9A8; border-bottom-right-radius: 4px; }
.burbuja-msj.agente { align-self: flex-start; border-bottom-left-radius: 4px; }
.burbuja-msj.sistema { background: var(--verde-suave); border-color: #B7E6DA; }
.burbuja-autor { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.burbuja-hora { font-size: 11.5px; color: var(--muted); align-self: flex-end; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1 1 auto; min-height: 56px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: inherit; resize: vertical; }
.chat-form textarea:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 107, 26, .15); }
.selector-estrellas { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.selector-estrellas legend { width: 100%; margin-bottom: 6px; }
.selector-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.selector-estrellas label { color: #D6CEC3; cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.selector-estrellas label svg path { fill: currentColor; }
.selector-estrellas input:checked ~ label, .selector-estrellas label:hover, .selector-estrellas label:hover ~ label { color: #E9A100; }
.selector-estrellas input:focus-visible + label { outline: 3px solid var(--azul); }
.agente-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.agente-hilos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.panel-interno { background: #FFFBEE; border-color: #FDE7A6; }
.fila-prioridad td { background: #FFFBEE; }
.select-chico { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: inherit; min-height: 42px; background: #fff; }
.pila-sm > .badge, .pila > .badge { align-self: flex-start; }
.seccion-perfil .perfil-cab { margin-top: 0; padding-top: 16px; align-items: flex-start; }
.seccion-perfil .perfil-cab .avatar-lg { margin-top: -72px; }
.pila > .nivel, .pila-sm > .nivel { align-self: flex-start; }

/* =====================================================================
   v4 · Mobile first: menú hamburguesa, barra de pestañas y animaciones
   ===================================================================== */

/* ---------- Menú hamburguesa (≤ 900px) ---------- */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav .contenedor { flex-wrap: nowrap; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--sombra-sm);
  }
  .menu-icono { position: relative; width: 20px; height: 14px; display: block; }
  .menu-icono span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.6, .05, .3, 1), opacity .2s, top .3s; }
  .menu-icono span:nth-child(1) { top: 0; } .menu-icono span:nth-child(2) { top: 6px; } .menu-icono span:nth-child(3) { top: 12px; }
  .menu-abierto .menu-icono span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-abierto .menu-icono span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .menu-abierto .menu-icono span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .js .nav-links {
    position: fixed; left: 12px; right: 12px; top: 74px; z-index: 70; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sombra-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
    transition: opacity .22s ease, transform .28s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .28s;
    max-height: calc(100vh - 170px); overflow-y: auto;
  }
  .js.menu-abierto .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .28s cubic-bezier(.2, .9, .3, 1.2), visibility 0s; }
  .js .nav-links a:not(.btn) { font-size: 17px; padding: 14px 14px; border-radius: 12px; }
  .js .nav-links .btn { margin-top: 6px; min-height: 50px; font-size: 16px; }
  .js .nav-links form .btn-link { width: 100%; text-align: left; padding: 14px; font-size: 17px; }
  .js.menu-abierto .nav-links > * { animation: item-menu .35s both; }
  .js.menu-abierto .nav-links > *:nth-child(2) { animation-delay: .03s; } .js.menu-abierto .nav-links > *:nth-child(3) { animation-delay: .06s; }
  .js.menu-abierto .nav-links > *:nth-child(4) { animation-delay: .09s; } .js.menu-abierto .nav-links > *:nth-child(5) { animation-delay: .12s; }
  .js.menu-abierto .nav-links > *:nth-child(6) { animation-delay: .15s; } .js.menu-abierto .nav-links > *:nth-child(7) { animation-delay: .18s; }
  .js.menu-abierto .nav-links > *:nth-child(n+8) { animation-delay: .21s; }
  .js.menu-abierto body::after { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(16, 24, 40, .28); backdrop-filter: blur(2px); animation: fundido .2s both; }
}
@keyframes item-menu { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
.nav { transition: box-shadow .2s, background .2s; }
.nav.nav-scroll { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }

/* ---------- Barra de pestañas abajo (≤ 720px) ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: 12px; transition: color .15s, transform .15s; }
  .tabbar a.activo { color: var(--naranja-texto); }
  .tabbar a.activo svg { animation: rebote .45s cubic-bezier(.3, 1.6, .5, 1); }
  .tabbar .tab-central { align-self: center; justify-self: center; width: 56px; height: 56px; min-height: 56px; margin-top: -26px; border-radius: 18px; background: var(--naranja); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 107, 26, .4); }
  .tabbar .tab-central svg { width: 26px; height: 26px; }
  body.con-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .aviso-cookies { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer .contenedor { padding-bottom: 28px; }
  /* Chips que se deslizan de lado en vez de apilarse */
  .hero .chips, .seccion-barra + .seccion .chips, #breteadores .chips, .seccion-resultados .entendimos {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    margin-inline: -24px; padding: 4px 24px 8px; scrollbar-width: none;
  }
  .hero .chips::-webkit-scrollbar, #breteadores .chips::-webkit-scrollbar { display: none; }
  .chips > *, .entendimos > * { flex: 0 0 auto; scroll-snap-align: start; }
  h1 { font-size: clamp(36px, 10vw, 48px); }
  .barra-caja { border-radius: 18px; }
  .btn { min-height: 48px; }
}
@keyframes rebote { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Título del hero ---------- */
.titulo-hero .palabra, .titulo-hero .rotador { display: inline-block; }
.js .titulo-hero .palabra, .js .titulo-hero .rotador { animation: subir-palabra .8s cubic-bezier(.2, .8, .2, 1) both; }
.js .titulo-hero > :nth-child(2) { animation-delay: .08s; }
.js .titulo-hero > :nth-child(4) { animation-delay: .16s; }
.js .titulo-hero > :nth-child(5) { animation-delay: .24s; }
@keyframes subir-palabra { from { opacity: 0; transform: translateY(40%) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.rotador { position: relative; overflow: hidden; vertical-align: bottom; padding: 0 2px; }
.rotador-palabra { display: inline-block; transition: transform .32s cubic-bezier(.6, 0, .4, 1), opacity .32s; }
.rotador-palabra.sale { transform: translateY(-90%); opacity: 0; }
.rotador-palabra.entra { transform: translateY(90%); opacity: 0; transition: none; }
.js .hero-texto .etiqueta { animation: aparecer .6s .05s both; }
.js .hero-texto > .lead { animation: aparecer .7s .32s both; }
.js .hero-arte { animation: aparecer-arte 1s .2s both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparecer-arte { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

/* Brillo que recorre la etiqueta del hero */
.etiqueta { position: relative; overflow: hidden; }
.js .etiqueta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); animation: brillo 4.5s 1.2s ease-in-out infinite; }
@keyframes brillo { 0% { left: -60%; } 35%, 100% { left: 130%; } }

/* ---------- Aparecer al hacer scroll ---------- */
.js .revelar { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--retraso, 0ms); }
.js .revelar.visible { opacity: 1; transform: none; }
.js .titulo-animado { opacity: 1; transform: none; }
.titulo-animado .pal { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.titulo-animado .pal > span { display: inline-block; transform: translateY(110%); transition: transform .75s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 55ms); }
.titulo-animado.visible .pal > span { transform: none; }

/* ---------- Detalles con vida ---------- */
.btn-primario { position: relative; overflow: hidden; isolation: isolate; }
.btn-primario::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-primario:hover::after { transform: translateX(120%); }
.cat-ir svg, .link-ayudame { transition: transform .2s; }
.cat-card:hover .cat-ir svg { transform: translateX(4px); }
.presionado { transform: scale(.97) !important; transition: transform .08s !important; }
.flashes .aviso { animation: bajar .45s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes bajar { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.aviso-estrellas svg { animation: estrella-pop .9s cubic-bezier(.3, 1.6, .5, 1) both, girito 2.4s 1s ease-in-out infinite; }
@keyframes estrella-pop { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes girito { 0%, 80%, 100% { transform: rotate(0); } 90% { transform: rotate(18deg) scale(1.15); } }
.js .progreso-barra { transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .progreso-barra:not(.lleno) { width: 0 !important; }
.logros .logro.ganado.visible .logro-ico { animation: estrella-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--retraso, 0ms) + 150ms); }
.escalera li.actual .escalon { animation: latido-nivel 2.4s ease-in-out infinite; }
@keyframes latido-nivel { 0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--nivel); } 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 11px color-mix(in srgb, var(--nivel) 30%, transparent); } }
.burbuja-msj { animation: burbuja .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.burbuja-msj.propia { transform-origin: bottom right; }
.burbuja-msj.agente { transform-origin: bottom left; }
@keyframes burbuja { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
.chip-entendido { animation: aparecer .45s both; }
.chip-entendido:nth-child(3) { animation-delay: .08s; } .chip-entendido:nth-child(4) { animation-delay: .16s; } .chip-entendido:nth-child(5) { animation-delay: .24s; }
.burbuja { animation: rebote .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.nav-estrellas svg { transition: transform .3s; }
.nav-estrellas:hover svg { transform: rotate(72deg) scale(1.15); }
.tarjeta .avatar { transition: transform .25s; }
.tarjeta:hover .avatar { transform: rotate(-4deg) scale(1.05); }
.sugerencias:not([hidden]) { animation: aparecer .18s both; }

/* ---------- Sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .revelar, .js .titulo-hero *, .titulo-animado .pal > span { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; transition: none !important; }
  .js .etiqueta::after, .burbuja-msj, .flashes .aviso, .chip-entendido, .aviso-estrellas svg, .escalera li.actual .escalon, .tabbar a.activo svg { animation: none !important; }
  .js .progreso-barra { transition: none; }
}
.sin-animacion .revelar { opacity: 1 !important; transform: none !important; }

/* ===================== Admin ===================== */
.admin { max-width: 1400px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-lateral { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 8px; }
.admin-marca { font-family: var(--fuente-titulo); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; transition: background .15s, color .15s; }
.admin-nav a:hover { background: rgba(16, 24, 40, .05); color: var(--ink); }
.admin-nav a.activo { background: var(--ink); color: #fff; }
.admin-roles { padding: 0 12px; font-size: 12.5px; }
.admin-contenido { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-cab { margin-bottom: 4px; }
.nav-admin { background: #FFF6DB; color: #8A5300 !important; font-weight: 700 !important; }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .admin-lateral { position: static; }
  .admin-marca, .admin-roles { display: none; }
  .admin-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line); }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); box-shadow: var(--sombra-sm); transition: box-shadow .15s, transform .15s; }
a.kpi:hover { color: var(--ink); box-shadow: var(--sombra); transform: translateY(-2px); }
.kpi-n { font-family: var(--fuente-titulo); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.kpi-l { font-weight: 650; font-size: 14.5px; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.admin-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.semaforo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.semaforo li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: #F7F4EF; }
.semaforo li a, .semaforo li span:not(.luz) { flex: 1 1 auto; font-weight: 600; color: var(--ink); }
.semaforo strong { font-family: var(--fuente-titulo); font-size: 22px; }
.luz { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.semaforo .verde .luz { background: #22C55E; } .semaforo .amarillo .luz { background: #F5B70B; } .semaforo .rojo .luz { background: #E11D48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .15); }
.semaforo .rojo { background: #FFF0F3; }
.barras { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 190px; }
.barra-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.barra-v { width: 100%; max-width: 40px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--naranja), #FF9A5C); min-height: 4px; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.alto-0 { height: 4px; } .alto-10 { height: 10%; } .alto-20 { height: 20%; } .alto-30 { height: 30%; } .alto-40 { height: 40%; }
.alto-50 { height: 50%; } .alto-60 { height: 60%; } .alto-70 { height: 70%; } .alto-80 { height: 72%; } .alto-90 { height: 76%; } .alto-100 { height: 78%; }
.js .revelar:not(.visible) .barra-v { height: 4px; }
.barra-n { font-weight: 700; font-size: 13px; }
.barra-e { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tabla-calor td, .tabla-calor th { text-align: center; white-space: nowrap; }
.tabla-calor th[scope="row"] { text-align: left; }
.calor { font-weight: 700; }
.calor-1 { background: #FFF0E6; } .calor-2 { background: #FFD3B5; } .calor-3 { background: #FFA66B; } .calor-4 { background: var(--naranja); color: var(--ink); }
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; align-items: end; padding: 18px; }
.filtro-q { grid-column: span 2; }
@media (max-width: 520px) { .filtro-q { grid-column: auto; } }
.filtros-checks { display: flex; flex-direction: column; gap: 6px; }
.chip-n { font-size: 12px; opacity: .7; margin-left: 2px; }
.lote-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: #F7F4EF; border: 1px dashed var(--line-2); margin-bottom: 10px; transition: background .2s, border-color .2s; }
.lote-barra.activa { background: #FFF6DB; border-color: #F5B70B; border-style: solid; }
.lote-barra input.select-chico { flex: 1 1 220px; }
.tabla-directorio td { vertical-align: middle; }
.tabla-directorio tr.seleccionada td { background: #FFFBEE; }
.tabla-directorio input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--naranja-texto); }
.dir-persona { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 240px; }
.dir-persona:hover strong { text-decoration: underline; }
.dir-oficios { min-width: 180px; font-size: 14px; color: var(--ink-2); white-space: normal; }
.dir-senales { min-width: 140px; } .dir-senales .badge { margin: 2px 0; }
.badge-rojo { background: #FFF0F3; color: #9F1239; }
.estado-perfil { display: inline-flex; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ep-pendiente { background: #FFF6DB; color: #8A5300; } .ep-aprobado { background: var(--verde-suave); color: #0B5D54; }
.ep-suspendido { background: #FFF0F3; color: #9F1239; } .ep-baja { background: #F2EEE8; color: var(--muted); }
.ficha-cab { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.ficha-datos { flex: 1 1 360px; min-width: 0; }
.ficha-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.acciones-estado { display: flex; flex-wrap: wrap; gap: 8px; }
.accion-desplegable { border: 1px solid var(--line); border-radius: var(--r); padding: 2px 14px; }
.accion-desplegable[open] { padding-bottom: 14px; }
.linea { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.linea:last-child { border-bottom: 0; }
.nota { background: #fff; border: 1px solid #FDE7A6; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; padding: 0 0 14px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .muted { grid-column: 2; font-size: 12.5px; }
.tl-punto { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); margin-top: 4px; position: relative; z-index: 1; }
.tl-alta .tl-punto { background: var(--verde); } .tl-admin .tl-punto { background: var(--ink); } .tl-reporte .tl-punto { background: var(--rojo); }
.tl-resena .tl-punto, .tl-estrella .tl-punto { background: #F5B70B; } .tl-verif .tl-punto { background: var(--azul); }
.mini-galeria { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-galeria img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.docs figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.docs img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #F7F4EF; }
.docs figcaption { font-size: 13px; color: var(--muted); font-weight: 600; }
.datos-lista { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.datos-lista dt { color: var(--muted); }
.datos-lista dd { margin: 0; }

.admin > * { min-width: 0; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 520px) { .kpi-n { font-size: 28px; } .kpi { padding: 14px; } .barras { height: 150px; gap: 4px; } }
.td-rating { white-space: nowrap; }

/* ===================== Supervisor Chat (estilo sobrio, institucional) ===================== */
.sup { --sup-ink: #0F172A; --sup-linea: #E2E8F0; --sup-fondo: #F8FAFC; --sup-acento: #1E3A8A;
  background: #fff; border: 1px solid var(--sup-linea); border-radius: 14px; overflow: hidden; color: var(--sup-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.sup *, .sup-banner, .sup-acceso { animation: none !important; }
.sup .revelar { opacity: 1 !important; transform: none !important; }
.sup-contenedor { max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.sup-cab { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--sup-ink); color: #E2E8F0; }
.sup-escudo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: #1E293B; color: #93C5FD; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #334155; }
.sup-escudo-chico { width: 34px; height: 34px; flex-basis: 34px; background: var(--sup-fondo); color: var(--sup-acento); border-color: var(--sup-linea); }
.sup-titulo { font-family: var(--fuente); font-weight: 700; font-size: 17px; letter-spacing: .01em; color: #fff; }
.sup-sub { font-size: 13.5px; color: #94A3B8; }
.sup-sello { margin-left: auto; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; border: 1px solid #334155; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 560px) { .sup-sello { display: none; } }
.sup-intro { padding: 14px 20px; background: var(--sup-fondo); border-bottom: 1px solid var(--sup-linea); font-size: 14px; color: #475569; }
.sup-lista { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; background: var(--sup-fondo); }
.sup-msj { padding: 16px 20px; border-bottom: 1px solid var(--sup-linea); background: #fff; border-left: 4px solid transparent; }
.sup-msj.sup-breteador { background: var(--sup-fondo); border-left-color: #CBD5E1; }
.sup-t-info { border-left-color: #1E3A8A; }
.sup-t-recordatorio { border-left-color: #B45309; }
.sup-t-advertencia { border-left-color: #B91C1C; background: #FEF7F7; }
.sup-t-reconocimiento { border-left-color: #047857; }
.sup-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sup-autor { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.sup-autor svg { color: var(--sup-acento); }
.sup-tipo { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: #EEF2FF; color: #1E3A8A; }
.sup-t-recordatorio .sup-tipo:not(.sup-tipo-imp) { background: #FEF3C7; color: #92400E; }
.sup-t-advertencia .sup-tipo:not(.sup-tipo-imp) { background: #FEE2E2; color: #991B1B; }
.sup-t-reconocimiento .sup-tipo:not(.sup-tipo-imp) { background: #D1FAE5; color: #065F46; }
.sup-tipo-imp { background: var(--sup-ink); color: #fff; }
.sup-hora { margin-left: auto; font-size: 12.5px; color: #64748B; font-variant-numeric: tabular-nums; }
.sup-texto { font-size: 15px; line-height: 1.6; color: #1E293B; }
.sup-estado { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: #64748B; }
.sup-estado form { margin: 0; }
.sup-ok { color: #047857; font-weight: 700; }
.sup-pend { color: #B45309; font-weight: 700; }
.sup-vacio { padding: 28px 20px; color: #64748B; text-align: center; list-style: none; }
.sup-redactar { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--sup-linea); background: #fff; }
.sup-redactar-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.sup .campo input, .sup .campo select, .sup .campo textarea { border-radius: 8px; border-color: #CBD5E1; }
.sup .campo input:focus, .sup .campo select:focus, .sup .campo textarea:focus { border-color: var(--sup-acento); box-shadow: 0 0 0 3px rgba(30, 58, 138, .15); }
.sup .btn { border-radius: 8px; }
.sup .btn-oscuro, .btn-oscuro.sup-btn { background: var(--sup-ink); border-color: var(--sup-ink); }
.sup-bandeja { display: flex; flex-direction: column; }
.sup-fila { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--sup-linea); text-decoration: none; color: var(--sup-ink); }
.sup-fila:last-child { border-bottom: 0; }
.sup-fila:hover { background: var(--sup-fondo); color: var(--sup-ink); }
.sup-fila-texto { flex: 1 1 auto; min-width: 0; }
.sup-fila-texto .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-fila-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.sup-contador { background: #1E3A8A; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; white-space: nowrap; }
.sup-acceso { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #0F172A; color: #E2E8F0; text-decoration: none; }
.sup-acceso:hover { color: #fff; background: #1E293B; }
.sup-acceso strong { color: #fff; }
.sup-acceso .muted { color: #94A3B8; }
.sup-acceso .sup-contador { margin-left: auto; background: #fff; color: #0F172A; }
.sup-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #0F172A; color: #E2E8F0; text-decoration: none; font-size: 14.5px; }
.sup-banner:hover { color: #fff; }
.sup-banner strong { margin-left: auto; color: #93C5FD; }
.sup-banner svg { color: #93C5FD; }
@media (max-width: 720px) { .sup-lista { max-height: none; overflow: visible; } .sup-msj, .sup-redactar, .sup-cab, .sup-intro { padding-left: 16px; padding-right: 16px; } .sup-hora { margin-left: 0; width: 100%; } }

/* ===================== Catálogo de trabajos, destrezas, enlaces y video ===================== */
.pregunta-chica { font-family: var(--fuente-titulo); font-weight: 750; font-size: 22px; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 0; margin-bottom: 4px; }
.pregunta-chica .muted { font-family: var(--fuente); font-size: 14px; font-weight: 500; }
.trabajos-cat { border: 1px solid var(--line); border-radius: var(--r); background: #FCFAF7; }
.trabajos-cat > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 700; min-height: 52px; list-style: none; }
.trabajos-cat > summary::-webkit-details-marker { display: none; }
.trabajos-cat > summary::after { content: "▾"; margin-left: 8px; color: var(--muted); transition: transform .2s; }
.trabajos-cat[open] > summary::after { transform: rotate(180deg); }
.trabajos-cat > summary .muted { margin-left: auto; font-weight: 500; font-size: 13.5px; }
.cat-icono-chico { width: 34px; height: 34px; border-radius: 10px; }
.trabajos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; padding: 0 12px 14px; }
.trabajo-op { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, background .15s; }
.trabajo-op.marcado { border-color: var(--naranja); background: var(--naranja-suave); box-shadow: 0 0 0 3px rgba(255, 107, 26, .18); }
.trabajo-op.bloqueado { opacity: .5; }
.trabajo-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.trabajo-check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--naranja-texto); }
.trabajo-check .muted { font-size: 13.5px; }
.trabajo-precio input { min-height: 40px; padding: 6px 10px; }
.trabajo-precio input:disabled { background: #F7F4EF; }
.js .trabajo-op:not(.marcado) .trabajo-precio { display: none; }
.destrezas-sugeridas { margin-top: 4px; }
.destrezas-sugeridas .chip { min-height: 36px; font-size: 13.5px; }
.destrezas-sugeridas .chip.activo { background: var(--verde-suave); border-color: #B7E6DA; color: #0B5D54; }
.chip-destreza { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #EEF3FF; color: #1E3A8A; font-weight: 600; font-size: 14px; }
.enlaces-perfil { display: flex; flex-wrap: wrap; gap: 8px; }
.enlaces-perfil .chip { gap: 6px; }
.enlaces-perfil .chip .muted { font-size: 12.5px; }
.enlace-portafolio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.campo-boton { justify-content: flex-end; }
.badge-video { background: #0E1B3D; color: #fff; }
.video-intro { width: 100%; max-height: 560px; border-radius: var(--r-lg); background: #0E1B3D; box-shadow: var(--sombra); }
.video-perfil { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.pasos-perfil { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pasos-perfil a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; min-height: 44px; }
.pasos-perfil .actual a { border-color: var(--ink); color: var(--ink); box-shadow: var(--sombra-sm); }
.paso-circulo { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F2EEE8; font-weight: 800; font-size: 13px; }
.pasos-perfil .hecho .paso-circulo { background: var(--verde); color: #fff; }
.pasos-perfil .actual:not(.hecho) .paso-circulo { background: var(--naranja); color: var(--ink); }
.catalogo-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.catalogo-fila:last-child { border-bottom: 0; }
.catalogo-fila.pausado { opacity: .55; }
.catalogo-editar { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 520px; min-width: 0; }
.catalogo-editar input:first-of-type { flex: 1 1 200px; font-weight: 600; }
.catalogo-editar input:nth-of-type(2) { flex: 2 1 260px; }
.catalogo-fila form { margin: 0; }

/* ===================== Seguridad de la cuenta ===================== */
.contenedor-angosto { max-width: 760px; }
.banner-2fa { background: #0E1B3D; color: #fff; }
.banner-correo { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border-radius: var(--r); background: #FFF6DB; border: 1px solid #F3DC92; color: #5B4300; font-size: 15px; }
.banner-correo a { font-weight: 700; }
.pasos-2fa { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.qr-2fa { width: 232px; height: 232px; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 6px; }
.clave-2fa { display: inline-block; margin-top: 8px; padding: 10px 14px; background: #F2EEE8; border-radius: 10px; font-size: 17px; letter-spacing: .08em; word-break: break-all; }
.input-codigo { font-size: 24px; letter-spacing: .25em; font-variant-numeric: tabular-nums; max-width: 240px; }
.codigos-respaldo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.codigos-respaldo code { display: block; padding: 10px 12px; background: #F7F4EF; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 17px; text-align: center; letter-spacing: .05em; }
.badge-alerta { background: #FFF1E6; color: #9A3B00; }
.en-linea { display: inline; margin: 0; }

/* ===================== Crecimiento: unite, prueba social, compartir ===================== */
.hero-unite-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.hero-unite-link:hover { border-color: var(--naranja); }
.hero-unite-link strong { color: var(--naranja-texto, #C2410C); }
.hero-unite .titulo-hero .resaltado { background: linear-gradient(transparent 62%, rgba(255, 107, 26, .35) 62%); padding: 0 4px; }
.franja-cifras { padding: 18px 0 6px; }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.cifras .stat span { font-size: 14.5px; }
.banda-unite { background: linear-gradient(135deg, #FF6B1A 0%, #FF8A3D 55%, #FFB347 100%); color: var(--ink); }
.banda-unite .etiqueta { background: rgba(255, 255, 255, .85); }
.banda-unite .resaltado { background: #fff; padding: 0 8px; border-radius: 8px; }
.banda-unite .lead { color: #3A1A05; }
.banda-unite-grid { max-width: 820px; }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16.5px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; }
.lista-check svg { flex: 0 0 auto; margin-top: 4px; color: var(--verde); }
.banda-unite .lista-check svg { color: var(--navy); }
.banda-cta { background: var(--naranja-suave); }
.centro { text-align: center; align-items: center; }
.fila-centro { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-whatsapp { background: #128C4B; color: #fff; border-color: #128C4B; }
.btn-whatsapp:hover { background: #0E7A40; color: #fff; }
.beneficios { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.beneficio { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sombra-sm); }
.beneficio h3 { margin: 0; }
.beneficio p { margin: 0; color: var(--ink-2); }
.beneficio-icono { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.b1 { background: #FFE7D6; color: #9A3B00; } .b2 { background: #E2F5EE; color: #0B5D54; } .b3 { background: #EEF3FF; color: #1E3A8A; }
.b4 { background: #F3E8FF; color: #6B21A8; } .b5 { background: #FFF6DB; color: #8A6100; } .b6 { background: #E6F0FF; color: #0E1B3D; }
.chip-demanda { background: #fff; border: 1px solid #F3C9A8; font-weight: 600; }
.lista-trabajos { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.catalogo-publico { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.faq { padding: 0; }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; min-height: 52px; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.registro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 980px; }
@media (min-width: 860px) { .registro-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } .registro-beneficios { position: sticky; top: 96px; padding-top: 24px; } }
.registro-beneficios { padding: 4px 4px 0; }
.cta-oferta { border: 1.5px dashed var(--naranja); background: var(--naranja-suave); }
.nav-ganar { font-weight: 700; color: var(--naranja-texto, #C2410C) !important; }
.banda-unite .btn-primario { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(14, 27, 61, .35); }
.banda-unite .btn-primario:hover { background: #1B2B57; color: #fff; }

/* ===================== Asistente de Bretecitos (chat flotante) ===================== */
.asistente { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.asistente > * { pointer-events: auto; }

/* Botón */
.asistente-lanzador { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 20px 6px 6px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 30px rgba(16, 24, 40, .28); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), background .15s, box-shadow .2s; animation: asistente-entrar .5s cubic-bezier(.3, 1.5, .5, 1) .8s both; }
.asistente-lanzador:hover { color: #fff; background: var(--navy-2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 24, 40, .32); }
.asistente-lanzador:focus-visible { outline-offset: 4px; border-radius: 999px; }
.asistente-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px var(--naranja-suave); }
.asistente-avatar img { width: 28px; height: 28px; }
.asistente-punto { position: absolute; left: 40px; bottom: 8px; width: 11px; height: 11px; border: 2px solid var(--ink); box-sizing: content-box; }
.asistente-badge { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--naranja); color: var(--ink); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; animation: rebote .45s cubic-bezier(.3, 1.6, .5, 1); }
.asistente.saluda .asistente-avatar img { animation: asistente-aleteo 1.2s ease-in-out 2; }
.asistente.abierto .asistente-lanzador { background: var(--navy-2); }

/* Saludo que aparece una sola vez */
.asistente-saludo { position: relative; max-width: 270px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px 20px 6px 20px; box-shadow: var(--sombra-lg); padding: 14px 38px 14px 16px; cursor: pointer; transform-origin: bottom right; animation: asistente-pop .4s cubic-bezier(.3, 1.4, .5, 1); }
.asistente-saludo:hover { border-color: var(--line-2); }
.asistente-saludo.saliendo { animation: asistente-salir .22s ease-in forwards; }
.asistente-saludo-txt { font-size: 15px; line-height: 1.45; font-weight: 550; min-height: 1.45em; }
.asistente-saludo-cerrar { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.asistente-saludo-cerrar:hover { background: #F2EEE8; color: var(--ink); }

/* Panel del chat */
.asistente-panel { width: 380px; height: min(600px, calc(100vh - 130px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 64px rgba(16, 24, 40, .22); overflow: hidden; transform-origin: bottom right; animation: asistente-abrir .34s cubic-bezier(.25, 1.3, .5, 1); }
.asistente-panel:focus { outline: none; }
.asistente-panel.saliendo { animation: asistente-salir .2s ease-in forwards; }
.asistente-cab { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.asistente-avatar-grande { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.asistente-cab-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.asistente-titulo { font-family: var(--fuente-titulo); font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asistente-estado { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #C9D3EA; }
.asistente-cab-btn { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #DCE3F3; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.asistente-cab-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.asistente-cab-btn:focus-visible { outline-color: #fff; }

.asistente-mensajes { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 100% 0, var(--naranja-suave), transparent 45%), var(--bg); }
.asistente-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: asistente-msg .28s cubic-bezier(.3, 1.3, .5, 1); overflow-wrap: anywhere; }
.asistente-msg-bot { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--sombra-sm); }
.asistente-msg-yo { align-self: flex-end; background: var(--naranja); color: var(--ink); font-weight: 550; border-bottom-right-radius: 6px; transform-origin: bottom right; }
.asistente-msg-bot + .asistente-msg-bot { border-top-left-radius: 6px; }
.asistente-tipeo:not(.listo)::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--naranja); animation: asistente-cursor .8s steps(1) infinite; }

/* "Escribiendo…" */
.asistente-puntos { display: inline-flex; gap: 5px; padding: 14px 16px; }
.asistente-puntos span { width: 7px; height: 7px; border-radius: 50%; background: #A3A9B8; animation: asistente-punto 1.1s ease-in-out infinite; }
.asistente-puntos span:nth-child(2) { animation-delay: .15s; }
.asistente-puntos span:nth-child(3) { animation-delay: .3s; }

/* Botones dentro de una respuesta y opciones rápidas */
.asistente-acciones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.asistente-accion { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; animation: asistente-msg .3s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.asistente-accion::after { content: "→"; transition: transform .15s; }
.asistente-accion:hover { color: var(--ink); border-color: var(--ink-2); transform: translateY(-1px); }
.asistente-accion:hover::after { transform: translateX(3px); }
.asistente-accion.principal { background: var(--ink); border-color: var(--ink); color: #fff; }
.asistente-accion.principal:hover { background: var(--navy-2); color: #fff; }
.asistente-accion.wa { background: #15803D; border-color: #15803D; color: #fff; }
.asistente-accion.wa:hover { background: #166534; color: #fff; }

.asistente-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0 16px; background: var(--bg); }
.asistente-chips:not(:empty) { padding-top: 4px; padding-bottom: 10px; }
.asistente-chip { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid #FFCFAF; background: var(--naranja-suave); color: var(--naranja-texto); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; animation: asistente-msg .3s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.asistente-chip:hover { background: #FFE1CC; border-color: var(--naranja); transform: translateY(-1px); }

.asistente-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); margin: 0; }
.asistente-form input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.asistente-form input:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(255, 107, 26, .18); background: #fff; }
.asistente-enviar { flex: 0 0 46px; height: 46px; border: 0; border-radius: 50%; background: var(--naranja); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; }
.asistente-enviar:hover { background: var(--naranja-hover); transform: scale(1.06); }
.asistente-pie { padding: 0 12px 10px; background: var(--surface); text-align: center; font-size: 12.5px; color: var(--muted); }
.asistente-pie a { color: var(--naranja-texto); font-weight: 650; }

@keyframes asistente-entrar { from { opacity: 0; transform: translateY(20px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes asistente-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes asistente-abrir { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes asistente-salir { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes asistente-msg { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes asistente-punto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes asistente-cursor { 50% { opacity: 0; } }
@keyframes asistente-aleteo { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.1); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }

/* Celular: el botón queda arriba de la barra de abajo y el chat sube como una hoja */
@media (max-width: 720px) {
  .asistente { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .asistente-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: min(82vh, 640px); height: min(82dvh, 640px); border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); transform-origin: bottom center; z-index: 70; }
  .asistente.abierto .asistente-lanzador, .asistente.abierto .asistente-saludo { visibility: hidden; }
}
@media (max-width: 520px) {
  .asistente-lanzador { padding: 6px; }
  .asistente-lanzador-txt { display: none; }
}
@media (max-width: 640px) { .aviso-cookies ~ .asistente { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .asistente *, .asistente *::before, .asistente *::after { animation: none !important; transition: none !important; }
}
