/* Aiden Help Center v9 — CSS limpio, sin conflictos */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Variables ───────────────────────────────────────────────────── */
.ahc {
  --brand:     #13967e;
  --brand-dk:  #0d7a66;
  --brand-lt:  #edf7f5;
  --bg:        #f0f4f8;
  --surface:   #ffffff;
  --border:    #e5e5e5;
  --text:      #141414;
  --muted:     #555;
  --subtle:    #888;
  --ai-grad:   linear-gradient(270deg, #13967e, #00c9b1, #0097ff, #a855f7, #13967e);
  --font:      'DM Sans', -apple-system, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
  --hh:        64px;
}
.ahc *,.ahc *::before,.ahc *::after { box-sizing: border-box; }
.ahc {
  font-family: var(--font);
  color: var(--text);
  /* Gradient fondo Netflix-style */
  background: linear-gradient(180deg, #e8edf5 0%, #f0f4f8 30%, #f5f5f5 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ══ BANNER ══════════════════════════════════════════════════════════ */
.ahc-banner { width: 100%; font-size: 13px; font-weight: 500; }
.ahc-banner__inner { max-width: 1080px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 10px; }
.ahc-banner--info    { background: #dbeafe; color: #1e40af; border-bottom: 1px solid #bfdbfe; }
.ahc-banner--warning { background: #fef3c7; color: #92400e; border-bottom: 1px solid #fde68a; }
.ahc-banner--success { background: #d1fae5; color: #065f46; border-bottom: 1px solid #a7f3d0; }
.ahc-banner--promo   { background: linear-gradient(90deg,#13967e,#0097ff,#a855f7); color: #fff; }
.ahc-banner__text    { flex: 1; }
.ahc-banner__link    { font-weight: 700; text-decoration: underline; color: inherit; margin-left: 8px; }
.ahc-banner__close   { background: none; border: none; cursor: pointer; color: inherit; opacity: .7; padding: 0; display: flex; align-items: center; }
.ahc-banner__close:hover { opacity: 1; }

/* ══ HEADER ══════════════════════════════════════════════════════════ */
.ahc-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 500; transition: box-shadow .2s; }
.ahc-header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ahc-header__inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: var(--hh); display: flex; align-items: center; gap: 16px; }
.ahc-header__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ahc-header__brand-link { display: flex; align-items: center; text-decoration: none; }
.ahc-logo-img { height: 22px; width: auto; display: block; object-fit: contain; }
.ahc-logo-svg { height: 22px; width: auto; display: block; }
.ahc-header__sep { font-size: 18px; font-weight: 200; color: #ccc; user-select: none; }
.ahc-header__label { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Buscador sticky en header */
.ahc-header__sw { flex: 1; max-width: 420px; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.ahc-header__sw.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ahc-header__sgrad { background: var(--ai-grad); background-size: 300% 300%; animation: ahc-grad 5s ease infinite; padding: 1.5px; border-radius: 99px; }
.ahc-header__sbox { background: #fff; border-radius: 99px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.ahc-header__sbox svg { color: var(--subtle); flex-shrink: 0; }
.ahc-header__sinput { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font); font-size: 16px; color: var(--text); -webkit-appearance: none; }
.ahc-header__sinput::placeholder { color: var(--subtle); }

/* Nav */
.ahc-header__nav { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.ahc-header__nav-link { font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 99px; white-space: nowrap; transition: color .15s, border-color .15s; }
.ahc-header__nav-link:hover { color: var(--brand); border-color: var(--brand); }
.ahc-header__login {
  display: inline-flex; align-items: center; padding: 8px 20px;
  background: var(--brand); color: #fff !important; -webkit-text-fill-color: #fff !important;
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  text-decoration: none !important; border-radius: 99px; border: none;
  cursor: pointer; transition: background .15s;
}
.ahc-header__login:hover,.ahc-header__login:focus { background: var(--brand-dk); color: #fff !important; }
@media(max-width:640px) { .ahc-header__sw,.ahc-header__nav-link { display: none; } }

/* ══ HERO ════════════════════════════════════════════════════════════ */
.ahc-hero {
  background: linear-gradient(180deg, #eef2f8 0%, #f7f9fb 60%, transparent 100%);
  min-height: calc(100vh - var(--hh));
  display: flex; flex-direction: column; align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.ahc-hero__center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; max-width: 640px;
  padding: 60px 0 24px; text-align: center;
}
.ahc-hero__title { font-size: clamp(2rem,5vw,3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text); margin: 0 0 28px; }

/* ── Buscador ──────────────────────────────────────────────────────── */
.ahc-search-wrap { width: 100%; }

/* Outer gradient ring — animado como antes */
.ahc-search-outer {
  background: var(--ai-grad);
  background-size: 400% 400%;
  animation: ahc-grad 5s ease infinite;
  padding: 2.5px;
  border-radius: 99px;
  box-shadow: 0 6px 28px rgba(19,150,126,.2), 0 0 40px rgba(0,151,255,.08);
}

.ahc-search-frame {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 99px;
  height: 56px;
  padding: 0 6px 0 20px;
}

.ahc-search-ico { color: var(--subtle); flex-shrink: 0; margin-right: 4px; }

.ahc-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 16px; color: var(--text);
  min-width: 0; -webkit-appearance: none;
}
.ahc-search-input::placeholder { color: var(--subtle); }

/* Spinner */
.ahc-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid #ddd; border-top-color: var(--brand);
  border-radius: 50%; animation: ahc-spin .7s linear infinite; display: none;
}
.ahc-spinner.is-active { display: block; }

/* Botón lupa — negro, círculo, bien dimensionado */
.ahc-search-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: #141414;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .15s, background .15s;
}
.ahc-search-btn:hover { background: #333; transform: scale(1.06); }
.ahc-search-btn:active { transform: scale(0.95); }
.ahc-search-btn svg { stroke: #fff; display: block; }

@media (max-width: 600px) {
  .ahc-search-outer { padding: 2px; }
  .ahc-search-frame { height: 50px; padding: 0 5px 0 16px; }
  .ahc-search-btn { width: 38px; height: 38px; }
  .ahc-search-btn svg { width: 15px; height: 15px; }
}

@keyframes ahc-btn-grad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ahc-grad { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }
@keyframes ahc-spin { to { transform: rotate(360deg); } }

/* TEMAS POPULARES — siempre visibles bajo el buscador */
.ahc-hero__popular {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  text-align: center;
}
.ahc-hero__popular strong { color: var(--text); font-weight: 600; }
.ahc-pop-link { color: var(--brand); text-decoration: underline; cursor: pointer; transition: color .15s; }
.ahc-pop-link:hover { color: var(--brand-dk); }

/* Explorar temas al pie del hero */
.ahc-hero__foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 0 28px; font-size: 13px; font-weight: 700; color: var(--text); }
.ahc-hero__foot-arrow { color: var(--muted); animation: ahc-bounce 1.6s ease-in-out infinite; }
@keyframes ahc-bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(5px)} }

@media(max-width:600px) {
  .ahc-hero { min-height: auto; padding: 0 16px; }
  .ahc-hero__center { padding: 40px 0 16px; }
  .ahc-hero__title { font-size: 1.8rem; margin-bottom: 20px; }
}

/* ══ CUERPO ══════════════════════════════════════════════════════════ */
.ahc-body { max-width: 780px; margin: 0 auto; padding: 28px 24px 0; }
@media(max-width:600px) { .ahc-body { padding: 20px 14px 0; } }

/* Panel Lunnar */
.ahc-ai-panel { background: #fff; border: 1px solid rgba(19,150,126,.25); border-radius: 12px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(19,150,126,.1); animation: ahc-fup .25s var(--ease) both; }
.ahc-ai-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--brand-lt); border-bottom: 1px solid rgba(19,150,126,.15); font-size: 12px; font-weight: 700; color: var(--brand-dk); letter-spacing: .04em; }
.ahc-lunnar-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; flex-shrink: 0; }
.ahc-ai-head__name { font-size: 13px; font-weight: 700; }
.ahc-ai-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.ahc-ai-body { padding: 14px 18px; }
.ahc-ai-dots { display: flex; gap: 5px; }
.ahc-ai-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: ahc-dot .8s var(--ease) infinite; }
.ahc-ai-dots span:nth-child(2) { animation-delay: .14s; } .ahc-ai-dots span:nth-child(3) { animation-delay: .28s; }
@keyframes ahc-dot { 0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)} }
.ahc-ai-text { font-size: 14.5px; line-height: 1.75; color: var(--text); }
.ahc-ai-text p { margin: 0 0 10px; } .ahc-ai-text p:last-child { margin: 0; }
.ahc-ai-text a { color: var(--brand); text-decoration: underline; font-weight: 500; }

/* Resultados */
.ahc-results-meta { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.ahc-result-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.ahc-result-item:first-child { border-top: 1px solid var(--border); }
.ahc-result-item:hover .ahc-ri-title { color: var(--brand); }
.ahc-ri-ico { color: var(--subtle); flex-shrink: 0; margin-top: 2px; }
.ahc-ri-info { flex: 1; min-width: 0; }
.ahc-ri-title { font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: underline; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.ahc-ri-excerpt { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ahc-empty { text-align: center; padding: 36px 0 20px; }
.ahc-empty-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.ahc-empty-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.ahc-empty-sub { font-size: 14px; color: var(--muted); margin: 0; }
.ahc-results-sep { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.ahc-results-sep::before,.ahc-results-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══ BROWSE — NETFLIX EXACT ══════════════════════════════════════════
   Clases NUEVAS (nf-*) sin conflicto con nada anterior.
   Estructura igual a Netflix:
   ┌──────────────────────────────────────────┐
   │ [icon] Nombre Categoría                  │ ← nf-block__head
   ├──────────────────────────────────────────┤
   │ Sub-grupo 1                          ∨   │ ← nf-row__btn
   │   📄 Artículo 1                          │ ← nf-article
   │   📄 Artículo 2                          │
   ├──────────────────────────────────────────┤
   │ Sub-grupo 2                          ∨   │
   └──────────────────────────────────────────┘
══════════════════════════════════════════════════════════════════════ */
#ahc-browse { margin-top: 8px; }

.nf-block {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* Cabecera de categoría */
.nf-block__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
}
.nf-block__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,150,126,.1);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--brand);
}
.nf-block__icon svg { stroke: var(--brand); }
.nf-block__title {
  font-size: 16px;
  font-weight: 700;
  color: #141414;
}

/* Fila de sub-grupo */
.nf-row { border-top: 1px solid #e5e5e5; }
.nf-row:first-child { border-top: none; }

.nf-row__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  background: none; border: none;
  font-family: var(--font); font-size: 14.5px; font-weight: 600; color: #141414;
  cursor: pointer; text-align: left;
  transition: background .1s;
}
.nf-row__btn:hover { background: #fafafa; }
.nf-row__btn[aria-expanded="true"] {
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}
.nf-row__name { flex: 1; }
.nf-row__chev { color: #666; flex-shrink: 0; transition: transform .2s var(--ease); }
.nf-row__btn[aria-expanded="true"] .nf-row__chev { transform: rotate(180deg); }

/* Artículos dentro del sub-grupo */
.nf-row__articles { padding: 4px 0 6px; }

.nf-article {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 30px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer; transition: background .1s;
}
.nf-article:last-child { border-bottom: none; }
.nf-article:hover { background: #f5f5f5; }
.nf-article svg { color: #999; flex-shrink: 0; }
.nf-article span {
  font-size: 14px; color: #333;
  text-decoration: underline; line-height: 1.45;
  transition: color .12s;
}
.nf-article:hover span { color: var(--brand); }

/* Sin contenido */
.ahc-no-content { text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.ahc-no-content p { margin: 0 0 8px; }

/* ══ VÍNCULOS RÁPIDOS ════════════════════════════════════════════════ */
.ahc-quick { margin: 32px 0 0; }
.ahc-quick__title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ahc-quick__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: underline;
  font-size: 14.5px; font-weight: 500; cursor: pointer; transition: color .15s;
}
.ahc-quick__item svg { color: var(--subtle); flex-shrink: 0; transition: color .15s; }
.ahc-quick__item:hover { color: var(--brand); }
.ahc-quick__item:hover svg { color: var(--brand); }

/* ¿Necesitas más ayuda? */
.ahc-cta { text-align: center; padding: 48px 24px 60px; background: #fafafa; border-radius: 8px; border: 1px solid var(--border); margin: 32px 0 40px; }
.ahc-cta__title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 20px; }
.ahc-cta__btn {
  display: inline-flex; align-items: center; padding: 14px 40px;
  background: var(--text); color: #fff !important; -webkit-text-fill-color: #fff !important;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  text-decoration: none !important; border-radius: 99px; border: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.ahc-cta__btn:hover { background: #333; color: #fff !important; transform: translateY(-1px); }

/* ══ PÁGINA DE ARTÍCULO ══════════════════════════════════════════════ */
.ahc-art-page { background: #fff; min-height: 100vh; }
.ahc-art-page__wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px 80px; }
.ahc-art-topbar { padding: 16px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.ahc-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--border);
  font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; padding: 7px 16px; border-radius: 99px; transition: color .15s, border-color .15s;
}
.ahc-back-btn:hover { color: var(--brand); border-color: var(--brand); }

.ahc-skel { max-width: 680px; }
.ahc-sk { height: 14px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200% 100%; animation: ahc-shim 1.4s infinite; border-radius: 6px; margin-bottom: 14px; }
.ahc-sk--title { height: 32px; width: 60%; margin-bottom: 24px; }
.ahc-sk--s { width: 35%; } .ahc-sk--m { width: 70%; }
@keyframes ahc-shim { 0%{background-position:200% 0}100%{background-position:-200% 0} }

.ahc-art-grid { display: grid; grid-template-columns: 1fr 260px; gap: 60px; align-items: start; }
@media(max-width:740px) { .ahc-art-grid { grid-template-columns: 1fr; gap: 28px; } .ahc-art-page__wrap { padding: 0 16px 60px; } }

.ahc-article__title { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--text); margin: 0 0 24px; }
.ahc-article__body { font-size: 15px; line-height: 1.78; color: var(--text); }
.ahc-article__body h2,.ahc-article__body h3 { font-weight: 700; margin: 28px 0 10px; }
.ahc-article__body h2 { font-size: 1.1rem; } .ahc-article__body h3 { font-size: 1rem; color: #333; }
.ahc-article__body p { margin: 0 0 16px; }
.ahc-article__body ul,.ahc-article__body ol { margin: 0 0 16px 22px; }
.ahc-article__body li { margin-bottom: 6px; }
.ahc-article__body strong { font-weight: 700; }
.ahc-article__body a { color: var(--brand); text-decoration: underline; }
.ahc-article__body blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-lt); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--brand-dk); }

.ahc-fb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.ahc-fb__q { color: var(--muted); font-weight: 500; }
.ahc-fb__btn { background: none; border: 1.5px solid var(--border); font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; padding: 6px 18px; border-radius: 99px; transition: all .15s; }
.ahc-fb__btn:hover,.ahc-fb__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff !important; }

.ahc-sidebar__title { font-size: 14px; font-weight: 700; color: var(--text); border-top: 4px solid var(--brand); padding-top: 12px; margin: 0 0 12px; }
#ahc-related { list-style: none; margin: 0; padding: 0; }
.ahc-sidebar__item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.ahc-sidebar__item:last-child { border-bottom: none; }
.ahc-sidebar__item:hover .ahc-sidebar__item-title { color: var(--brand); }
.ahc-sidebar__item svg { color: var(--subtle); flex-shrink: 0; margin-top: 2px; }
.ahc-sidebar__item-title { font-size: 13px; text-decoration: underline; color: var(--text); line-height: 1.4; transition: color .15s; }

@keyframes ahc-fup { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════════════════════════════════════════
   FOOTER — estilo Aiden.es
══════════════════════════════════════════════════════════════ */
.ahc-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  margin-top: 0;
  font-family: var(--font);
}

/* Franja superior con las columnas */
.ahc-footer__top {
  padding: 48px 24px 40px;
}

.ahc-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

/* Columna brand (logo + pagos) */
.ahc-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ahc-footer__logo-link {
  display: inline-flex;
  text-decoration: none;
}

.ahc-footer__logo-link .ahc-logo-img,
.ahc-footer__logo-link .ahc-logo-svg {
  height: 26px;
}

/* Iconos de pago */
.ahc-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ahc-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 44px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.ahc-pay--klarna  { background: #ffb3c7; color: #000; border-color: #ffb3c7; font-size: 11px; }
.ahc-pay--amex    { background: #2e77bc; color: #fff; border-color: #2e77bc; }
.ahc-pay--mc svg  { display: block; }
.ahc-pay--mc      { padding: 2px 6px; }
.ahc-pay--visa    { padding: 2px 4px; }
.ahc-pay--apple   { font-size: 12px; color: #000; }
.ahc-pay--paypal  { padding: 2px 4px; }

/* Columnas de links */
.ahc-footer__col {}

.ahc-footer__col-title {
  font-size: 15px;
  font-weight: 700;
  color: #141414;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.ahc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ahc-footer__links a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color .15s;
  line-height: 1.3;
}
.ahc-footer__links a:hover { color: var(--brand); }

/* Franja inferior legal */
.ahc-footer__bottom {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  padding: 28px 24px;
}

.ahc-footer__bottom-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.ahc-footer__copy {
  font-size: 14px;
  font-weight: 600;
  color: #141414;
  margin: 0 0 12px;
}

.ahc-footer__legal {
  font-size: 12.5px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 8px;
}
.ahc-footer__legal:last-child { margin: 0; }
.ahc-footer__legal a { color: var(--brand); text-decoration: none; }
.ahc-footer__legal a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .ahc-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .ahc-footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .ahc-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .ahc-footer__top { padding: 32px 16px 28px; }
  .ahc-footer__bottom { padding: 20px 16px; }
}

@media (max-width: 360px) {
  .ahc-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ══ SEARCH BUTTON — pill "Buscar con Lunnar" ═══════════════════════ */
.ahc-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 18px !important;
  width: auto !important;
  height: 40px !important;
  flex-shrink: 0 !important;
  border-radius: 99px !important;
  border: none !important;
  cursor: pointer !important;
  /* Tono claro con texto oscuro — distinto de verde para diferenciarlo del UI */
  background: #f0f0f0 !important;
  color: #141414 !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  letter-spacing: -.01em !important;
  transition: background .15s, transform .1s !important;
  box-shadow: none !important;
}
.ahc-search-btn:hover {
  background: #e0e0e0 !important;
  transform: none !important;
}
.ahc-search-btn:active {
  background: #d0d0d0 !important;
  transform: scale(0.98) !important;
}

/* Lunnar orb pequeña dentro del botón */
.ahc-search-btn__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  mix-blend-mode: multiply;
}

/* Ajuste del padding del input para acomodar el botón más ancho */
.ahc-search-input {
  padding-right: 8px !important;
}

@media (max-width: 600px) {
  .ahc-search-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
    height: 36px !important;
  }
  .ahc-search-btn__icon { width: 15px; height: 15px; }
}

/* ══ RESULTS HEADER — "Artículos de ayuda" ═════════════════════════ */
.ahc-results__hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.ahc-results__hdr svg { color: var(--brand); flex-shrink: 0; }

/* El meta (nº de resultados) va a la derecha */
.ahc-results-meta {
  margin-left: auto !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--subtle) !important;
}

/* ══ AI PANEL — diferenciación visual más clara ════════════════════ */
.ahc-ai-head__sep { color: rgba(13,122,102,.4); font-size: 12px; }
.ahc-ai-head__sub { font-size: 11.5px; font-weight: 500; color: var(--brand-dk); opacity: .85; }
