/* Landing de Ad Density Inspector. Hereda la paleta y las variables de style.css. */
.landing { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.l-hero { text-align: center; padding: 3.5rem 0 2rem; }
.l-hero h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.035em; font-weight: 800; }
.l-sub { color: var(--tenue); font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.8rem; }
.l-sub strong { color: var(--texto); }
.l-cta { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; justify-content: center; align-items: center; }
.btn-grande { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 14px; background: var(--acento-fuerte); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; box-shadow: 0 12px 28px -14px rgba(216, 19, 57, .7); transition: transform .12s, background .15s; }
.btn-grande:hover { background: #b30f2f; transform: translateY(-1px); }
.btn-grande:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }
.btn-sec { background: var(--texto); color: var(--fondo); box-shadow: none; }
.btn-sec:hover { background: var(--texto); filter: brightness(1.15); }
.btn-texto { font-weight: 700; color: var(--acento-texto); }
.l-pie-hero { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; margin: 1.2rem 0 0; padding: 0; color: var(--tenue); font-size: .85rem; font-weight: 600; }
.l-pie-hero li::before { content: "✓ "; color: var(--verde); }
.l-captura { margin: 2.6rem 0 0; }
.l-captura img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--borde); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .45); }
figcaption { margin-top: .7rem; font-size: .85rem; color: var(--tenue); }

.l-sec { padding: 1.5rem 0; }
.l-sec .titulo-seccion { text-align: center; margin: 2.5rem 0 1.4rem; font-size: 1.6rem; letter-spacing: -.02em; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.l-card { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: 1.3rem; }
.l-card h3 { margin: .8rem 0 .35rem; font-size: 1.02rem; }
.l-card p { margin: 0; color: var(--tenue); font-size: .92rem; }
.l-ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--acento) 12%, transparent); color: var(--acento-texto); display: flex; align-items: center; justify-content: center; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pasos li { background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; color: var(--tenue); }
.pasos strong { color: var(--texto); }
.paso-num { width: 28px; height: 28px; border-radius: 50%; background: var(--acento-fuerte); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }

.l-capturas { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.l-capturas figure { margin: 0; }
.l-capturas img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--borde); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); }

