/**
 * Archivo de guías de ACCIONABLE (/accionable/guias/). Solo se carga en esta página.
 * Lenguaje propio de ACCIONABLE (no de la casa): la «A», el trazo ámbar que sube y la salvia como luz principal.
 * Prefijo lv-ga-. Depende de los tokens de noche.css.
 */

.lv-ga { --ga-tono: var(--n-ambar); --ga-tono-rgb: 244, 169, 59; }
.lv-ga-tono-ambar { --ga-tono: #F4A93B; --ga-tono-rgb: 244, 169, 59; }
.lv-ga-tono-salvia { --ga-tono: #6FB396; --ga-tono-rgb: 111, 179, 150; }
.lv-ga-tono-cielo { --ga-tono: #7FB2E5; --ga-tono-rgb: 127, 178, 229; }

/* ---------- Héroe ---------- */
.lv-ga-heroe { position: relative; padding: 40px 0 72px; overflow: hidden; isolation: isolate; background: radial-gradient(60% 80% at 85% 30%, rgba(47, 107, 87, .55), transparent 70%), radial-gradient(40% 50% at 70% 85%, rgba(244, 169, 59, .16), transparent 70%), var(--n-noche); }
/* Rejilla fina que se desvanece: da profundidad sin competir con el texto. */
.lv-ga-rejilla { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(238, 243, 242, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 243, 242, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 80% at 75% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 75% 40%, #000, transparent 75%); }
body.lv-noche .lv-ga-heroe .lv-migas, body.lv-noche .lv-ga-heroe .lv-migas a { color: var(--n-niebla); }
.lv-ga-heroe-cuerpo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 28px; }
.lv-ga-sello { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(238, 243, 242, .06); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .14); font-weight: 900; font-size: 14px; letter-spacing: .08em; color: var(--n-tinta); }
.lv-ga-sello svg { width: 26px; height: 26px; color: var(--n-tinta); }
.lv-ga-sello span { padding-left: 10px; border-left: 1px solid rgba(238, 243, 242, .2); font-weight: 600; letter-spacing: .02em; color: var(--n-niebla); }
body.lv-noche .lv-ga-heroe h1 { margin: 22px 0 0; font-size: clamp(42px, 6.6vw, 88px); font-weight: 900; line-height: .98; letter-spacing: -.045em; color: var(--n-tinta); }
.lv-ga-heroe h1 em { display: block; font-style: normal; color: var(--n-tinta); }
.lv-ga-subrayado { position: relative; display: inline-block; color: var(--n-ambar); }
/* Sin vector-effect: con non-scaling-stroke el trazo punteado ignora pathLength y la línea queda a medias. */
.lv-ga-subrayado svg { position: absolute; left: 0; top: 94%; width: 100%; height: auto; aspect-ratio: 300 / 26; overflow: visible; }
.lv-ga-subrayado path { fill: none; stroke: var(--n-ambar); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgba(244, 169, 59, .6)); animation: lv-ga-dibuja 1.2s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.lv-ga-bajada { max-width: 34em; margin: clamp(36px, 4.4vw, 60px) 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--n-niebla); }
.lv-ga-datos { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.lv-ga-datos li { padding: 9px 16px; border-radius: 999px; background: rgba(238, 243, 242, .05); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .12); font-size: 14.5px; color: var(--n-niebla); }
.lv-ga-datos b { color: var(--n-tinta); }

/* La «A» gigante: el cuerpo aparece y el trazo ámbar se dibuja subiendo. */
.lv-ga-gigante { justify-self: center; width: min(100%, 420px); height: auto; overflow: visible; }
.lv-ga-gigante path, .lv-ga-marca path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.lv-ga-gigante .lv-ga-a { stroke: rgba(238, 243, 242, .92); stroke-dasharray: 1; stroke-dashoffset: 1; animation: lv-ga-dibuja 1.1s .1s cubic-bezier(.65, 0, .35, 1) forwards; }
.lv-ga-gigante .lv-ga-trazo { stroke: var(--n-ambar); stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 14px rgba(244, 169, 59, .75)); animation: lv-ga-dibuja .9s 1s cubic-bezier(.65, 0, .35, 1) forwards, lv-ga-late 4s 2s ease-in-out infinite; }
@keyframes lv-ga-dibuja { to { stroke-dashoffset: 0; } }
@keyframes lv-ga-late { 50% { filter: drop-shadow(0 0 26px rgba(244, 169, 59, .95)); } }

/* Pestañas de la Biblioteca justo debajo del héroe: las Guías son parte de la Biblioteca. */
.lv-ga-pestanas { padding-top: 32px; }

/* ---------- Secciones ---------- */
.lv-ga-seccion { padding: 56px 0; }
.lv-ga-ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n-salvia-luz); }
.lv-ga-ceja::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.lv-ga-encabezado { margin-bottom: 28px; }
body.lv-noche .lv-ga-encabezado h2, body.lv-noche .lv-ga-cierre h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -.035em; color: var(--n-tinta); }

