/* Agentic View — paleta y base de carlosortega.page (misma que Ad Density Inspector). */
:root {
  --fondo: #f6f6f6; --panel: #ffffff; --panel-2: #f6f6f6; --borde: #d9d9d9;
  --texto: #1a1a1a; --tenue: #5c5c5c; --acento: #f11c41; --acento-fuerte: #d81339; --acento-texto: #d81339;
  --rojo: #d81339; --rojo-fg: #d81339; --ambar: #fbbf24; --ambar-fg: #a16207; --verde: #047857; --gris: #d4d4d4;
  --azul: #2563eb; --sombra: 0 1px 2px rgba(26,26,26,.06), 0 12px 32px -16px rgba(26,26,26,.18);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.dark {
  color-scheme: dark;
  --fondo: #020617; --panel: #0f172a; --panel-2: #172033; --borde: #1e293b; --texto: #f1f5f9; --tenue: #94a3b8;
  --acento-texto: #f4567a; --rojo-fg: #ff7a94; --ambar-fg: #fcd34d; --verde: #34d399; --gris: #475569; --azul: #60a5fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
button, input, select { font-family: inherit; }
body { margin: 0; background: var(--fondo); color: var(--texto); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--acento-texto); }
code { font-size: 0.88em; background: var(--panel-2); padding: 0.1em 0.35em; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 1000; background: var(--texto); color: var(--fondo); padding: 0.65rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top 0.15s ease; }
.skip-link:focus { top: 0.75rem; }
#contenido:focus { outline: none; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

/* --- Header y footer reales (ver site-chrome.js) --- */
.elementor-location-header { position: sticky; top: 0; z-index: 30; }
#main-header .sub-menu.elementor-nav-menu--dropdown { display: none; width: max-content; min-width: 156px; max-width: 260px; }
#main-header .menu-item-has-children.sub-open > .sub-menu { display: block; }
#main-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { display: block; }
.elementor-4266 .elementor-icon-list-item > a,
.elementor-4266 .elementor-nav-menu--main .elementor-item { position: relative; }
.elementor-4266 .elementor-icon-list-item > a::after,
.elementor-4266 .elementor-nav-menu--main .elementor-item::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: #f11c41; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.elementor-4266 .elementor-icon-list-item > a:hover::after,
.elementor-4266 .elementor-nav-menu--main .elementor-item:hover::after { transform: scaleX(1); }
.separador-footer { height: 100px; background-color: #f6f6f6; flex-shrink: 0; }

/* --- Barra de la herramienta --- */
.barra-herramienta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1.5rem; background: var(--panel); border-bottom: 1px solid var(--borde); box-shadow: 0 1px 2px rgba(26,26,26,0.06); }
.barra-titulo { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.barra-icono { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; background: var(--acento); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.barra-h { margin: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.25; }
.barra-sub { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-acciones { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.btn-fantasma, .btn-icono { background: var(--panel-2); border: 1px solid var(--borde); color: var(--texto); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn-fantasma { padding: 0.5rem 1rem; font-weight: 700; font-size: 0.75rem; }
.btn-icono { padding: 0.5rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-fantasma:hover, .btn-icono:hover { border-color: var(--acento); }
.icono-sol { display: none; color: #f59e0b; }
.icono-luna { color: var(--acento); }
.dark .icono-sol { display: block; }
.dark .icono-luna { display: none; }
@media (max-width: 640px) { .barra-sub { display: none; } .barra-herramienta { padding: 0.65rem 1rem; } }


/* Tipografía de landing (de la landing de referencia) */
/* ===================== INICIO ===================== */
.vista-inicio { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 3rem; }
.hero { text-align: center; }
.kicker { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--acento) 10%, transparent); color: var(--acento-texto); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.035em; font-weight: 800; }
.resalte { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--acento) 30%, transparent) 62%); }
.hero-sub { color: var(--tenue); font-size: 1.08rem; max-width: 520px; margin: 0 auto 2.2rem; }
.campo-url { display: flex; align-items: center; gap: .5rem; background: var(--panel); border: 1.5px solid var(--borde); padding: .45rem .45rem .45rem 1rem; border-radius: 18px; box-shadow: var(--sombra); transition: border-color .15s, box-shadow .15s; }
.campo-url:focus-within { border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 15%, transparent), var(--sombra); }
.campo-ico { color: var(--tenue); flex-shrink: 0; }

/* ===================== GUÍA ===================== */
.guia { max-width: 900px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.guia details { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; }
.guia > details { position: relative; }
.guia > details > summary { cursor: pointer; padding: 1.1rem 1.4rem; display: flex; flex-direction: column; list-style: none; }
.guia > details > summary::-webkit-details-marker { display: none; }
.guia > details > summary > span:first-child { font-weight: 800; }
.guia-sub { color: var(--tenue); font-size: .85rem; }
.guia > details > summary::after { content: "+"; position: absolute; right: 1.5rem; top: 1.1rem; font-size: 1.4rem; color: var(--tenue); }
.guia > details[open] > summary::after { content: "−"; }
.guia-cuerpo { padding: 0 1.4rem 1.4rem; }
.guia-formula { background: var(--panel-2); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .15rem; font-size: .9rem; margin-bottom: 1rem; }
.guia-formula span { color: var(--tenue); }
.std { border: 1px solid var(--borde); border-radius: 12px; margin-bottom: .4rem; background: var(--panel); }
.std summary { cursor: pointer; padding: .7rem .9rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.guia-pie { font-size: .8rem; color: var(--tenue); margin: 1rem 0 0; }
@media print { body > *:not(main) { display: none !important; } .guia, .controles { display: none; } }
