/* Auditoría SEO gratis: la herramienta en la portada y las secciones de la página. Prefijo au-. */

/* ── Portada: formulario con tipos de análisis ── */
.au-form { margin-top: clamp(22px, 2.4vw, 30px); max-width: 620px; }
.au-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.au-legend { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font-size: var(--t-small); font-weight: 500; color: #c8d1dc; }
.au-tab { position: relative; cursor: pointer; }
.au-tab input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.au-tab-in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px; height: 100%; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #f2f5f8; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, translate .18s var(--ease-out); }
.au-tab-in svg { grid-row: span 2; width: 18px; height: 18px; color: var(--lime); transition: color .18s ease; }
.au-tab-in b { font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.au-tab-in small { font-size: .8125rem; line-height: 1.2; color: #aeb9c7; transition: color .18s ease; }
.au-tab:hover .au-tab-in { background: rgba(255, 255, 255, .1); translate: 0 -2px; }
.au-tab input:checked + .au-tab-in { background: var(--lime); color: #1d2a3d; box-shadow: none; }
.au-tab input:checked + .au-tab-in svg, .au-tab input:checked + .au-tab-in small { color: #1d2a3d; }
.au-tab input:focus-visible + .au-tab-in { outline: 2px solid var(--lime); outline-offset: 2px; }
.au-tab-desc { margin-top: 10px; min-height: 2.6em; font-size: var(--t-small); line-height: 1.35; color: #aeb9c7; }
.au-label { margin-top: 12px; }
.au-form .aw-input[aria-invalid="true"] { color: #8a1c14; }
.au-form .aw-field:has(.aw-input[aria-invalid="true"]) { box-shadow: 0 0 0 3px #ff8a80; }
.au-links { gap: 4px 22px; margin-top: 14px; }

/* Mosaico de la portada: la consola es la protagonista */
html:not(.ph-oscura) .au-stage { padding: clamp(40px, 4vw, 64px) clamp(20px, 3vw, 52px); }
.au-screen { position: relative; z-index: 2; width: min(100%, 580px); box-shadow: 0 30px 70px rgba(29, 42, 61, .32); }
.au-3d { width: clamp(92px, 8.4vw, 136px); right: clamp(10px, 1.6vw, 26px); top: clamp(8px, 1.2vw, 18px); z-index: 3; }
.au-screen .aw-head { padding-right: 12px; }
.au-demo-tag { padding: 2px 10px; border-radius: 999px; background: rgba(200, 212, 0, .16); color: var(--lime); font-size: .75rem; font-weight: 600; }
.au-console { min-height: 300px; max-height: 340px; }
.au-headline { margin-bottom: 4px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; color: #ffffff; }
.au-counts { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; margin-bottom: 14px; }
.au-count { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .8125rem; font-weight: 500; }
.au-count::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.au-count.is-crit { color: #ff8a80; }
.au-count.is-high { color: #fbbf24; }
.au-count.is-ok { color: var(--lime); }
.aw-metric b.is-crit { color: #ff8a80; }
.aw-metric b.is-high { color: #fbbf24; }
.aw-metric b.is-ok { color: var(--lime); }
.au-cta { margin-top: 14px; padding: 16px; border-radius: 16px; background: rgba(200, 212, 0, .1); box-shadow: inset 0 0 0 1px rgba(200, 212, 0, .22); }
.au-cta-h { font-weight: 600; font-size: 1.0625rem; color: #ffffff; }
.au-cta-p { margin-top: 4px; font-size: .9375rem; line-height: 1.35; color: #c8d1dc; }
.au-cta-p strong { color: var(--lime); font-weight: 600; overflow-wrap: anywhere; }
.au-cta .aw-actions { margin-top: 12px; }
.au-results.is-demo .au-cta { display: none; }
/* Técnica y GEO/AEO (sitio publicado): una o tres notas y la lista de hallazgos. */
.au-sub { margin: -6px 0 14px; font-size: .9375rem; line-height: 1.35; color: #c8d1dc; }
.aw-scores.au-scores-1 { grid-template-columns: minmax(0, 1fr); }
.aw-scores.au-scores-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.au-scores-3 .aw-metric { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.au-count.is-med { color: #8fb8ff; }
.aw-metric b.is-med { color: #8fb8ff; }
.au-finds { display: grid; max-height: 280px; overflow: auto; margin-top: 14px; font-size: .875rem; }
.au-finds-h { padding-bottom: 6px; font-weight: 600; color: #ffffff; }
.au-find > summary { cursor: pointer; list-style: none; }
.au-find > summary::-webkit-details-marker { display: none; }
.au-find > summary span { color: #dbe2ea; }
.au-find > summary b { flex: none; }
.au-find:not(.no-d) > summary:hover span { color: #ffffff; }
.au-dim { margin-left: 6px; font-size: .6875rem; font-weight: 600; font-style: normal; letter-spacing: .04em; color: var(--lime); }
.au-find-d { padding: 0 0 10px; color: #aeb9c7; font-size: .8125rem; line-height: 1.4; }

/* ── Qué revela: tres módulos ── */
.au-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.au-mod { gap: 18px; }
.au-mod .tile-copy { max-width: none; }
.au-mod .kicker, .au-mod-h { padding-right: clamp(64px, 6vw, 92px); }
.au-mod-h { margin-top: 8px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.au-mod .tile-p { color: var(--soft); }
.au-mod.t-navy .tile-p { color: #c8d1dc; }
.au-mod.t-lime .tile-p { color: var(--on-lime); }
.au-mod-3d { width: clamp(66px, 5.8vw, 92px); right: clamp(14px, 1.6vw, 24px); top: clamp(14px, 1.6vw, 24px); }
.au-mini { position: relative; overflow: hidden; display: grid; gap: 10px; margin-top: auto; }
.au-mini-k { font-size: .8125rem; font-weight: 600; color: var(--ui-soft); }
.au-mini .ticks { margin: 0; gap: 7px; }
.au-mini .ticks li { align-items: flex-start; line-height: 1.3; }
.au-mini .ticks svg { margin-top: 1px; color: #178a45; }
html.dark .t-white .au-mini .ticks svg { color: #7fe3ae; }
.au-gauge { height: 8px; border-radius: 8px; background: var(--ui-line); overflow: hidden; }
.au-gauge span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--lime); transform-origin: left center; }
.au-scan-line { position: absolute; left: 0; right: 0; top: 34px; height: 30px; background: rgba(200, 212, 0, .22); box-shadow: inset 0 2px 0 var(--lime); pointer-events: none; opacity: 0; }

/* Preguntas: la columna del título es más ancha para que quepa en dos líneas. */
@media (min-width: 1024px) { #preguntas.faq { grid-template-columns: 5fr 7fr; } }
.au-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.au-pills span { padding: 5px 12px; border-radius: 999px; background: var(--surface); font-size: .8125rem; font-weight: 500; }
.t-navy .au-pills span { background: rgba(255, 255, 255, .1); color: #f2f5f8; }
.t-lime .au-pills span { background: rgba(29, 42, 61, .1); color: var(--on-lime); }

/* ── Tres pasos ── */
.au-type .search-bar { margin-bottom: 12px; font-weight: 500; }
.au-type .jr-caret { opacity: 1; }
.au-type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.au-type-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ui-line); font-size: .875rem; font-weight: 500; transition: background-color .25s ease, color .25s ease; }
.au-type-chips span.is-on { background: var(--navy); color: var(--lime); }
.au-type-chips svg { width: 15px; height: 15px; }
.au-minicon { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .875rem; }
.au-report { display: grid; gap: 12px; justify-items: start; }
.au-report-rings { display: flex; gap: 14px; }
.au-report .ring-box { width: 68px; }
.au-report .ring-n { font-size: 1.125rem; }
.au-report .ring-val.au-r-warn { stroke: #e0a100; }
.au-report-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.au-report-pills span { padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.au-p-crit { background: #fde3e0; color: #9b2a22; }
.au-p-high { background: #fdf0cf; color: #7a5300; }
.au-p-med { background: #e3e9f1; color: #2f3e55; }
.au-report small { color: var(--ui-soft); font-size: .8125rem; }
.au-sec-cta { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); }

/* ── El 90% ── */
.au-why-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 72px); align-items: start; padding-inline: clamp(8px, 2vw, 28px); }
.au-why-head { margin-bottom: clamp(28px, 3.4vw, 52px); padding-inline: clamp(8px, 2vw, 28px); }
.au-why-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(18px, 3vw, 48px); }
.au-big { font-size: clamp(5.5rem, 12vw, 10.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: .8; color: var(--lime); font-variant-numeric: tabular-nums; }
.au-why-h { max-width: 22em; font-size: clamp(2rem, 3.4vw, 3.5rem); }
.au-dots { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: clamp(5px, .7vw, 10px); max-width: 560px; }
.au-dots span { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; background: rgba(255, 138, 128, .2); box-shadow: inset 0 0 0 1px rgba(255, 138, 128, .5); }
.au-dots span::before { content: ''; position: absolute; left: 18%; right: 18%; top: 16%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.au-dots span::after { content: '!'; position: absolute; inset: auto 0 12% 0; text-align: center; font-weight: 700; font-size: clamp(.75rem, 1.2vw, 1rem); color: #ff8a80; }
.au-dots span.is-ok { background: rgba(200, 212, 0, .2); box-shadow: inset 0 0 0 1px var(--lime); }
.au-dots span.is-ok::after { content: '✓'; color: var(--lime); }
.au-why-p { margin-top: 18px; max-width: 40em; color: #c8d1dc; line-height: 1.55; }
.au-why-p a { color: #dfe65a; text-decoration: underline; text-underline-offset: 3px; }
.au-why-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(24px, 2.6vw, 36px); }
.au-why-stats > div { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.au-why-stats strong { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.au-why-stats > div > span { font-size: var(--t-small); line-height: 1.3; color: #c8d1dc; }
.au-probs { display: grid; gap: var(--gap); }
.au-prob { flex-direction: row; align-items: flex-start; gap: 16px; padding: clamp(20px, 2vw, 30px); }
.au-prob h3 { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.au-prob p { margin-top: 6px; color: var(--soft); line-height: 1.4; }
.au-prob.t-lime p { color: var(--on-lime); }
.au-prob.is-good { padding-right: clamp(96px, 9vw, 132px); }
.au-prob-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; }
.au-prob-ico svg { width: 24px; height: 24px; }
.is-bad .au-prob-ico { background: #fde3e0; color: #b3261e; }
.is-warn .au-prob-ico { background: #fdf0cf; color: #8a5d00; }
.is-good .au-prob-ico { background: var(--navy); color: var(--lime); }
html.dark .is-bad .au-prob-ico { background: rgba(255, 138, 128, .16); color: #ff8a80; }
html.dark .is-warn .au-prob-ico { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.au-prob-3d { width: clamp(76px, 7vw, 108px); right: clamp(10px, 1.2vw, 20px); top: 50%; margin-top: calc(clamp(76px, 7vw, 108px) / -2); }

/* ── Experiencia real ── */
.au-stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.au-stats .stat { grid-column: span 4; }
.au-stats .stat-l b { color: var(--ink); font-weight: 600; }
.au-stats .stat.t-lime .stat-l b { color: var(--on-lime); }
.au-stat-ico { display: flex; gap: 8px; margin-top: 12px; }
.au-stat-ico svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--navy); color: var(--lime); }

/* ── Qué revisamos: seis áreas ── */
.au-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.au-area { padding: clamp(24px, 2.4vw, 34px); }
.au-area .ico-box { width: 50px; height: 50px; border-radius: 15px; background: var(--lime); color: var(--on-lime); }
.au-area .ico-box svg { width: 24px; height: 24px; }
.au-area h3 { margin-top: 18px; font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.au-area p { margin-top: 10px; color: var(--soft); line-height: 1.45; }
.au-area.t-navy p { color: #c8d1dc; }
.au-btn-navy { background: var(--navy); color: #f2f5f8; }
.au-btn-navy:hover { background: #1d2a3d; }
html.dark .au-btn-navy { background: var(--lime); color: #1d2a3d; }

/* ── Para quién ── */
.au-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.au-who-card { padding: clamp(24px, 2.6vw, 38px); padding-right: clamp(100px, 10vw, 150px); }
.au-who-card .ico-box { background: var(--navy); color: var(--lime); }
html.dark .au-who-card .ico-box, html.dark .au-stat-ico svg { background: var(--lime); color: #1d2a3d; }
.au-who-card h3 { margin-top: 16px; font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.au-who-card p { margin-top: 8px; color: var(--soft); line-height: 1.45; }
.au-who-card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.au-who-3d { width: clamp(74px, 7.4vw, 112px); right: clamp(14px, 1.6vw, 26px); top: clamp(16px, 1.8vw, 28px); }
.au-who-foot { display: grid; justify-items: center; gap: 18px; margin-top: clamp(26px, 3vw, 40px); text-align: center; }
.au-who-foot p { max-width: 40em; color: var(--soft); font-size: var(--t-body); line-height: 1.5; }

/* ── Ventana del informe por correo ── */
.au-dialog { width: min(calc(100vw - 32px), 470px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--tile); color: var(--ink); box-shadow: 0 40px 100px rgba(4, 8, 16, .45); }
.au-dialog::backdrop { background: rgba(4, 8, 16, .62); }
.au-lead { position: relative; display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 4vw, 34px); }
.au-x { position: absolute; top: 12px; right: 12px; }
.au-lead-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lime); color: #1d2a3d; }
.au-lead-ico svg { width: 24px; height: 24px; }
.au-lead-h { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; }
.au-lead-p { color: var(--soft); line-height: 1.4; }
.au-lead-p strong { color: var(--ink); overflow-wrap: anywhere; }
.au-lead .field { display: grid; gap: 6px; width: 100%; }
.au-lead .label { font-size: var(--t-small); font-weight: 500; }
.au-lead .input { width: 100%; min-height: 48px; border-radius: 12px; font-size: 1rem; background: var(--bg); color: var(--ink); }
.au-lead .input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lime); }
.au-lead .input[aria-invalid="true"] { border-color: #c2362f; box-shadow: 0 0 0 3px rgba(194, 54, 47, .25); }
.au-field-err { color: #b3261e; font-size: var(--t-small); }
html.dark .au-field-err { color: #ff8a80; }
.au-lead-note { font-size: .8125rem; line-height: 1.4; color: var(--soft); }
.au-lead-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.au-mock { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border-radius: 12px; background: #eef3b3; color: #1d2a3d; font-size: var(--t-small); font-weight: 500; }
.au-mock svg { flex: none; }

/* ── Tamaños ── */
@media (max-width: 1160px) {
  .au-mods { grid-template-columns: minmax(0, 1fr); }
  .au-mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--tile-pad); }
  .au-mod .tile-copy { grid-row: span 2; }
  .au-mini { margin-top: 0; }
}
@media (max-width: 1023px) {
  .au-why-in { grid-template-columns: minmax(0, 1fr); }
  .au-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .au-tabs { gap: 6px; }
  .au-tab-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 2px; padding: 10px 6px; }
  .au-tab-in svg { grid-row: auto; }
  .au-tab-in small { font-size: .8125rem; }
  .au-why-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .au-tab-desc { min-height: 0; }
  html:not(.ph-oscura) .au-stage { padding: 52px 10px 14px; }
  .au-3d { width: 64px; right: 8px; top: 4px; }
  .au-console { min-height: 220px; }
  .aw-scores.au-scores-3 { grid-template-columns: minmax(0, 1fr); }
  .au-mod { display: flex; }
  .au-who { grid-template-columns: minmax(0, 1fr); }
  .au-who-card { padding-right: clamp(24px, 2.6vw, 38px); padding-top: clamp(24px, 2.6vw, 38px); }
  .au-who-3d { width: 64px; }
  .au-areas { grid-template-columns: minmax(0, 1fr); }
  .au-why-stats { grid-template-columns: minmax(0, 1fr); }
  .au-why-stats > div { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .au-prob.is-good { padding-right: 88px; }
  .au-prob-3d { width: 70px; margin-top: -35px; right: 8px; }
  .au-stats .stat { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .au-tab-in { transition: none; }
}

/* Fuente de cada cifra, en letra chica. */
.au-src { display: block; margin-top: 4px; font-size: .75rem; letter-spacing: .01em; color: #8f9bab; }
.au-why-src { margin-top: 10px; font-size: .75rem; color: #8f9bab; }