/* Etiquetas comunes de las tarjetas */
.lv-ga-etiqueta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--n-niebla); }
.lv-ga-pastilla { padding: 4px 11px; border-radius: 999px; background: rgba(var(--ga-tono-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--ga-tono-rgb), .45); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ga-tono); }
.lv-ga-pregunta { margin: 0; font-style: italic; color: var(--n-niebla); }
.lv-ga-libro { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--n-niebla); }
.lv-ga-libro svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ga-tono); stroke-width: 1.8; stroke-linejoin: round; }
.lv-ga-libro i { font-style: italic; color: var(--n-tinta); }

/* ---------- Guía destacada ---------- */
body.lv-noche a.lv-ga-destacada { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.4vw, 44px); border-radius: 32px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--n-tinta); background: radial-gradient(80% 120% at 0% 0%, rgba(var(--ga-tono-rgb), .14), transparent 55%), linear-gradient(160deg, #16314B, #0D1E2F); box-shadow: inset 0 0 0 1px rgba(var(--ga-tono-rgb), .28), 0 50px 90px -50px #000; transition: box-shadow .35s; }
body.lv-noche a.lv-ga-destacada::before, body.lv-noche a.lv-ga-tarjeta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--ga-tono-rgb), .16), transparent 45%); transition: opacity .35s; }
body.lv-noche a.lv-ga-destacada:hover { box-shadow: inset 0 0 0 1px rgba(var(--ga-tono-rgb), .6), 0 60px 100px -50px #000; }
body.lv-noche a.lv-ga-destacada:hover::before, body.lv-noche a.lv-ga-tarjeta:hover::before { opacity: 1; }
.lv-ga-destacada-texto { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
body.lv-noche .lv-ga-destacada h2 { margin: 0; font-size: clamp(28px, 3.3vw, 44px); font-weight: 900; line-height: 1.06; letter-spacing: -.035em; color: var(--n-tinta); }
.lv-ga-puntos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lv-ga-puntos li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.5; color: var(--n-niebla); }
.lv-ga-puntos li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--ga-tono-rgb), .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F4A93B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.lv-ga-extracto { margin: 0; color: var(--n-niebla); }
.lv-ga-boton { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 15px 26px; border-radius: 999px; background: var(--n-ambar); color: var(--n-noche); font-weight: 800; font-size: 16.5px; box-shadow: 0 14px 34px -12px rgba(244, 169, 59, .75); transition: transform .25s, box-shadow .25s; }
.lv-ga-boton svg, .lv-ga-ir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
body.lv-noche a.lv-ga-destacada:hover .lv-ga-boton { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(244, 169, 59, .9); }
body.lv-noche a:hover .lv-ga-boton svg, body.lv-noche a:hover .lv-ga-ir svg { transform: translateX(5px); }