.l-instala { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.l-tarjeta-inst { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: 1.5rem; }
.l-tarjeta-inst h3 { margin: 0 0 .5rem; }
.l-lista-num { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .95rem; }
.l-aviso { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: var(--panel-2); color: var(--tenue); font-size: .84rem; }
.l-privacidad { text-align: center; max-width: 700px; margin: 0 auto; color: var(--tenue); }
.l-privacidad strong { color: var(--texto); }
.l-faq { display: grid; gap: .5rem; max-width: 760px; margin: 0 auto; }
.l-faq details { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: .2rem 1.1rem; }
.l-faq summary { cursor: pointer; font-weight: 700; padding: .8rem 0; }
.l-faq p { margin: 0 0 1rem; color: var(--tenue); font-size: .94rem; }
code { font-size: .9em; }
.guia { margin-top: 2rem; }
@media (max-width: 640px) { .l-hero { padding-top: 2.2rem; } .btn-grande { width: 100%; justify-content: center; } }

/* ===== Añadidos de Agentic View ===== */
.l-grid-nota { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.l-peso { margin: 0 0 .2rem !important; font-size: 1.7rem !important; font-weight: 800; color: var(--acento-texto) !important; letter-spacing: -.02em; }
.l-nota-fuentes { text-align: center; color: var(--tenue); font-size: .85rem; margin: 1.1rem 0 0; }
.l-lista-pts { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .95rem; }
.l-glosario dl { margin: 0; display: grid; gap: .2rem; }
.l-glosario dt { font-weight: 700; margin-top: .8rem; }
.l-glosario dd { margin: 0; color: var(--tenue); font-size: .92rem; }
.l-capturas figure:nth-child(3) { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-grande { transition: none; } }

/* ===== Maquetación revisada (v2) ===== */
.l-hero h1 { text-wrap: balance; }
.l-sub { text-wrap: pretty; }

/* 6 tarjetas: 3 + 3 (sin huérfanas) */
.l-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .l-grid { grid-template-columns: 1fr; } }

/* 5 tarjetas de puntuación: 3 arriba y 2 centradas debajo */
.l-grid-nota { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.l-grid-nota .l-card { flex: 0 1 calc(33.333% - .7rem); min-width: 240px; }
@media (max-width: 640px) { .l-grid-nota .l-card { flex-basis: 100%; } }

/* Galería "El informe": una columna, imágenes a ancho completo y con el mismo estilo */
.l-capturas { grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; gap: 2rem; }
.l-capturas figure:nth-child(3) { grid-column: auto; }
.l-capturas figure { text-align: center; }
.l-capturas img { width: 100%; height: auto; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .5); }
.l-capturas figcaption { font-size: .92rem; }

/* Sin desbordes en móviles estrechos (<360 px) */
.l-instala { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.pasos { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.l-tarjeta-inst { min-width: 0; overflow-wrap: anywhere; }

/* ===== Añadidos de WebMCP Inspector ===== */
.btn-grande { cursor: pointer; border: 0; font-family: inherit; }
.btn-grande[draggable="true"] { cursor: grab; }
.l-hero h1 { text-wrap: balance; }
.l-arrastra { margin: 1.1rem auto 0; max-width: 560px; padding: .65rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--acento) 9%, transparent); color: var(--tenue); font-size: .92rem; }
.l-arrastra strong { color: var(--texto); }
.l-parpadeo { animation: l-parpadeo 1.2s ease-out; }
@keyframes l-parpadeo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
kbd { font: inherit; font-size: .82em; font-weight: 700; padding: .08em .45em; border-radius: 6px; border: 1px solid var(--borde); border-bottom-width: 2px; background: var(--panel); }
.l-alerta { max-width: 760px; margin: 0 auto; padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px solid var(--ambar); background: color-mix(in srgb, var(--ambar) 14%, var(--panel)); }
.l-alerta p { margin: 0 0 .5rem; }
.l-alerta p:last-child { margin: 0; color: var(--tenue); }
.l-codigo { margin: 0; max-height: 460px; overflow: auto; padding: 1rem 1.1rem; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-size: .8rem; line-height: 1.55; }
.l-codigo code { background: transparent; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
.l-captura img { background: #fff; }
@media (prefers-reduced-motion: reduce) { .l-parpadeo { animation: none; } }

/* --- Botón flotante "volver arriba" (igual que en tree-checker) --- */
.btn-volver-arriba {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--acento-fuerte); color: white; font-size: 1.3rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 6px 20px -6px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-volver-arriba:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-volver-arriba:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }
@media print { .btn-volver-arriba { display: none !important; } }

/* ===== WebMCP Inspector v2 ===== */
.l-instala h3 code { font-size: .9em; background: color-mix(in srgb, var(--acento) 12%, transparent); color: var(--acento-texto); padding: .1em .4em; border-radius: 6px; }
.l-codigo-corto { margin-top: .8rem; max-height: none; font-size: .78rem; }
.l-veredictos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.l-veredicto { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--borde); border-left: 6px solid var(--gris); border-radius: 16px; }
.l-veredicto strong { font-size: 1rem; }
.l-veredicto span { color: var(--tenue); font-size: .9rem; }
.v-ok { border-left-color: var(--verde); } .v-ok strong { color: var(--verde); }
.v-er { border-left-color: var(--rojo); } .v-er strong { color: var(--rojo-fg); }
.v-wa { border-left-color: var(--ambar); } .v-wa strong { color: var(--ambar-fg); }
.v-mu { border-left-color: var(--gris); }
.l-capturas figure { margin: 0; }
