/* ============================================================
   DIAGNÓSTICOS FLUX · familia visual
   Hermana del test de voz de marca, pero propia:
   - fondo papel claro, tinta verde profunda
   - color con significado: CORAL = fuga / oportunidad · MINT = solución
   - tablero interactivo en resultados (medidor, mapa clicable, evidencia)
   Animaciones solo con transform y opacity.
   ============================================================ */
:root {
  --ink: #0D2818;
  --ink-2: #1C2A23;
  --vm: #065F46;
  --ac: #34D399;
  --ac-2: #6EE7B7;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --sand: #F1EFE8;
  --coral: #E4572E;
  --coral-soft: rgba(228, 87, 46, 0.12);
  --amber: #E8A33D;
  --line: rgba(13, 40, 24, 0.1);
  --line-2: rgba(13, 40, 24, 0.18);
  --soft: rgba(13, 40, 24, 0.58);
  --shadow: 0 1px 2px rgba(13, 40, 24, 0.04), 0 12px 32px rgba(13, 40, 24, 0.06);
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hero: clamp(2.3rem, 1.5rem + 4vw, 3.7rem);
  --t-h2: clamp(1.45rem, 1.15rem + 1.4vw, 2rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; background: var(--paper); color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; line-height: 1.5; }
[hidden] { display: none !important; }
button, input { font-family: inherit; color: inherit; }
a { color: var(--vm); }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; border-radius: 8px; }

/* ---------- Encabezado con título fijo ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { width: min(720px, 100%); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.bar-in svg { width: 30px; height: 28px; flex: none; }
.bar-title { flex: 1; min-width: 0; }
.bar-title b { display: block; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title span { display: block; font-size: 0.72rem; color: var(--soft); letter-spacing: 0.04em; }
.bar-step { font-size: 0.78rem; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.meter { height: 3px; background: var(--line); }
.meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--coral), var(--amber) 50%, var(--ac)); transform-origin: left; transform: scaleX(0); transition: transform 0.5s var(--ease); }

.app { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 18px 16px 48px; }
.screen { animation: enter 0.55s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vm); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.hero-title { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 14px 0 14px; }
.hero-title em { font-style: normal; color: var(--coral); }
.lead { font-size: 1.05rem; color: var(--soft); max-width: 36ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.pills span { font-size: 0.82rem; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }
.five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 26px; }
.five div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; display: grid; gap: 8px; justify-items: center; text-align: center; animation: enter 0.5s var(--ease) both; }
.five div:nth-child(2) { animation-delay: 0.05s; } .five div:nth-child(3) { animation-delay: 0.1s; } .five div:nth-child(4) { animation-delay: 0.15s; } .five div:nth-child(5) { animation-delay: 0.2s; }
.five svg { width: 26px; height: 26px; stroke: var(--vm); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.five span { font-size: 0.72rem; font-weight: 600; line-height: 1.2; }
.quote-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 22px; }
.quote-card b { font-size: 2rem; letter-spacing: -0.04em; color: var(--ac); }
.quote-card p { font-size: 0.9rem; line-height: 1.4; color: rgba(250, 250, 247, 0.8); }
.quote-card small { display: block; font-size: 0.7rem; color: rgba(250, 250, 247, 0.5); margin-top: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 16px; padding: 0 26px; font-size: 1.02rem; font-weight: 700; background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px); background: var(--vm); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.block { width: 100%; }
.btn.mint { background: var(--ac); color: var(--ink); }
.btn.mint:hover { background: var(--ac-2); }
.btn.ghost { background: transparent; border: 2px solid var(--line-2); color: var(--ink); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }


/* ---------- Intro en pantallas ---------- */
.intro { min-height: calc(100dvh - 190px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.intro .pills { margin: 0; }
.mega-title { font-size: clamp(3.1rem, 1.6rem + 7.5vw, 5.6rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.92; }
.mega-title em { font-style: normal; color: var(--coral); display: inline-block; }
.cover .mega-title em { background: linear-gradient(transparent 68%, rgba(228, 87, 46, 0.18) 68%); }
.h2 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow); animation: enter 0.5s var(--ease) both; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-soft); margin-bottom: 4px; }
.tile .ic svg { width: 22px; height: 22px; stroke: var(--coral); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile .ic.num { font-size: 0.72rem; font-weight: 700; color: var(--coral); width: auto; padding: 0 10px; justify-self: start; }
.tile b { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2; }
.tile span:last-child { font-size: 0.82rem; color: var(--soft); line-height: 1.35; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile.dark .ic { background: rgba(52, 211, 153, 0.16); }
.tile.dark .ic svg { stroke: var(--ac); }
.tile.dark span:last-child { color: rgba(250, 250, 247, 0.65); }
.actions { display: flex; gap: 10px; }
.btn.grow { flex: 1; }
.btn.sq { width: 56px; padding: 0; flex: none; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width 0.3s var(--ease), background 0.3s; }
.dots i.on { width: 26px; background: var(--coral); }
.intro .quote-card { margin: 0; }

/* ---------- Preguntas ---------- */
.q-area { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin: 10px 0 8px; }
.q-title { font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.q-hint { color: var(--soft); margin: 8px 0 20px; font-size: 0.95rem; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--white); text-align: left; font-size: 1rem; cursor: pointer; transition: transform 0.18s var(--ease), border-color 0.2s, background 0.2s; }
.opt:hover { transform: translateY(-2px); border-color: var(--line-2); }
.opt .k { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sand); font-size: 0.78rem; font-weight: 700; color: var(--soft); transition: background 0.2s, color 0.2s; }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(13, 40, 24, 0.06); }
.opt[aria-checked="true"] .k { background: var(--ink); color: var(--paper); }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.linkbtn { background: none; border: 0; color: var(--soft); font-size: 0.92rem; cursor: pointer; padding: 10px 0; }
.linkbtn:hover { color: var(--ink); }