/* La «portada» de la guía destacada (se inclina con el cursor: noche.js) */
.lv-ga-portada { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 360px; padding: 30px; border-radius: 24px; overflow: hidden; background: radial-gradient(100% 80% at 100% 0%, rgba(var(--ga-tono-rgb), .4), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(47, 107, 87, .55), transparent 65%), #0A1622; box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .1), 0 30px 60px -30px #000; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.lv-ga-portada .lv-ga-numero { position: absolute; top: -18px; right: 14px; font-size: clamp(120px, 15vw, 190px); }
.lv-ga-portada .lv-ga-pregunta { position: relative; font-size: clamp(21px, 2vw, 26px); font-weight: 800; font-style: normal; line-height: 1.25; letter-spacing: -.02em; color: var(--n-tinta); }
.lv-ga-portada .lv-ga-libro { position: relative; }
.lv-ga-marca { position: absolute; top: 26px; left: 26px; width: 46px; height: 46px; }
.lv-ga-marca .lv-ga-a { stroke: rgba(238, 243, 242, .9); }
.lv-ga-marca .lv-ga-trazo { stroke: var(--n-ambar); }

/* Número grande en contorno (marca de agua) */
.lv-ga-numero { font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--ga-tono-rgb), .35); pointer-events: none; user-select: none; transition: -webkit-text-stroke-color .35s; }

/* ---------- Tarjetas ---------- */
.lv-ga-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
body.lv-noche a.lv-ga-tarjeta { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 360px; padding: 28px 28px 30px; border-radius: 26px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--n-tinta); background: linear-gradient(165deg, rgba(var(--ga-tono-rgb), .1), rgba(19, 41, 61, .5) 45%), #0F2133; box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .1); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
body.lv-noche a.lv-ga-tarjeta:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(var(--ga-tono-rgb), .55), 0 40px 70px -35px #000; }
.lv-ga-tarjeta .lv-ga-numero { position: absolute; top: -10px; right: 16px; z-index: -1; }
body.lv-noche a.lv-ga-tarjeta:hover .lv-ga-numero { -webkit-text-stroke-color: rgba(var(--ga-tono-rgb), .7); }
/* La parte de arriba deja libre la esquina del número grande. */
.lv-ga-tarjeta .lv-ga-etiqueta, .lv-ga-tarjeta .lv-ga-pregunta { max-width: calc(100% - 120px); }
.lv-ga-tarjeta .lv-ga-pregunta { font-size: 15.5px; line-height: 1.45; }
body.lv-noche .lv-ga-tarjeta h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; color: var(--n-tinta); }
.lv-ga-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(238, 243, 242, .1); font-size: 14px; color: var(--n-niebla); }
.lv-ga-ir { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(var(--ga-tono-rgb), .14); color: var(--ga-tono); font-weight: 800; transition: background .3s, color .3s; }
body.lv-noche a.lv-ga-tarjeta:hover .lv-ga-ir { background: var(--ga-tono); color: var(--n-noche); }
/* El trazo que sube, abajo de cada tarjeta: se dibuja al pasar el mouse. */
.lv-ga-linea { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 300 / 40; overflow: visible; pointer-events: none; }
.lv-ga-linea path { fill: none; stroke: var(--ga-tono); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.65, 0, .35, 1); }
body.lv-noche a.lv-ga-tarjeta:hover .lv-ga-linea path, body.lv-noche a.lv-ga-tarjeta:focus-visible .lv-ga-linea path { stroke-dashoffset: 0; }
/* Próxima guía */
body.lv-noche a.lv-ga-proxima { --ga-tono: #A7B6C2; --ga-tono-rgb: 167, 182, 194; background: repeating-linear-gradient(135deg, rgba(238, 243, 242, .025) 0 12px, transparent 12px 24px); box-shadow: inset 0 0 0 1.5px rgba(238, 243, 242, .16); }
body.lv-noche a.lv-ga-proxima:hover { box-shadow: inset 0 0 0 1.5px rgba(111, 179, 150, .6); }
body.lv-noche a.lv-ga-proxima:hover .lv-ga-ir { background: var(--n-salvia-luz); }

/* ---------- Cómo funciona ---------- */
.lv-ga-pasos { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.lv-ga-pasos li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; background: rgba(238, 243, 242, .03); box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .09); color: var(--n-niebla); font-size: 16px; line-height: 1.55; }
.lv-ga-pasos li span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: rgba(111, 179, 150, .14); color: var(--n-salvia-luz); font-size: 19px; font-weight: 900; }
.lv-ga-pasos li:last-child span { background: var(--n-ambar); color: var(--n-noche); box-shadow: 0 0 26px rgba(244, 169, 59, .5); }
.lv-ga-pasos b { font-size: 20px; letter-spacing: -.015em; color: var(--n-tinta); }
/* Flechas entre pasos (computador) */
.lv-ga-pasos li:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -17px; z-index: 1; width: 14px; height: 14px; border-top: 2px solid var(--n-salvia-luz); border-right: 2px solid var(--n-salvia-luz); transform: rotate(45deg); opacity: .7; }

