/* [SKT-FE-REFACTOR-CSS] Extraído desde Frontend/index.html.
   Contiene en orden el contenido del bloque <style> del switch de tema
   ([SKT-WEB-066]) seguido del bloque principal de estilos del index. */
  .theme-toggle .ic-sun { display: none; }
  [data-theme="dark"] .theme-toggle .ic-moon { display: none; }
  [data-theme="dark"] .theme-toggle .ic-sun { display: inline-block; }
  .theme-toggle .ic-moon { color: var(--ink-2); }
  [data-theme="dark"] .theme-toggle .ic-sun { color: #f59e0b; }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* [SKT-WEB-065] Colores → css/tema.css. Acá quedan solo radios y easing. */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  /* [SKT-KAI-003] Sin modo dark — el producto es siempre blanco para mantener
     coherencia visual con Skainet. No agregar @media (prefers-color-scheme: dark). */

  html, body { height: 100%; }

  body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--ink-0);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  .shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s var(--ease);
    /* [SKT-KAI-003] Contexto de positioning para el hero absolute en chat (marca de agua) */
    position: relative;
  }

  /* ====================================================================
     TOP HEADER mínimo (donde antes estaban los tabs)
     ==================================================================== */
  .top-header {
    display: flex;
    align-items: flex-start;   /* [SKT-WEB-070] arriba: el botón Tourcitos cuelga bajo el título */
    justify-content: space-between;
    padding: 16px 20px 8px;
    padding-top: max(16px, env(safe-area-inset-top));
    flex-shrink: 0;
    transition: opacity 0.25s var(--ease);
  }
  /* [SKT-WEB-070] Columna izquierda: marca + botón Tourcitos debajo. */
  .top-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .top-mark {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink-0);
    letter-spacing: -0.3px;
    user-select: none;
  }
  .top-mark .accent { color: var(--accent-blue); }

  /* [SKT-WEB-070] Botón Tourcitos — verde neón (relleno tenue, borde y texto brillantes). */
  /* [SKT-WEB-070] Boton Tourcitos. Base = tema CLARO: verde oscuro sin glow
     (el neon se ve raro sobre blanco). Neon solo en tema oscuro (override abajo). */
  .btn-tour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #16a34a;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s var(--ease);
  }
  .btn-tour:hover { filter: brightness(1.08); }
  .btn-tour:active { filter: brightness(0.95); }
  .btn-tour .dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }

  /* [SKT-WEB-070] Tema OSCURO: verde neon suave + glow. */
  [data-theme="dark"] .btn-tour {
    border-color: #29b863;
    background: rgba(34, 224, 106, 0.09);
    color: #57d98c;
    box-shadow: 0 0 8px rgba(34, 224, 106, 0.25), inset 0 0 8px rgba(34, 224, 106, 0.08);
  }
  [data-theme="dark"] .btn-tour .dot { background: #57d98c; }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* [SKT-KAI-003] Intercambio confirmado: en chat, top-header se oculta y chat-header lo reemplaza. */
  .shell.mode-chat .top-header {
    display: none;
  }

  /* ====================================================================
     INPUT + TABS — bloque inferior pegado
     ==================================================================== */
  .input-tabs-wrap {
    flex-shrink: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  /* ====================================================================
     TABS — debajo del input
     ==================================================================== */
  .tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 6px 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
    transition: opacity 0.25s var(--ease);
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
  .tabs::-webkit-scrollbar { display: none; }

  .tab {
    background: transparent;
    border: none;
    color: var(--ink-2);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 2px;
    position: relative;
    transition: color 0.15s;
  }
  .tab:hover { color: var(--ink-0); }
  .tab.active {
    color: var(--ink-0);
    font-weight: 500;
  }
  .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
  }

  /* [SKT-KAI-003] Tabs idénticas en home y en chat — sin override de opacity/height en mode-chat. */

  /* ====================================================================
     CHAT HEADER (modo chat)
     ==================================================================== */
  .chat-header {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    flex-shrink: 0;
    background: var(--bg-page);
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: max(14px, env(safe-area-inset-top));
    animation: slide-down 0.4s var(--ease);
  }
  .shell.mode-chat .chat-header { display: flex; }

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

  .header-back {
    background: transparent;
    border: none;
    color: var(--ink-1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .header-back:hover { background: rgba(255,255,255,0.08); }
  .header-back svg { width: 22px; height: 22px; }

  .header-title {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-0);
    flex: 1;
  }

  .header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
  }
  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
  }

  /* ====================================================================
     HERO
     ==================================================================== */
  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* [SKT-FE-HOME-LIMPIEZA] input arriba, no centrado */
    align-items: center;
    padding: 0 24px 32px;  /* [SKT-FE-HOME-FIX-03] padding-top 10 → 0, espacio header→input mínimo */
    transition: opacity 0.3s var(--ease);
  }
  /* [SKT-KAI-003] En modo chat el hero queda visible pero como "marca de agua":
     position absolute cubriendo el shell, el chat-area pasa a ocupar todo el flex
     y las burbujas se superponen al greeting al 0.22 de opacidad.
     El greeting NO cambia de tamaño ni de posición (mismo centrado vertical que en home). */
  .shell.mode-chat .hero {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .shell.mode-chat .greeting {
    /* [SKT-WEB-066] El watermark de texto "Kai Contactos" se reemplaza por el
       doodle (.chat-doodle). Se oculta el texto. */
    opacity: 0;
    transform: none;
    animation: none;
  }

  /* [SKT-WEB-066] Doodle de fondo del chat: patrón tenue de oficios + guiño de
     marca (k azul + punto naranja). Solo en modo chat, detrás de las burbujas. */
  .chat-doodle { display: none; }
  .shell.mode-chat .chat-doodle {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    overflow: hidden;
  }
  .chat-doodle svg { width: 100%; height: 100%; }

  /* [SKT-WEB-069] Doodle de fondo de la HOME (mosaico denso de oficios + rutas
     naranjas). Cubre el hero en modo default. En modo chat se oculta porque ahí
     manda .chat-doodle. */
  .hero { position: relative; }              /* ancla para el doodle absoluto (no cambia layout) */

  .home-doodle {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.10;   /* [SKT-WEB-069] bajado a 0.10 (se veía muy fuerte) */
  }
  .home-doodle svg { width: 100%; height: 100%; display: block; }
  .shell.mode-chat .home-doodle { display: none; }  /* en chat manda .chat-doodle */
  /* [SKT-FE-HOME-FIX-02] Agregado .explain-toggle: el checkbox quedaba visible
     pegado arriba en modo chat. Debe ocultarse junto con el resto del hero. */
  .shell.mode-chat .hero-input-wrap,
  .shell.mode-chat .example-pills,
  .shell.mode-chat .quick-section,
  .shell.mode-chat .explain-toggle,
  .shell.mode-chat .cr-banner,
  .shell.mode-chat .cat-section {
    display: none;
  }

  .hero-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;  /* [SKT-WEB-069] título/input/pills por encima del doodle */
    z-index: 1;
  }

  /* Input dentro del hero — debajo del saludo */
  .hero-input-wrap {
    width: 100%;
    max-width: 640px;
    margin-top: 0;  /* [SKT-FE-HOME-FIX-03] era 8px, ya el .hero tiene padding 0 arriba */
    margin-bottom: 8px;
    transition: opacity 0.3s var(--ease);
    position: relative; /* [SKT-WEB-AUTOCOMPLETE-UX] ancla para lista flotante */
  }

  /* [SKT-WEB-AUTOCOMPLETE] Lista de sugerencias debajo del main-input.
     [SKT-WEB-AUTOCOMPLETE-UX] position absolute para que no empuje el layout
     y la pantalla no se mueva al escribir. Color azul de marca para que los
     items se distingan del texto normal y se vean tappables. */
  .autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .autocomplete-item {
    padding: 12px 18px;
    font-size: 15px;
    color: var(--accent-blue);
    cursor: pointer;
    border-bottom: 1px solid var(--stroke-soft);
    transition: background 0.15s;
  }
  .autocomplete-item:last-child { border-bottom: none; }
  .autocomplete-item:hover { background: var(--bg-input); }

  /* [SKT-FE-HOME-CHECKBOX] Checkbox "Quiero explicar mi problema" debajo del input.
     Visible y tappable pero sin función — la lógica del modo viene en otro ticket. */
  .explain-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0;
    width: 100%;
    max-width: 640px;
  }
  .explain-toggle__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--ink-1);
    user-select: none;
  }
  .explain-toggle__input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    margin: 0;
  }
  .explain-toggle__text {
    line-height: 1.2;
  }
  .explain-toggle__info {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
  }
  .explain-toggle__info:hover {
    color: var(--ink-1);
  }

  /* PILLS de ejemplos — pequeñas, scrolleables */
  .example-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 640px;
    transition: opacity 0.3s var(--ease);
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-page);
    border: 1px solid var(--stroke);
    color: var(--ink-1);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    white-space: nowrap;
  }
  .pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    transform: translateY(-1px);
  }
  .pill:active { transform: translateY(0); }
  .pill-icon {
    font-size: 14px;
    line-height: 1;
  }

  /* [SKT-FE-HOME-CONSULTAS-RAPIDAS] Sección "Consultas rápidas" que reemplaza
     las pills viejas. 4 cards grandes con íconos de color. */
  .quick-section {
    width: 100%;
    max-width: 640px;
    margin: 24px auto 0;
    text-align: left;  /* [SKT-FE-HOME-FIX-03] anula el text-align:center heredado de .hero-inner */
  }
  .quick-section__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0 0 4px;
  }
  .quick-section__subtitle {
    font-size: 12px;
    color: var(--ink-3);
    margin: 0 0 16px;
  }
  .quick-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .quick-card {
    background: var(--bg-elevated);
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    padding: 10px 6px;  /* [SKT-FE-HOME-FIX-03] era 16px 8px, reducido para cards cuadradas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* [SKT-FE-HOME-FIX-03] centrar contenido verticalmente */
    gap: 8px;  /* [SKT-FE-HOME-FIX-03] era 12px */
    aspect-ratio: 1;  /* [SKT-FE-HOME-FIX-03] cards cuadradas según mock */
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
  }
  .quick-card:hover {
    background: var(--bg-input);
    transform: translateY(-2px);
  }
  .quick-card__icon {
    width: 36px;  /* [SKT-FE-HOME-FIX-03] era 48, match con el SVG width=36 */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .quick-card__label {
    font-size: 13px;
    color: var(--ink-0);
    font-weight: 500;
  }
  /* Colores fijos por ícono (no varían entre light y dark según mock). */
  .quick-card__icon--plomero { color: #1a73e8; }
  .quick-card__icon--electricista { color: #f5b400; }
  .quick-card__icon--doctor { color: #1e8e3e; }
  /* [SKT-FE-FAVORITOS-SHEET] Card ahora es "Favoritos": corazón rosa. */
  .quick-card__icon--mas { color: #ec4899; }

  /* Card "Más" con borde punteado */
  .quick-card--mas {
    background: transparent;
    border: 1px dashed var(--stroke-strong);
  }
  .quick-card--mas:hover {
    background: var(--bg-elevated);
  }

  /* [SKT-FE-HOME-CHECKBOX-TOGGLE] Toggle entre grids:
     - Sin .explain-mode: muestra .quick-section__grid--default (4 cards cuadradas).
     - Con .explain-mode: muestra .quick-section__grid--explain (3 cards horizontales). */
  .quick-section__grid--explain {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .shell.explain-mode .quick-section__grid--default {
    display: none;
  }
  .shell.explain-mode .quick-section__grid--explain {
    display: grid;
  }

  /* [SKT-FE-HOME-CHECKBOX-TOGGLE-FIX] Toggle de títulos según modo. */
  .quick-section__title--explain,
  .quick-section__subtitle--explain {
    display: none;
  }
  .shell.explain-mode .quick-section__title--default,
  .shell.explain-mode .quick-section__subtitle--default {
    display: none;
  }
  .shell.explain-mode .quick-section__title--explain {
    display: block;
  }
  .shell.explain-mode .quick-section__subtitle--explain {
    display: block;
  }

  /* [SKT-FE-HOME-EXPLAIN-EXPANDED] En modo explain:
     - El textarea principal se agranda ~4 líneas (min-height 96px, mismo tope
       que su auto-expand por SKT-WEB-023b). Uso !important para ganarle al
       style.height inline que setea autoExpandirMainInput.
     - La sección "Explorá por categoría" se oculta.
     - El banner CR NO se oculta (se empuja naturalmente hacia abajo). */
  .shell.explain-mode #main-input {
    min-height: 96px !important;
  }
  .shell.explain-mode .cat-section {
    display: none;
  }

  /* Cards de ejemplos en lenguaje natural. Cada card lleva borde del color
     de su categoría. Decorativas, sin onclick. */
  .example-card {
    background: var(--bg-elevated);
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    padding: 18px 20px;
  }
  .example-card__text {
    font-size: 14px;
    color: var(--ink-0);
    line-height: 1.4;
  }
  .example-card--hogar { border-color: #f97316; }
  .example-card--salud { border-color: #ec4899; }
  .example-card--vehiculo { border-color: #ef4444; }

  /* Tema oscuro: cards y banner un poco más oscuros que el resto de elevated.
     No tocamos --bg-elevated global porque también lo usa la barra de nav. */
  [data-theme="dark"] .quick-card {
    background: #0e0e0e;
  }
  [data-theme="dark"] .quick-card--mas {
    background: transparent;
  }
  [data-theme="dark"] .cr-banner {
    background:
      radial-gradient(ellipse at 80% 50%, rgba(26, 115, 232, 0.22) 0%, rgba(26, 115, 232, 0.08) 45%, transparent 75%),
      #0e0e0e;
  }

  /* [SKT-FE-HOME-BANNER-CR] Banner decorativo CR — look difuminado:
     sin borde duro, glow azul radial centrado en el mapa que se desvanece
     al fondo de la página. Botón sin función (se cablea en otro ticket). */
  .cr-banner {
    width: 100%;
    max-width: 460px;  /* [SKT-FE-HOME-BANNER-CR-FIX-02] era 640px, banner menos ancho */
    margin: 24px auto 0;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 32px, reducido */
    padding: 10px 18px;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 24px 20px, reducido */
    /* [SKT-FE-HOME-BANNER-CR-FIX] Stack: glow azul encima de fondo sólido del tema.
       El fondo sólido tapa el doodle del hero detrás. */
    background:
      radial-gradient(ellipse at 80% 50%, rgba(26, 115, 232, 0.22) 0%, rgba(26, 115, 232, 0.08) 45%, transparent 75%),
      var(--bg-elevated);
    border: 1px solid var(--stroke-soft);  /* [SKT-FE-HOME-BANNER-CR-FIX] borde sutil para definir el card */
    border-radius: 18px;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 20px, levemente menos */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 16px */
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
  }
  .cr-banner__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
  }
  .cr-banner__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0;
    line-height: 1.3;
  }
  .cr-banner__accent {
    color: var(--accent-blue);
  }
  .cr-banner__subtitle {
    font-size: 10px;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.4;
  }
  .cr-banner__cta {
    align-self: flex-start;
    margin-top: 4px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-family: inherit;
    font-size: 11px;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 13px */
    font-weight: 500;
    padding: 6px 14px;  /* [SKT-FE-HOME-BANNER-CR-FIX] era 8px 18px */
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .cr-banner__cta:hover {
    background: var(--accent-blue);
    color: #ffffff;
  }
  .cr-banner__map {
    width: 185px;
    height: 185px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }
  .cr-banner__map img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* [SKT-FE-HOME-CATEGORIAS-Y-NAV] Sección "Explorá por categoría" con 5 cards
     decorativas. Cards SIN onclick — se cablean en otro ticket. */
  .cat-section {
    width: 100%;
    max-width: 640px;
    margin: 24px auto 0;
    text-align: left;
  }
  .cat-section__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0 0 28px;
  }
  .cat-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-card {
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .cat-card:hover {
    transform: translateY(-2px);
  }
  .cat-card__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .cat-card__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid currentColor;
    box-shadow:
      0 0 8px currentColor,
      inset 0 0 5px currentColor;
  }
  .cat-card__label {
    font-size: 12px;
    color: var(--ink-0);
    font-weight: 500;
    transform: translateY(12px);
  }
  .cat-card__icon--hogar { color: #f97316; }
  .cat-card__icon--salud { color: #ec4899; }
  .cat-card__icon--mascotas { color: #a855f7; }
  .cat-card__icon--educacion { color: #1e8e3e; }
  .cat-card__icon--mas { color: var(--ink-3); }
  .cat-card--mas {
    background: transparent;
    border: none;
  }
  .cat-card--mas:hover {
    background: transparent;
  }

  /* Cuando el usuario escribe, atenuar pills (no el input) */
  .shell.is-typing .example-pills {
    opacity: 0.45;
  }

  /* [SKT-FE-HOME-BANNER-CR-FIX-02] Cuando el usuario empieza a escribir,
     ocultar el banner CR para que el autocomplete sea protagonista. */
  .shell.is-typing .cr-banner,
  .shell.is-typing .cat-section,
  .shell.is-typing .quick-section {  /* [SKT-FE-HOME-CHECKBOX-TOGGLE-FIX] cerrar bug Test G */
    display: none;
  }

  /* ====================================================================
     CHAT INPUT (modo chat) — separado del hero
     ==================================================================== */
  /* [SKT-KAI-003] Reducido padding-bottom: las tabs de abajo ya aportan el respiro inferior */
  .chat-input-wrap {
    padding: 12px 20px 8px;
    flex-shrink: 0;
    background: var(--bg-page);
    border-top: 1px solid var(--stroke);
  }

  /* ====================================================================
     BOTTOM NAV (tabs abajo, idéntico en home y en chat)
     ==================================================================== */
  .bottom-nav {
    flex-shrink: 0;
    border-top: 1px solid var(--stroke);
    background: var(--bg-nav);   /* [SKT-WEB-068] gris en oscuro, = fondo en claro */
    /* [SKT-KAI-003] Padding vertical para que las tabs no queden pegadas al borde inferior */
    padding: 6px 0 max(10px, env(safe-area-inset-bottom));
    transition: opacity 0.25s var(--ease);
    /* [SKT-KAI-003] Por encima del hero "marca de agua" en modo chat */
    position: relative;
    z-index: 1;
  }

  /* [SKT-KAI-003] bottom-nav idéntico en home y en chat — sin override de opacity/height en mode-chat. */

  /* [SKT-WEB-031] GREETING — solo "Kai Contactos" con gradiente azul→gris */
  .greeting {
    font-family: 'Google Sans', 'Roboto', -apple-system, sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 11vw, 88px);
    line-height: 1.05;
    letter-spacing: -2px;
    text-align: center;
    margin-bottom: 0;
    margin-top: 8px;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    will-change: opacity, transform;

    /* Gradient azul profundo → azul → gris oscuro */
    background: linear-gradient(135deg, var(--accent-blue-deep) 0%, var(--accent-blue) 45%, var(--accent-dark) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-shift 9s ease-in-out infinite;
  }

  /* [SKT-FE-HOME-LIMPIEZA] Ocultar el título gigante en home.
     En modo chat el greeting se reusa como marca de agua (regla SKT-KAI-003),
     así que NO se toca el HTML — solo se oculta cuando no estamos en chat. */
  .shell:not(.mode-chat) .greeting {
    display: none;
  }

  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* [SKT-WEB-067] En tema oscuro el título es BLANCO sólido (sin el gradiente
     azul, que se veía eléctrico). Reseteamos -webkit-text-fill-color porque el
     gradiente usa background-clip:text; sin esto el texto seguiría transparente.
     Se mantiene como watermark tenue (~0.22) en modo chat vía la regla existente. */
  [data-theme="dark"] .greeting {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    animation: none;
  }

  /* [SKT-WEB-071] "Kai" azul en el título central. El greeting usa gradiente
     (claro) o blanco sólido (oscuro) vía -webkit-text-fill-color; por eso el
     span necesita fijar su propio fill para salir azul en ambos temas. */
  .greeting .accent {
    background: none;
    -webkit-text-fill-color: var(--accent-blue);
    color: var(--accent-blue);
  }

  /* [SKT-KAI-003] Regla `.shell.is-typing .greeting` eliminada: el greeting NO se atenúa
     en home al hacer focus o tipear. Solo se atenúa en chat (marca de agua al 0.22). */

  /* SUGERENCIAS — clonadas exactas del AI Mode */
  .suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.3s var(--ease);
  }
  /* [SKT-KAI-003] Regla `.shell.is-typing .suggestions-list` eliminada por consistencia
     con la decisión de no atenuar elementos del hero al tipear (excepto pills). */

  .suggestion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-1);
    text-align: left;
    transition: background 0.15s;
    width: 100%;
    line-height: 1.4;
  }
  .suggestion-row:hover {
    /* [SKT-KAI-003] Token del tema (bg-input) para que el hover sea perceptible sobre bg-elevated base */
    background: var(--bg-input);
  }
  .suggestion-row:active {
    background: #404040;
  }
  .suggestion-row .text {
    flex: 1;
  }

  /* Ícono de búsqueda con sparkle (igual al de Google) */
  .sparkle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink-1);
  }
  .sparkle-icon svg {
    width: 18px;
    height: 18px;
  }

  /* ====================================================================
     INPUT INFERIOR (estilo Google)
     ==================================================================== */
  .input-bar-wrap {
    padding: 8px 16px 4px;
    flex-shrink: 0;
  }

  .input-bar {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-input);
    border-radius: 999px;
    padding: 6px 10px 6px 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
  }
  /* [SKT-KAI-003] Fix focus: usar token del tema en vez de color hardcodeado */
  .input-bar:focus-within {
    background: var(--bg-elevated);
  }

  .input-bar input,
  .input-bar textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink-0);
    font-size: 15px;
    font-family: inherit;
    padding: 13px 0;
    min-width: 0;
  }
  .input-bar input::placeholder,
  .input-bar textarea::placeholder {
    color: var(--ink-2);
  }

  /* [SKT-WEB-023] Textarea de chat: crecimiento vertical controlado.
     Solo aplica al textarea (no al input del hero). Reset de defaults
     del browser para que se vea idéntico al input previo en 1 línea, y
     crezca hacia arriba cuando hay texto largo. */
  .input-bar textarea#chat-input {
    resize: none;            /* sin handle de resize manual del browser */
    overflow-y: auto;        /* scroll interno cuando alcanza max-height */
    max-height: 120px;       /* ~5 líneas */
    line-height: 1.4;
    box-sizing: border-box;
    /* Reset default browser margin/padding del textarea. El padding
       vertical lo controlamos con padding-top/bottom: 13px para que
       coincida con el input.padding original (13px 0). */
    padding: 13px 0;
    margin: 0;
    /* Sin scrollbar visible en estado normal (aparece al alcanzar max). */
    vertical-align: middle;
  }

  /* [SKT-WEB-023b] Textarea del hero: mismo patrón que chat-input pero
     con max-height más chico (96px ~4 líneas) porque el hero tiene pills
     debajo. Los estilos base (color, font, padding) los hereda del
     selector compartido .input-bar input, .input-bar textarea de arriba. */
  .input-bar textarea#main-input {
    resize: none;
    overflow-y: auto;
    max-height: 96px;        /* ~4 líneas, menos que chat-input para no tapar pills */
    line-height: 1.4;
    box-sizing: border-box;
    padding: 13px 0;
    margin: 0;
    vertical-align: middle;
  }

  .icon-btn {
    background: transparent;
    border: none;
    color: var(--ink-1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .icon-btn:hover { background: rgba(255,255,255,0.08); }
  .icon-btn svg { width: 22px; height: 22px; }

  .send-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.1s;
    margin-left: 4px;
  }
  .send-btn:hover { opacity: 0.92; }
  .send-btn:active { transform: scale(0.94); }
  .send-btn svg { width: 18px; height: 18px; }

  /* ====================================================================
     CHAT
     ==================================================================== */
  .chat-area {
    display: none;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 0;
    /* [SKT-KAI-003] Por encima del hero "marca de agua" cuando esté en chat */
    position: relative;
    z-index: 1;
  }
  .shell.mode-chat .chat-area { display: flex; }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* [SKT-KAI-003] Subido de 10px a 12px para más aire entre burbujas */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    line-height: 1.5;
    animation: msg-in 0.3s var(--ease);
    word-wrap: break-word;
  }

  @keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .msg-user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: #fff;
    border-bottom-right-radius: 6px;
  }

  .msg-bot {
    align-self: flex-start;
    background: var(--bg-bot);
    color: var(--ink-0);
    border-bottom-left-radius: 6px;
  }
  .msg-bot strong {
    font-weight: 500;
    color: var(--accent-blue);
  }

  .msg-card {
    align-self: flex-start;
    width: 100%;
    max-width: 92%;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    animation: msg-in 0.3s var(--ease);
  }

  .msg-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .msg-card-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-0);
  }
  .msg-card-count {
    font-size: 12px;
    color: var(--ink-2);
  }
  .msg-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
  }
  .msg-card-row .label {
    color: var(--ink-2);
  }
  .msg-card-row .value {
    color: var(--ink-0);
    text-align: right;
  }
  .msg-card-row .value .meta {
    color: var(--ink-2);
    margin-left: 4px;
  }

  /* [SKT-WEB-014] Leyenda informativa en el card de resultados.
     Reemplaza las 3 filas anteriores (Más experiencia / Por área /
     Próximamente) que mostraban datos inconsistentes o placeholder. */
  .msg-card-leyenda {
    padding: 10px 0 4px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    border-top: 1px solid var(--stroke-soft);
  }

  .open-directory-btn {
    margin-top: 12px;
    width: 100%;
    padding: 11px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, transform 0.1s;
  }
  .open-directory-btn:hover { opacity: 0.92; }
  .open-directory-btn:active { transform: scale(0.98); }

  .chat-suggestions {
    align-self: flex-start;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 4px;
    max-width: 90%;
    animation: msg-in 0.3s var(--ease);
  }
  .chat-suggestion-chip {
    background: var(--bg-elevated);
    border: none;
    color: var(--ink-1);
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
  }
  .chat-suggestion-chip:hover {
    /* [SKT-KAI-003] Token del tema (bg-input) para que el hover sea perceptible sobre bg-elevated base */
    background: var(--bg-input);
    color: var(--ink-0);
  }
  /* [SKT-AI-007] Chip principal de la familia: resaltado (azul de marca). */
  .chat-suggestion-chip.chip-principal {
    background: var(--accent-blue);
    color: #fff;
  }
  .chat-suggestion-chip.chip-principal:hover {
    background: var(--accent-blue-hover);
    color: #fff;
  }
  /* [SKT-AI-007] Chip "Todos": contorno sutil para diferenciarlo. */
  .chat-suggestion-chip.chip-todos {
    background: transparent;
    border: 1px solid var(--stroke-strong);
  }
  .chat-suggestion-chip.chip-todos:hover {
    background: var(--bg-input);
  }

  .typing {
    align-self: flex-start;
    background: var(--bg-bot);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 6px;
    display: flex;
    gap: 4px;
  }
  .typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-2);
    animation: typing-bounce 1.2s infinite ease-in-out;
  }
  .typing span:nth-child(2) { animation-delay: 0.15s; }
  .typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  /* [SKT-FE-HOME-CATEGORIAS-Y-NAV] Nuevo bottom nav con íconos.
     Reemplaza el .tabs anterior (botones de texto). Estilos del .tabs
     quedan huérfanos pero NO se borran en este ticket (limpieza aparte). */
  .bnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 0;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    background: var(--bg-nav);
  }
  .bnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink-3);
    font-family: inherit;
    transition: color 0.15s;
  }
  .bnav__item:hover {
    color: var(--ink-1);
  }
  .bnav__item--active {
    color: var(--accent-blue);
  }
  .bnav__item--active .bnav__label {
    font-weight: 600;
  }
  .bnav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bnav__label {
    font-size: 11px;
    font-weight: 500;
  }

  /* [SKT-FE-HOME-SEARCH-MODE-UI] Engranaje dentro del .input-bar del hero.
     Se oculta CSS-only cuando el shell está en .explain-mode. */
  .search-mode-toggle {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s;
  }
  .search-mode-toggle:hover {
    color: var(--ink-0);
  }
  .search-mode-toggle svg {
    width: 20px;
    height: 20px;
  }
  .shell.explain-mode .search-mode-toggle {
    display: none;
  }

  /* [SKT-FE-HOME-SEARCH-MODE-UI] Backdrop del bottom-sheet. Fixed cubre pantalla. */
  .search-mode-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.2s var(--ease);
  }
  .search-mode-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* [SKT-FE-HOME-SEARCH-MODE-UI] Bottom-sheet: sube desde abajo. */
  .search-mode-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-page);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.25s var(--ease);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }
  .search-mode-sheet.is-open {
    transform: translateY(0);
  }
  .search-mode-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--stroke-soft);
    margin-bottom: 8px;
  }
  .search-mode-sheet__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0;
  }
  .search-mode-sheet__close {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
  }
  .search-mode-sheet__close:hover {
    color: var(--ink-0);
  }
  .search-mode-sheet__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .search-mode-sheet__list li {
    margin: 0;
  }
  .search-mode-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
    border-radius: 12px;
  }
  .search-mode-option:hover {
    background: var(--bg-elevated);
  }
  .search-mode-option__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-elevated);
  }
  .search-mode-option__icon--todo { color: #1a73e8; }
  .search-mode-option__icon--empresa { color: #f97316; }
  .search-mode-option__icon--servicio { color: #1e8e3e; }
  .search-mode-option__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .search-mode-option__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-0);
    line-height: 1.3;
  }
  .search-mode-option__subtitle {
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.35;
  }
  .search-mode-option__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.15s;
  }
  .search-mode-option.is-active .search-mode-option__check {
    opacity: 1;
  }

  /* [SKT-FE-HOME-CATEGORIAS-SHEET-UI] Sheet grande de categorías/especialidades (2 niveles).
     Se abre al tap sobre .cat-card--mas. Bottom-sheet: sube desde abajo, mismo patrón
     que .search-mode-sheet original (no toca a ese). */
  .categorias-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s var(--ease);
  }
  .categorias-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .categorias-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75vh;
    background: var(--bg-page);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }
  .categorias-sheet.is-open {
    transform: translateY(0);
  }
  .categorias-sheet__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--stroke-soft);
    flex-shrink: 0;
  }
  .categorias-sheet__back,
  .categorias-sheet__close {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    flex-shrink: 0;
  }
  .categorias-sheet__back:hover,
  .categorias-sheet__close:hover {
    color: var(--ink-0);
  }
  .categorias-sheet__title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .categorias-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .categorias-sheet__loading {
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
    padding: 24px 0;
    margin: 0;
  }
  .categorias-sheet__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .categorias-sheet__list li {
    margin: 0;
  }
  .categorias-sheet__item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    border-radius: 10px;
    transition: background 0.15s;
    border-bottom: 1px solid var(--stroke-soft);
  }
  .categorias-sheet__item:hover {
    background: var(--bg-elevated);
  }
  .categorias-sheet__item-name {
    flex: 1;
    font-size: 15px;
    color: var(--ink-0);
    line-height: 1.3;
  }
  .categorias-sheet__item-chevron {
    flex-shrink: 0;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* [SKT-FE-FAVORITOS-SHEET] Filas del sheet de favoritos. Comparte el patrón
     visual del .categorias-sheet (mismo backdrop/panel/scroll) — se le aplica
     .categorias-sheet al aside con IDs propios y se agregan solo los estilos
     específicos de la fila (nombre + especialidad + 2 botones). */
  .fav-empty {
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
    padding: 32px 16px;
    margin: 0;
  }
  .fav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .fav-list li {
    margin: 0;
  }
  .fav-item {
    padding: 12px;
    /* [SKT-FE-FAVORITOS-SHEET-FIX-02] Gris oscuro visible en dark y claro. */
    border-bottom: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  /* [SKT-FE-FAVORITOS-SHEET-CORAZON] Row superior: info a la izquierda, corazón a la derecha. */
  .fav-item__top {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .fav-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  /* [SKT-FE-FAVORITOS-SHEET-CORAZON] Corazón siempre filled en rosa. Sin fondo
     ni borde. Área táctil ~40px. Clase específica del sheet (no colisiona con
     .prov-fav del directorio). */
  .fav-item__heart {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ec4899;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s var(--ease);
  }
  .fav-item__heart:hover {
    transform: scale(1.1);
  }
  .fav-item__heart svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  /* [SKT-FE-FAVORITOS-SHEET-CORAZON-FIX] Estado inactivo tras desmarcar:
     corazón outline gris, la fila queda visible hasta cerrar y reabrir.
     [SKT-FE-FAVORITOS-SHEET-CORAZON-RETOGGLE] Sigue siendo tapable para volver
     a marcar (hover/cursor heredados del botón). */
  .fav-item__heart.is-inactive {
    color: var(--ink-3);
  }
  .fav-item__heart.is-inactive svg {
    fill: none;
  }
  /* [SKT-FE-FAVORITOS-SHEET-FIX] "Nombre - Especialidad" en una sola línea. */
  .fav-item__linea {
    font-size: 14px;
    color: var(--ink-0);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fav-item__acciones {
    display: flex;
    gap: 8px;
  }
  .fav-item__btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fav-item__btn--conoce {
    background: transparent;
    border-color: var(--stroke-strong);
    color: var(--ink-0);
  }
  .fav-item__btn--conoce:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .fav-item__btn--wa {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
  }
  .fav-item__btn--wa:hover {
    background: #1ebe57;
    border-color: #1ebe57;
  }
  .fav-item__btn--tel {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
  }
  .fav-item__btn--tel:hover {
    background: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
  }

  /* [SKT-KAI-003] Mobile (≤768px): bloquear scroll de página entero como app nativa.
     Patrón heredado de Skainet. html/body se fijan al viewport, los hijos manejan
     su propio flujo (chat, hero, tabs siguen funcionando normalmente adentro). */
  @media (max-width: 768px) {
    html, body {
      overflow: hidden;
      width: 100%;
      max-width: 100%;
      height: 100%;
      overscroll-behavior: none;
      margin: 0;
      padding: 0;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
    .shell {
      width: 100%;
      max-width: 100%;
      height: 100%;
      height: 100dvh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    /* El área de mensajes del chat sí debe poder scrollear adentro (no la página) */
    .chat-messages {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
  }

  @media (max-width: 600px) {
    .tabs { padding: 16px 16px 12px; gap: 22px; }
    .hero { padding: 0 16px 20px; }  /* [SKT-FE-HOME-FIX-04] padding-top 32 → 0, espacio mínimo header→input también en mobile */
    .greeting { margin-bottom: 40px; }
    .input-bar-wrap { padding: 10px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  }
