/* =====================================================================
   AK Community — Sistema de diseño · COMPONENTES
   Reutilizables en cualquier plantilla, shortcode o widget HTML.
   Índice:
     1. Maquetación (contenedor, secciones, rejillas de fondo)
     2. Texto (eyebrow, lead, resaltado, mono)
     3. Botones y enlaces con flecha
     4. Insignias, chips y pastilla de patrocinio
     5. Tarjetas (genérica, curso, servicio, estadística)
     6. Progreso
     7. Aviso «Si no tienes tiempo» (oferta suave con «Ahora no»)
     8. Avatar y bloque del fundador
     9. Cabecera, menú móvil e interruptor claro/oscuro
    10. Pie
    11. Botón flotante de WhatsApp
   ===================================================================== */
@layer componentes {

  /* ---------------------------------------------------------------
     1. Maquetación
     --------------------------------------------------------------- */
  .ak-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .ak-container--narrow { max-width: var(--container-narrow); }
  .ak-section { padding-block: var(--section-y); }
  .ak-section--tight { padding-block: var(--space-6) var(--space-8); }
  .ak-section--alt { background-color: var(--surface-2); border-block: 1px solid var(--rule); }
  .ak-section-head { max-width: 760px; margin-bottom: var(--space-7); }
  .ak-section-head h2 { max-width: 20ch; }

  /* Fondo de puntos (papel) y cuadrícula fina (solo catálogo, panel y examen) */
  .ak-fondo-puntos {
    background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
    background-size: 22px 22px;
  }
  .ak-fondo-cuadricula {
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
  }

  .ak-icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
  .ak-icon svg { width: 100%; height: 100%; display: block; }

  /* ---------------------------------------------------------------
     2. Texto
     --------------------------------------------------------------- */
  .ak-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
    text-transform: uppercase; letter-spacing: var(--tracking-caps);
    color: var(--text-muted); margin: 0 0 var(--space-3);
  }
  .ak-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
  .ak-eyebrow--sin-punto::before { display: none; }
  .ak-lead { font-size: var(--step-1); color: var(--text-2); line-height: 1.5; max-width: 62ch; }
  .ak-hl { background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%); padding-inline: 2px; }
  .ak-mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
  .ak-muted { color: var(--text-muted); }
  .ak-small { font-size: var(--step--1); }
  .ak-cita { font-family: var(--font-display); font-style: italic; }
  /* Marcador visible de dato pendiente o de relleno */
  .ak-pendiente {
    font-family: var(--font-mono); font-size: var(--step--2); font-style: normal; font-weight: 500;
    color: var(--warning); background: var(--warning-bg);
    padding: 1px 6px; border-radius: var(--radius-xs); white-space: nowrap; letter-spacing: 0;
  }

  /* ---------------------------------------------------------------
     3. Botones
     --------------------------------------------------------------- */
  .ak-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-text); font-weight: var(--weight-black); font-size: var(--step-0); line-height: 1.2;
    padding: 13px 24px; min-height: 48px;
    border-radius: var(--radius-pill); border: 1.5px solid transparent;
    text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
    background: var(--surface); color: var(--text);
    transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base), border-color var(--dur-base), transform var(--dur-fast) var(--ease-out);
  }
  .ak-btn:active { transform: translateY(1px); }
  .ak-btn .ak-icon { width: 1.05em; height: 1.05em; }
  .ak-btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
  .ak-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
  .ak-btn--accent { background: var(--accent); color: var(--on-accent); }
  .ak-btn--accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: var(--on-accent); }
  .ak-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
  .ak-btn--secondary:hover { border-color: var(--text); color: var(--text); }
  .ak-btn--ghost {
    background: transparent; color: var(--text); padding-inline: 10px;
    text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px;
  }
  .ak-btn--ghost:hover { color: var(--text); text-decoration-color: currentColor; }
  .ak-btn--sm { padding: 9px 16px; min-height: 40px; font-size: var(--step--1); }
  .ak-btn--block { display: flex; width: 100%; }
  .ak-btn[disabled], .ak-btn.is-disabled { opacity: .55; cursor: not-allowed; }

  .ak-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--weight-black); color: var(--link); text-decoration: none; }
  .ak-link-arrow .ak-icon { transition: transform var(--dur-base) var(--ease-out); }
  .ak-link-arrow:hover .ak-icon { transform: translateX(3px); }

  /* ---------------------------------------------------------------
     4. Insignias, chips y pastilla
     --------------------------------------------------------------- */
  .ak-badge {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-family: var(--font-text); font-size: var(--step--2); font-weight: var(--weight-black); line-height: 1.3;
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: var(--surface-2); color: var(--text-2);
  }
  .ak-badge .ak-icon { width: 1em; height: 1em; }
  .ak-badge--success { background: var(--success-bg); color: var(--success); }
  .ak-badge--info { background: var(--info-bg); color: var(--info); }
  .ak-badge--accent { background: var(--accent-soft); color: var(--accent-text); }
  .ak-badge--warn { background: var(--warning-bg); color: var(--warning); }
  .ak-badge--danger { background: var(--danger-bg); color: var(--danger); }
  .ak-badge--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }

  .ak-chip {
    display: inline-flex; gap: 8px; align-items: center;
    padding: 7px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface);
    font-weight: var(--weight-bold); font-size: var(--step--1); color: var(--text-2);
    text-decoration: none; cursor: pointer;
  }
  .ak-chip .ak-mono { font-size: .8em; color: var(--text-muted); }
  .ak-chip:hover { border-color: var(--border-strong); color: var(--text); }
  .ak-chip.is-on, .ak-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .ak-chip.is-on .ak-mono, .ak-chip[aria-pressed="true"] .ak-mono { color: inherit; opacity: .8; }

  /* «GRATIS · Patrocinado por Nova Latam» */
  .ak-pill-sponsor {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 6px 14px 6px 6px; border-radius: var(--radius-pill);
    background: var(--surface); border: 1px solid var(--border);
    font-size: var(--step--1); font-weight: var(--weight-bold); color: var(--text-2);
  }
  .ak-pill-sponsor b {
    font-family: var(--font-mono); font-weight: 500; font-size: var(--step--2); letter-spacing: .08em;
    background: var(--learn); color: var(--learn-ink); padding: 3px 10px; border-radius: var(--radius-pill);
  }

  /* Chip de precio dentro de las tarjetas de camino */
  .ak-price-chip {
    display: inline-flex; align-self: flex-start; align-items: center;
    font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: color-mix(in srgb, currentColor 14%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  }

  /* ---------------------------------------------------------------
     5. Tarjetas
     --------------------------------------------------------------- */
  .ak-card {
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-1); padding: var(--space-5);
  }
  .ak-card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
  .ak-card-head h2, .ak-card-head h3 { margin: 0; font-size: var(--step-2); }

  /* Tarjeta de curso: portada tipográfica con --course-tint */
  .ak-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-5); }
  .ak-course-card {
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  }
  .ak-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .ak-course-cover {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-4) var(--space-5);
    background-color: var(--course-tint); color: var(--on-course-tint);
    background-image: repeating-linear-gradient(transparent 0 23px, rgba(255, 255, 255, .10) 23px 24px);
    text-decoration: none;
  }
  .ak-course-cover:hover { color: var(--on-course-tint); }
  .ak-cover-num { position: absolute; top: 4px; right: 16px; font-family: var(--font-display); font-size: 4.6rem; font-weight: 700; line-height: 1; opacity: .2; }
  .ak-cover-name { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1; }
  .ak-cover-art { position: absolute; left: 20px; top: 20px; width: 34px; height: 4px; background: var(--brand-orange); border-radius: 4px; }
  .ak-course-body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--space-5); }
  .ak-course-top { display: flex; gap: 6px; flex-wrap: wrap; }
  .ak-course-desc { color: var(--text-2); font-size: var(--step--1); flex: 1; margin: 0; }
  .ak-course-meta { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-muted); margin: 0; }
  .ak-course-body .ak-btn { margin-top: auto; }

  /* Tarjeta de servicio */
  .ak-services { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: var(--space-5); align-items: stretch; }
  .ak-service-card {
    position: relative; display: flex; flex-direction: column; gap: var(--space-4);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-1);
    padding: var(--space-6) var(--space-5);
  }
  .ak-service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); margin: 0; line-height: 1.1; }
  .ak-service-card .ak-btn { margin-top: auto; }
  .ak-service-card.is-featured { background: var(--hire); color: var(--hire-ink); border-color: var(--hire); box-shadow: var(--shadow-3); }
  .ak-service-card.is-featured h3, .ak-service-card.is-featured .ak-amount { color: var(--hire-ink); }
  .ak-service-card.is-featured .ak-service-sum,
  .ak-service-card.is-featured .ak-unit,
  .ak-service-card.is-featured .ak-checks li { color: color-mix(in srgb, var(--hire-ink) 88%, transparent); }
  .ak-service-card.is-featured .ak-checks .ak-icon { color: var(--accent); }
  .ak-service-card.is-featured .ak-pendiente { background: rgba(255, 255, 255, .14); color: var(--hire-ink); }
  .ak-ribbon { position: absolute; top: -12px; left: var(--space-5); background: var(--accent); color: var(--on-accent); }
  .ak-service-card .ak-ribbon .ak-pendiente { background: transparent; color: inherit; padding: 0; }
  .ak-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
  .ak-amount { font-family: var(--font-display); font-size: var(--step-5); font-weight: 600; line-height: 1; color: var(--text); }
  .ak-unit { font-weight: var(--weight-bold); color: var(--text-2); }
  .ak-unit-only { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); font-weight: 500; color: var(--text); }
  .ak-service-sum { color: var(--text-2); margin: 0; }
  .ak-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  .ak-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: var(--text-2); margin: 0; }
  .ak-checks .ak-icon { color: var(--success); margin-top: .22em; }

  /* Estadística (contadores en mono) */
  .ak-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: var(--space-4); }
  .ak-stat-k { font-size: var(--step--2); font-weight: var(--weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
  .ak-stat-v { font-family: var(--font-mono); font-size: var(--step-3); font-weight: 500; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
  .ak-stat-v small { font-size: .5em; color: var(--text-muted); }

  /* ---------------------------------------------------------------
     6. Progreso
     --------------------------------------------------------------- */
  .ak-progress-row { display: flex; align-items: center; gap: var(--space-3); }
  .ak-progress {
    position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden;
    background: var(--progress-track);
  }
  .ak-progress > span {
    position: absolute; inset: 0 auto 0 0; width: var(--p, 0%);
    background: var(--progress-fill); border-radius: 99px;
    transition: width var(--dur-slow) var(--ease-out);
  }
  .ak-progress-label { min-width: 4ch; text-align: right; font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-2); font-variant-numeric: tabular-nums; }

  /* ---------------------------------------------------------------
     7. Aviso «Si no tienes tiempo» — nunca pop-up, nunca sobre el vídeo,
        una por pantalla, con «Ahora no» (lo oculta 30 días: ak-ui.js)
     --------------------------------------------------------------- */
  .ak-soft { position: relative; border-radius: var(--radius-md); color: var(--text); }
  .ak-soft[hidden] { display: none; }
  .ak-soft-title { font-family: var(--font-text); font-size: var(--step-1); font-weight: var(--weight-black); line-height: 1.25; margin: 0 0 6px; color: var(--text); }
  .ak-soft-text { color: var(--text-2); font-size: var(--step--1); margin: 0 0 var(--space-3); }
  .ak-soft-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .ak-soft--aside { padding: var(--space-5); background: var(--surface-2); border: 1px dashed var(--border-strong); }
  .ak-soft--inline {
    display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
    padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  }
  .ak-soft--inline .ak-soft-text { margin-bottom: 0; }
  .ak-soft--quiet {
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap;
    padding: var(--space-5) var(--space-6); border-radius: 0; border-block: 1px solid var(--rule);
  }
  .ak-soft--quiet .ak-soft-text { margin: 0; }
  .ak-soft-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--info-bg); color: var(--info); }

  /* ---------------------------------------------------------------
     8. Avatar y fundador
     --------------------------------------------------------------- */
  .ak-avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border);
    font-weight: var(--weight-black); font-size: .82rem; text-decoration: none;
  }
  .ak-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .ak-avatar--lg { width: 56px; height: 56px; font-size: 1rem; }

  /* Ficha corta del fundador (hero móvil / tarjeta camino 2) */
  .ak-founder-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
  .ak-founder-chip-txt { display: flex; flex-direction: column; }
  .ak-founder-chip-txt strong { font-size: var(--step--1); line-height: 1.2; color: var(--text); }
  .ak-founder-chip-txt span { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-muted); }

  /* Marcador de foto pendiente (se sustituye solo al subir assets/img/fundador.jpg) */
  .ak-foto-pendiente {
    display: grid; place-items: center; text-align: center;
    background: linear-gradient(160deg, var(--surface-2), var(--bg-subtle));
    border: 1px dashed var(--border-strong); color: var(--text-muted);
    font-family: var(--font-display); font-style: italic;
  }
  .ak-foto-pendiente small { display: block; font-family: var(--font-mono); font-style: normal; font-size: var(--step--2); }

  .ak-founder {
    display: grid; grid-template-columns: 280px 1fr; gap: var(--space-7); align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-6); box-shadow: var(--shadow-2);
  }
  .ak-founder-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; margin: 0; }
  .ak-founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ak-founder blockquote {
    font-family: var(--font-display); font-style: normal; font-size: var(--step-3); font-weight: 500; line-height: 1.2;
    color: var(--text); border: 0; padding: 0; margin: 0; text-indent: -0.4em;
  }
  .ak-founder-name { margin: var(--space-4) 0 0; }
  .ak-founder-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

  /* ---------------------------------------------------------------
     9. Cabecera
     --------------------------------------------------------------- */
  .ak-skip { position: absolute; left: -999px; top: 0; z-index: var(--z-modal); }
  .ak-skip:focus { left: 12px; top: 12px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); }

  .ak-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }
  .admin-bar .ak-header { top: 32px; }
  @media (max-width: 782px) { .admin-bar .ak-header { top: 0; } }
  .ak-header::after { /* franja decorativa de temporada (vacía por defecto) */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--season-stripe); pointer-events: none;
  }
  .ak-header-row { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
  .ak-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
  .ak-brand img { height: 28px; width: auto; display: var(--logo-light); }
  .ak-brand img.ak-logo-dark { display: var(--logo-dark); }
  .ak-nav { display: flex; gap: var(--space-5); margin-inline: auto; }
  .ak-nav ul { list-style: none; display: flex; gap: var(--space-5); margin: 0; padding: 0; }
  .ak-nav li { margin: 0; }
  .ak-nav a {
    display: inline-block; font-weight: var(--weight-bold); font-size: var(--step--1); color: var(--text-2);
    padding-block: 6px; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap;
  }
  .ak-nav a:hover, .ak-nav a[aria-current="page"], .ak-nav .current-menu-item > a { color: var(--text); border-bottom-color: var(--accent); }
  .ak-header-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
  .ak-nav + .ak-header-actions { margin-left: 0; }

  .ak-theme-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; min-height: 36px; border: 1px solid var(--border); border-radius: var(--radius-pill);
    font-size: var(--step--2); font-weight: var(--weight-bold); color: var(--text-2); background: var(--surface); cursor: pointer;
  }
  .ak-theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
  .ak-theme-toggle .ak-icon { width: 16px; height: 16px; }
  /* Icono y texto según el modo activo (sin JS extra: lo decide data-theme) */
  .ak-theme-toggle .ak-si-oscuro { display: none; }
  [data-theme="dark"] .ak-theme-toggle .ak-si-oscuro { display: inline-flex; }
  [data-theme="dark"] .ak-theme-toggle .ak-si-claro { display: none; }

  .ak-menu-movil { display: none; position: relative; }
  .ak-menu-movil > summary {
    list-style: none; display: grid; place-items: center; width: 42px; height: 42px; cursor: pointer;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text);
  }
  .ak-menu-movil > summary::-webkit-details-marker { display: none; }
  .ak-menu-movil > summary .ak-icon { width: 22px; height: 22px; }
  .ak-menu-movil-panel {
    position: absolute; right: 0; top: 50px; z-index: var(--z-menu);
    display: grid; min-width: 240px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-3);
  }
  .ak-menu-movil-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
  .ak-menu-movil-panel li { margin: 0; }
  .ak-menu-movil-panel a { display: block; padding: 11px 12px; font-weight: var(--weight-bold); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
  .ak-menu-movil-panel a:hover { background: var(--surface-2); }
  .ak-menu-movil-panel hr { margin: 6px 0; }

  /* ---------------------------------------------------------------
     10. Pie
     --------------------------------------------------------------- */
  .ak-footer { padding-block: var(--space-8) var(--space-5); background: var(--surface-2); border-top: 1px solid var(--rule); color: var(--text-2); }
  .ak-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6); }
  .ak-footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
  .ak-footer h2 {
    font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: var(--tracking-caps);
    text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px;
  }
  .ak-footer a, .ak-footer-grid span { color: var(--text-2); font-size: var(--step--1); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
  .ak-footer a:hover { color: var(--link); text-decoration: underline; }
  .ak-footer-brand p { font-size: var(--step--1); max-width: 36ch; margin: var(--space-3) 0 0; }
  .ak-footer-legal {
    display: flex; gap: var(--space-5); flex-wrap: wrap; justify-content: space-between;
    margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--rule);
    font-size: var(--step--2); color: var(--text-muted);
  }
  .ak-footer-legal a { font-size: inherit; }

  /* ---------------------------------------------------------------
     11. WhatsApp flotante (solo portada y /unete/; abajo a la derecha)
     --------------------------------------------------------------- */
  .ak-whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: var(--z-flotante);
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #1f7a44; /* verde WhatsApp oscurecido: blanco sobre él pasa AA */
    color: #fff; box-shadow: var(--shadow-3); text-decoration: none;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .ak-whatsapp:hover { transform: translateY(-2px); color: #fff; }
  .ak-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

  /* ---------------------------------------------------------------
     Responsive de componentes
     --------------------------------------------------------------- */
  @media (max-width: 960px) {
    .ak-nav { display: none; }
    .ak-nav + .ak-header-actions { margin-left: auto; } /* sin la nav, las acciones vuelven a la derecha */
    .ak-menu-movil { display: block; }
    .ak-services { grid-template-columns: 1fr; }
    .ak-founder { grid-template-columns: 1fr; }
    .ak-founder-photo { max-width: 260px; }
    .ak-footer-grid { grid-template-columns: 1fr 1fr; }
    .ak-footer-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 600px) {
    .ak-btn { padding: 12px 20px; }
    .ak-header-row { gap: var(--space-2); }
    .ak-brand img { height: 22px; }
    .ak-header-actions { gap: 6px; }
    .ak-header-actions .ak-btn--primary { padding: 8px 12px; min-height: 40px; font-size: .85rem; }
    .ak-theme-toggle { padding: 0; width: 40px; height: 40px; justify-content: center; }
    .ak-menu-movil > summary { width: 40px; height: 40px; }
    .ak-theme-toggle .ak-theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ak-soft--inline { grid-template-columns: 1fr; }
    .ak-founder { padding: var(--space-5); }
    .ak-founder blockquote { font-size: var(--step-2); }
    .ak-footer-grid { grid-template-columns: 1fr; }
    .ak-cover-num { font-size: 3.8rem; }
  }
}