/* Dato que aparece tras responder */
.fact { margin-top: 16px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); padding: 18px; display: grid; gap: 10px; animation: enter 0.5s var(--ease) both; }
.fact .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.fact p { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.fact small { font-size: 0.72rem; color: rgba(250, 250, 247, 0.55); line-height: 1.4; }

/* ---------- Captura ---------- */
.form { display: grid; gap: 14px; margin-top: 18px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin-bottom: 7px; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 1.05rem; transition: border-color 0.2s; }
.field input:focus { outline: none; border-color: var(--ac); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.err { color: var(--coral); font-size: 0.82rem; margin-top: 5px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--soft); }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--coral-soft); color: var(--ink); font-size: 0.92rem; font-weight: 500; margin-top: 14px; }

/* ---------- Resultados ---------- */
.res { display: grid; gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); animation: enter 0.6s var(--ease) both; }
.card h3 { font-size: 1.08rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card h3 small { font-size: 0.72rem; font-weight: 600; color: var(--soft); letter-spacing: 0.04em; }

.score { background: var(--ink); color: var(--paper); border: 0; display: grid; grid-template-columns: 1fr 210px; gap: 18px; align-items: center; overflow: hidden; position: relative; }
.score::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(rgba(228, 87, 46, 0.22), transparent 70%); }
.score .who { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.score h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.05; margin: 8px 0 10px; }
.score h2 em { font-style: normal; color: #FF9B7A; }
.score p { color: rgba(250, 250, 247, 0.72); font-size: 0.95rem; }
.gauge { position: relative; z-index: 1; }
.gauge svg { width: 100%; height: auto; display: block; }
.gauge .bg { fill: none; stroke: rgba(250, 250, 247, 0.12); stroke-width: 16; stroke-linecap: round; }
.gauge .fg { fill: none; stroke: url(#gg); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.gauge .needle { transform-origin: 105px 105px; transition: transform 1.6s var(--ease); }
.gauge .val { text-align: center; margin-top: 6px; }
.gauge .val b { font-size: 2.3rem; letter-spacing: -0.05em; display: block; line-height: 1; }
.gauge .val span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250, 250, 247, 0.6); }

/* Mapa clicable */
.map { display: grid; gap: 8px; }
.area { display: grid; grid-template-columns: 1fr 132px 22px; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--paper); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.18s var(--ease); }
.area:hover { transform: translateX(3px); }
.area[aria-selected="true"] { background: var(--white); border-color: var(--ink); }
.area b { display: block; font-size: 0.95rem; }
.area small { display: block; font-size: 0.75rem; color: var(--soft); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg i { height: 10px; border-radius: 4px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease), background 0.3s; }
.in .seg i { transform: scaleX(1); }
.seg i.c1 { background: var(--amber); } .seg i.c2 { background: #EC7A3C; } .seg i.c3 { background: var(--coral); }
.seg.ok i { background: var(--ac); }
.seg.na i { background: var(--line); }
.area .chev { width: 20px; height: 20px; stroke: var(--soft); fill: none; stroke-width: 2; transition: transform 0.2s; }
.area[aria-selected="true"] .chev { transform: rotate(90deg); stroke: var(--ink); }
.lvl { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.lvl.alta { color: var(--coral); } .lvl.media { color: #C2410C; } .lvl.baja { color: var(--vm); } .lvl.na { color: var(--soft); }

/* Panel del área */
.panel { animation: enter 0.45s var(--ease) both; }
.panel .lect { font-size: 1.02rem; line-height: 1.5; padding: 14px 16px; border-left: 3px solid var(--coral); background: var(--coral-soft); border-radius: 0 12px 12px 0; margin-bottom: 18px; }
.ev-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 14px; }
.ev-extra { color: var(--soft); font-size: 0.92rem; margin-top: 14px; }
.ev-src { display: flex; gap: 8px; margin-top: 12px; font-size: 0.74rem; color: var(--soft); line-height: 1.4; }
.ev-src svg { flex: none; width: 15px; height: 15px; stroke: var(--vm); fill: none; stroke-width: 2; margin-top: 1px; }

.hbars { display: grid; gap: 12px; }
.hb { display: grid; gap: 6px; }
.hb .l { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 600; }
.hb .l b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hb .t { height: 26px; border-radius: 8px; background: var(--sand); overflow: hidden; }
.hb .t i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--vm), var(--ac)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.hb.dim .t i { background: var(--line-2); }
.in .hb .t i { transform: scaleX(var(--w)); }

.donut { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; }
.donut .bg { stroke: var(--coral-soft); }
.donut .fg { stroke: var(--ac); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.donut .k { display: grid; gap: 10px; font-size: 0.9rem; }
.donut .k div { display: flex; align-items: center; gap: 10px; }
.donut .k i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.donut .k b { font-size: 1.4rem; letter-spacing: -0.03em; min-width: 3.2ch; }

.folio { display: grid; gap: 8px; }
.fo { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.in .fo { opacity: 1; transform: none; }
.in .fo:nth-child(2) { transition-delay: 0.35s; } .in .fo:nth-child(3) { transition-delay: 0.7s; }
.fo time { font-weight: 700; font-variant-numeric: tabular-nums; }
.fo span { font-size: 0.86rem; } .fo span small { display: block; color: var(--soft); font-size: 0.74rem; }
.fo em { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 99px; background: rgba(52, 211, 153, 0.18); color: var(--vm); }
.fo.dup em { background: var(--coral-soft); color: var(--coral); }

.funnel { display: grid; gap: 7px; }
.fn { display: grid; grid-template-columns: 92px 1fr 34px; gap: 10px; align-items: center; font-size: 0.84rem; font-weight: 600; }
.fn .t { height: 20px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.fn .t i { display: block; height: 100%; background: var(--ink); opacity: 0.85; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.in .fn .t i { transform: scaleX(var(--w)); }
.fn b { text-align: right; font-variant-numeric: tabular-nums; }
.demo-note { font-size: 0.72rem; color: var(--soft); margin-top: 8px; }

/* Soluciones interactivas */
.sols { display: grid; gap: 12px; }
.sol { border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); transition: border-color 0.2s; }
.sol.open { border-color: var(--ink); }
.sol-h { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; cursor: pointer; }
.sol-h .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.16); }
.sol-h .ico svg { width: 24px; height: 24px; stroke: var(--vm); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sol-h b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.sol-h small { display: block; font-size: 0.78rem; color: var(--soft); }
.sol-h .plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-weight: 700; transition: transform 0.25s var(--ease), background 0.2s; }
.sol.open .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.sol-b { padding: 0 16px 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sand); margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--soft); transition: background 0.2s, color 0.2s; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(13, 40, 24, 0.1); }
.tab-p { font-size: 0.98rem; line-height: 1.5; animation: enter 0.35s var(--ease) both; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; animation: enter 0.35s var(--ease) both; }
.steps span { font-size: 0.82rem; font-weight: 600; padding: 9px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); animation: pop 0.4s var(--ease) forwards; }
.steps i { width: 14px; height: 2px; background: var(--ac); opacity: 0; animation: pop 0.4s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.fix { display: grid; gap: 8px; animation: enter 0.35s var(--ease) both; }
.fix div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; }
.fix em { font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; text-align: center; }
.fix .b em { background: var(--coral-soft); color: var(--coral); }
.fix .a em { background: rgba(52, 211, 153, 0.18); color: var(--vm); }

