/* [IRIDIAN AI LAYER] CSS del bloc IaFeaturesV1 — familia ia*v1 (graella serveis, JS-free).
 * Tot scoped sota .iaLayer-iafeaturesv1. Sense CSS global, sense tocar CSS legacy.
 */
.iaLayer-iafeaturesv1 {
    /* [F5-unificació 2026-07-14] Escala canònica --ia-color-* (patró IaStatsV1, P7B.4). Substitueix
       els tokens legacy de P7B.2 (main-color-1/content-*/background1). Fallbacks = valors originals.
       Delta deliberat: el text secundari passa a text-soft (com els 5 mòduls canònics). */
    --iafeat-accent: var(--ia-color-accent, #0071e3);
    --iafeat-ink: var(--ia-color-text, #1d1d1f);
    --iafeat-ink-2: var(--ia-color-text-soft, #6e6e73);
    --iafeat-hairline: var(--ia-color-border, #e3e3e8);
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 20px;
    font-family: var(--ial-font-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    color: var(--iafeat-ink);
}
.iaLayer-iafeaturesv1 .iafeat-title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -.02em;
    font-weight: 700;
    text-align: center;
}
.iaLayer-iafeaturesv1 .iafeat-intro {
    margin: 0 auto 30px;
    max-width: 60ch;
    text-align: center;
    color: var(--iafeat-ink-2);
    font-size: 1rem;
    line-height: 1.5;
}
.iaLayer-iafeaturesv1 .iafeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.iaLayer-iafeaturesv1 .iafeat-item {
    padding: 22px 20px;
    border: 1px solid var(--iafeat-hairline);
    border-radius: 0;
    /* [F5-unificació] Superfície de card via token canònic (flip amb preset); #fff sense preset. */
    background: var(--ia-color-surface, #fff);
}
.iaLayer-iafeaturesv1 .iafeat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 0;
    /* [F5-unificació] Tint de l'accent real (abans blau fix); fallback = tint original. */
    background: color-mix(in srgb, var(--iafeat-accent, var(--ia-color-primary, #0071e3)) 8%, transparent);
    color: var(--iafeat-accent);
    font-size: 1.3rem;
    margin-bottom: 12px;
}
/* [2026-06-10] Icona via picker Iconify → SVG inline ({{ iailayer_icon }}). Hereta el color. */
.iaLayer-iafeaturesv1 .iafeat-icon svg {
    width: 24px; height: 24px;
    fill: currentColor; color: currentColor;
}
.iaLayer-iafeaturesv1 .iafeat-name {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.iaLayer-iafeaturesv1 .iafeat-text {
    color: var(--iafeat-ink-2);
    font-size: .96rem;
    line-height: 1.55;
}
.iaLayer-iafeaturesv1 .iafeat-text > :first-child { margin-top: 0; }
.iaLayer-iafeaturesv1 .iafeat-text > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .iaLayer-iafeaturesv1 { padding: 30px 14px; } }

/* [eyebrow 2026-07-24] Sobretexto opcional de seccion (mono, mayusculas, con guion). */
.iaLayer-iafeaturesv1 .iafeat-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--general-text-font-family, monospace);
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ia-color-primary, #0071e3);
}
.iaLayer-iafeaturesv1 .iafeat-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    flex: 0 0 auto;
}

/* [callout 2026-07-24] Destacado opcional dentro de cada item (mockup .callout). */
.iaLayer-iafeaturesv1 .iafeat-callout {
    margin-top: 14px;
    max-width: 64ch;
    padding: 16px 18px;
    background: var(--ia-color-surface, #fff);
    border-left: 3px solid var(--ia-color-accent, #0071e3);
}
.iaLayer-iafeaturesv1 .iafeat-callout-lbl {
    display: block;
    margin-bottom: 6px;
    font-family: var(--general-text-font-family, monospace);
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ia-color-primary, #0071e3);
}
.iaLayer-iafeaturesv1 .iafeat-callout-body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--iafeat-ink-2);
}

/* [v4] Enlace de accion por item (mockup a.go). */
.iaLayer-iafeaturesv1 .iafeat-go {
  display: inline-block; margin-top: 16px;
  font-family: var(--general-text-font-family, monospace);
  font-size: 12.5px; text-decoration: none;
  color: var(--ia-color-primary, #0071e3);
  border-bottom: 1px solid var(--ia-color-accent, currentColor);
}
.iaLayer-iafeaturesv1 .iafeat-go:hover { opacity: .75; }

/* [v4] Variante urgente (mockup .svc-row.urgent). Tokens locales: la paleta
   del panel no tiene slot para el rojo de alerta. */
.iaLayer-iafeaturesv1 .iafeat-item--urgent {
  --iafeat-alert: #B3261E;
  background: #FBEAEA;
  border-top-color: transparent;
  padding-left: 24px; padding-right: 24px;
}
.iaLayer-iafeaturesv1 .iafeat-item--urgent::before { color: var(--iafeat-alert); }
.iaLayer-iafeaturesv1 .iafeat-item--urgent .iafeat-callout { border-left-color: var(--iafeat-alert); }
.iaLayer-iafeaturesv1 .iafeat-item--urgent .iafeat-callout-lbl { color: var(--iafeat-alert); }
.iaLayer-iafeaturesv1 .iafeat-item--urgent .iafeat-go { color: var(--iafeat-alert); border-bottom-color: var(--iafeat-alert); }