/* ---------- Cierre ---------- */
.lv-ga-cierre { position: relative; padding: clamp(32px, 5vw, 64px); border-radius: 32px; overflow: hidden; isolation: isolate; text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(47, 107, 87, .5), transparent 65%), radial-gradient(60% 70% at 50% 110%, rgba(244, 169, 59, .22), transparent 70%), #0D1E2F; box-shadow: inset 0 0 0 1px rgba(238, 243, 242, .1); }
.lv-ga-cierre .lv-ga-marca { position: static; display: block; width: 64px; height: 64px; margin: 0 auto 18px; }
.lv-ga-cierre .lv-ga-ceja { justify-content: center; }
.lv-ga-cierre h2 { max-width: 18ch; margin-inline: auto !important; }
.lv-ga-cierre > p:not(.lv-ga-ceja) { max-width: 36em; margin: 16px auto 0; color: var(--n-niebla); }
.lv-ga-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lv-ga-vacio { color: var(--n-niebla); }

/* ---------- Celular y tableta ---------- */
@media (max-width: 960px) {
	.lv-ga-heroe-cuerpo { grid-template-columns: minmax(0, 1fr); }
	.lv-ga-gigante { position: absolute; top: 70px; right: -40px; z-index: -1; width: 260px; opacity: .35; }
	body.lv-noche a.lv-ga-destacada { grid-template-columns: minmax(0, 1fr); }
	.lv-ga-portada { order: -1; min-height: 260px; }
	.lv-ga-pasos { grid-template-columns: minmax(0, 1fr); }
	.lv-ga-pasos li:not(:last-child)::after { top: auto; right: auto; bottom: -15px; left: 46px; transform: rotate(135deg); }
}
@media (max-width: 560px) {
	.lv-ga-heroe { padding: 28px 0 48px; }
	.lv-ga-sello span { display: none; }
	.lv-ga-datos li { padding: 7px 12px; font-size: 13.5px; }
	.lv-ga-seccion { padding: 40px 0; }
	body.lv-noche a.lv-ga-destacada { padding: 14px 14px 26px; border-radius: 26px; }
	.lv-ga-destacada-texto { padding: 0 8px; }
	.lv-ga-portada { padding: 22px; }
	body.lv-noche a.lv-ga-tarjeta { min-height: 0; padding: 24px 22px 26px; }
	.lv-ga-numero { font-size: 96px; }
	.lv-ga-tarjeta .lv-ga-numero { top: -6px; right: 10px; font-size: 72px; }
	.lv-ga-tarjeta .lv-ga-etiqueta { max-width: calc(100% - 84px); }
	.lv-ga-tarjeta .lv-ga-pregunta { max-width: none; }
}

/* Sin animaciones si la persona pidió reducir movimiento: todo queda dibujado. */
@media (prefers-reduced-motion: reduce) {
	.lv-ga-subrayado path, .lv-ga-gigante .lv-ga-a, .lv-ga-gigante .lv-ga-trazo { animation: none; stroke-dashoffset: 0; }
	body.lv-noche a.lv-ga-tarjeta, .lv-ga-portada, .lv-ga-linea path, .lv-ga-boton, .lv-ga-boton svg, .lv-ga-ir svg { transition: none; }
}