.cta { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 28px 22px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.cta h3 { font-size: 1.45rem; letter-spacing: -0.02em; max-width: 22ch; line-height: 1.15; }
.cta p { color: rgba(250, 250, 247, 0.7); max-width: 36ch; }
.cta .btn.ghost { color: var(--paper); border-color: rgba(250, 250, 247, 0.25); }
.cta .row { display: grid; gap: 10px; width: 100%; max-width: 380px; }

details.src { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); }
details.src summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: 0.92rem; display: flex; justify-content: space-between; }
details.src summary::-webkit-details-marker { display: none; }
details.src summary::after { content: "+"; color: var(--vm); font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--ease); }
details.src[open] summary::after { transform: rotate(45deg); }
details.src ol { padding: 0 18px 16px 36px; display: grid; gap: 8px; font-size: 0.82rem; color: var(--soft); line-height: 1.45; }

.foot { border-top: 1px solid var(--line); }
.foot-in { width: min(720px, 100%); margin: 0 auto; padding: 18px 16px 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--soft); }

@media (max-width: 600px) {
  .five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .five div { padding: 12px 4px 10px; }
  .five span { font-size: 0.64rem; }
  .score { grid-template-columns: 1fr; }
  .gauge { max-width: 230px; justify-self: center; width: 100%; }
  .area { grid-template-columns: 1fr 96px 20px; }
  .donut { grid-template-columns: 1fr; justify-items: center; }
  .card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .steps span, .steps i, .fo { opacity: 1 !important; transform: none !important; } }

/* ---------- Alianza EDIMEX en resultados ---------- */
.ally { border: 1.5px solid var(--ink); display: grid; gap: 16px; }
.ally-tag { justify-self: start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vm); background: rgba(52, 211, 153, 0.16); padding: 6px 12px; border-radius: 99px; }
.ally-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ally-pct { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 14px 16px; text-align: center; min-width: 108px; }
.ally-pct b { display: block; font-size: 2.6rem; letter-spacing: -0.05em; line-height: 1; color: var(--ac); }
.ally-pct span { font-size: 0.72rem; opacity: 0.75; line-height: 1.2; display: block; margin-top: 4px; }
.ally h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.ally p { font-size: 0.9rem; color: var(--soft); line-height: 1.45; }
.ally-pl { display: flex; flex-wrap: wrap; gap: 8px; }
.ally-pl span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; padding: 7px 12px 7px 7px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.ally-pl i { font-style: normal; font-size: 0.68rem; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, 0.18); color: var(--vm); }
@media (max-width: 600px) { .ally-top { grid-template-columns: 1fr; } .ally-pct { justify-self: start; } }
