/*
Theme Name: Luis López
Theme URI: https://www.luislopez.es/
Author: Luis López – Informática para Oposiciones
Description: Tema de bloques ligero para luislopez.es. Sin dependencias: tipografías propias, colores de la marca y patrones para la portada. Pensado para usarse con el plugin «Luis López – Núcleo».
Requires at least: 6.5
Tested up to: 7.2
Requires PHP: 7.4
Version: 0.2.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luislopez
*/

/* Lo que theme.json no cubre. */
:where(.wp-site-blocks) :focus-visible { outline: 3px solid #2f6fd1; outline-offset: 2px; }
.skip-link.screen-reader-text:focus { background: #fff; color: #123256; padding: .75rem 1rem; z-index: 100000; }

/* Cabecera */
.ll-header { border-bottom: 1px solid var(--wp--preset--color--borde); background: var(--wp--preset--color--base); }
.ll-header .wp-block-site-logo img { height: auto; }
.ll-header .wp-block-navigation__submenu-container { border-radius: 10px; border-color: var(--wp--preset--color--borde) !important; box-shadow: 0 12px 28px rgba(18, 50, 86, .12); padding: .4rem 0; }
.ll-header .wp-block-navigation-item__content { padding: .35rem 0; }
.ll-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1rem; }
.ll-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }

/* Estilo de bloque «Fondo oscuro» (Grupo / Portada) */
.is-style-oscuro { background: var(--wp--preset--color--primario); color: #fff; }
.is-style-oscuro :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-oscuro a:where(:not(.wp-element-button)) { color: #fff; }
.is-style-oscuro .ll-eyebrow { color: var(--wp--preset--color--acento); }

/* Rótulo pequeño encima de los títulos */
.ll-eyebrow { margin: 0; font-size: .8rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secundario); }

/* Botón con borde (variación del núcleo) */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; color: var(--wp--preset--color--primario); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--superficie); }

/* Tarjetas de noticias */
.ll-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--borde); border-radius: var(--wp--custom--radio); overflow: hidden; height: 100%; }
.ll-card .wp-block-post-featured-image { margin: 0; }
.ll-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.ll-card .wp-block-post-title a:hover { text-decoration: underline; }

/* Tablas legibles en móvil */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border-color: var(--wp--preset--color--borde); padding: .6rem .8rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.ll-lista-limpia { list-style: none; padding-left: 0; }

/* Páginas interiores */
.ll-lead { font-size: var(--wp--preset--font-size--mediano); color: var(--wp--preset--color--secundario); }
.ll-aviso { padding: 1rem 1.25rem; border-radius: 12px; background: #fdf6e3; border-left: 4px solid var(--wp--preset--color--acento); }
.ll-aviso p { margin: 0; }
.ll-nota { padding: .9rem 1.1rem; border-radius: 10px; background: var(--wp--preset--color--superficie); font-size: .95rem; }
.ll-rejilla { gap: 1rem !important; }
.ll-tarjeta { padding: 1.4rem 1.5rem; border: 1px solid var(--wp--preset--color--borde); border-radius: var(--wp--custom--radio); background: var(--wp--preset--color--base); }
.ll-tarjeta > * + * { margin-top: .6rem; }
.ll-tarjeta h3 { margin: 0 0 .25rem; }
.ll-tarjeta p { margin-bottom: 0; font-size: .97rem; }
.ll-faq { border: 1px solid var(--wp--preset--color--borde); border-radius: 12px; padding: 0; background: var(--wp--preset--color--base); }
.ll-faq + .ll-faq, .ll-faq + p, p + .ll-faq { margin-top: .75rem; }
.ll-faq summary { cursor: pointer; padding: 1rem 1.25rem; font-family: var(--wp--preset--font-family--titulos); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ll-faq summary::-webkit-details-marker { display: none; }
.ll-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--primario); }
.ll-faq[open] summary::after { content: "−"; }
.ll-faq[open] summary { border-bottom: 1px solid var(--wp--preset--color--borde); }
.ll-faq > :not(summary) { margin-left: 1.25rem; margin-right: 1.25rem; }
.ll-faq > :last-child { margin-bottom: 1.25rem; }
.ll-cta { margin-top: var(--wp--preset--spacing--50) !important; padding: 2rem; border-radius: var(--wp--custom--radio); background: var(--wp--preset--color--primario); color: #fff; }
.ll-cta h3 { color: #fff; margin-top: 0; }
.ll-cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primario); }
.ll-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }

/* Tarjetas con icono (Metodología y otras páginas) */
.ll-tarjeta { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ll-ico::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 130px; height: 130px; background: var(--ll-ico-m) center / contain no-repeat; opacity: .06; transform: rotate(-12deg); pointer-events: none; transition: opacity .25s ease, transform .35s ease; }
.ll-tarjeta:hover.ll-ico::after { opacity: .1; transform: rotate(-4deg) scale(1.05); }
.ll-tarjeta > * { position: relative; z-index: 1; }
.ll-tarjeta:hover { transform: translateY(-3px); border-color: #c9d3e1; box-shadow: 0 14px 30px -18px rgba(18,50,86,.35); }
.ll-ico::before { content: ""; display: block; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 14px; background: var(--ll-ico) center / 1.55rem no-repeat, linear-gradient(140deg, #1d4a7a 0%, var(--wp--preset--color--primario) 60%, var(--wp--preset--color--primario-oscuro) 100%); box-shadow: 0 8px 18px -10px rgba(18,50,86,.7); transition: transform .25s ease; }
.ll-tarjeta:hover.ll-ico::before { transform: rotate(-6deg) scale(1.06); }
.ll-ico h3 { position: relative; padding-bottom: .55rem; margin-bottom: .6rem !important; }
.ll-ico h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--wp--preset--color--acento); transition: width .25s ease; }
.ll-tarjeta:hover.ll-ico h3::after { width: 4rem; }
.ll-ico-video { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13.5' height='12' rx='2.5'/%3E%3Cpath d='M16 10.2l5.5-3.2v10l-5.5-3.2z'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13.5' height='12' rx='2.5'/%3E%3Cpath d='M16 10.2l5.5-3.2v10l-5.5-3.2z'/%3E%3C/svg%3E"); }
.ll-ico-grabacion { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2.5'/%3E%3Cpath d='M10.2 8.3v4.4l3.8-2.2z'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2.5'/%3E%3Cpath d='M10.2 8.3v4.4l3.8-2.2z'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.ll-ico-simulacro { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4.5' width='14' height='16.5' rx='2.5'/%3E%3Cpath d='M9 4.5V3h6v1.5'/%3E%3Cpath d='M8.8 13.2l2.3 2.3 4.3-4.6'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4.5' width='14' height='16.5' rx='2.5'/%3E%3Cpath d='M9 4.5V3h6v1.5'/%3E%3Cpath d='M8.8 13.2l2.3 2.3 4.3-4.6'/%3E%3C/svg%3E"); }
.ll-ico-dudas { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 12a8.5 8.5 0 0 1-12.4 7.5L3.5 20.5l1.1-4.4A8.5 8.5 0 1 1 20.5 12z'/%3E%3Cpath d='M9.6 9.8a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5'/%3E%3Cpath d='M12 16.4h.01'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 12a8.5 8.5 0 0 1-12.4 7.5L3.5 20.5l1.1-4.4A8.5 8.5 0 1 1 20.5 12z'/%3E%3Cpath d='M9.6 9.8a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5'/%3E%3Cpath d='M12 16.4h.01'/%3E%3C/svg%3E"); }
.ll-ico-apuntes { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5h6a3.5 3.5 0 0 1 3.5 3.5V20a2.8 2.8 0 0 0-2.8-2.8H2.5z'/%3E%3Cpath d='M21.5 5h-6A3.5 3.5 0 0 0 12 8.5V20a2.8 2.8 0 0 1 2.8-2.8h6.7z'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5h6a3.5 3.5 0 0 1 3.5 3.5V20a2.8 2.8 0 0 0-2.8-2.8H2.5z'/%3E%3Cpath d='M21.5 5h-6A3.5 3.5 0 0 0 12 8.5V20a2.8 2.8 0 0 1 2.8-2.8h6.7z'/%3E%3C/svg%3E"); }
.ll-ico-docencia { --ll-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11.5v4.8c3.3 2.3 8.7 2.3 12 0v-4.8'/%3E%3Cpath d='M22 9.5v5.5'/%3E%3C/svg%3E"); --ll-ico-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123256' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11.5v4.8c3.3 2.3 8.7 2.3 12 0v-4.8'/%3E%3Cpath d='M22 9.5v5.5'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .ll-tarjeta:hover { transform: none; } }
/* Página de matrícula: entradilla discreta, el protagonista es el formulario */
.ll-intro { color: var(--wp--preset--color--secundario); font-size: 1rem; }

/* Formulario de matrícula: importe calculado, desglose y código de descuento.
   Mismo tamaño de letra que las descripciones de Gravity Forms. */
.gform_wrapper .llc-importe .ginput_container input[readonly] { width: 100% !important; max-width: 12rem; background: var(--wp--preset--color--superficie) !important; font-weight: 700; color: var(--wp--preset--color--primario) !important; cursor: default; -moz-appearance: textfield; appearance: textfield; }
.gform_wrapper .llc-importe input[readonly]::-webkit-outer-spin-button,
.gform_wrapper .llc-importe input[readonly]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gform_wrapper .llc-desglose { margin-top: .6rem; padding: .5rem .75rem; border-radius: 8px; background: var(--wp--preset--color--superficie); }
.gform_wrapper .llc-desglose:empty { display: none; }
.gform_wrapper .llc-desglose, .gform_wrapper .llc-desglose * { font-size: var(--gf-desc-font-size, 13px) !important; line-height: 1.45 !important; color: var(--wp--preset--color--secundario); }
.gform_wrapper .llc-desglose > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .2rem 0; border-bottom: 1px dashed var(--wp--preset--color--borde); }
.gform_wrapper .llc-desglose > div:last-child { border-bottom: 0; }
.gform_wrapper .llc-desglose > div > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gform_wrapper .llc-desglose .is-dto, .gform_wrapper .llc-desglose .is-dto * { color: #1d5e33; font-weight: 600; }
.gform_wrapper .llc-desglose > .is-total { border-top: 1px solid var(--wp--preset--color--borde); border-bottom: 0; margin-top: .15rem; padding-top: .35rem; }
.gform_wrapper .llc-desglose .is-total, .gform_wrapper .llc-desglose .is-total * { font-weight: 700; color: var(--wp--preset--color--primario); }
.gform_wrapper .llc-aviso-campo { margin-top: .4rem; font-size: var(--gf-desc-font-size, 13px) !important; font-weight: 600; color: #b32d2e; }
.gform_wrapper .llc-codigo-ok .llc-aviso-campo { color: #1d5e33; }

/* ==========================================================================
   Menú lateral (navegación de bloques en modo «siempre superpuesto»)
   ========================================================================== */
.ll-menu-lateral .wp-block-navigation__responsive-container-open { display: inline-flex !important; align-items: center; gap: .45rem; padding: .55rem .85rem; border: 1px solid var(--wp--preset--color--borde); border-radius: 10px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--primario); font-weight: 700; font-size: .95rem; cursor: pointer; transition: border-color .15s, background .15s; }
.ll-menu-lateral .wp-block-navigation__responsive-container-open::after { content: "Menú"; }
.ll-menu-lateral .wp-block-navigation__responsive-container-open:hover { border-color: var(--wp--preset--color--primario); background: var(--wp--preset--color--superficie); }
.ll-menu-lateral .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
@media (max-width: 420px) { .ll-menu-lateral .wp-block-navigation__responsive-container-open::after { content: none; } }

.ll-menu-lateral .wp-block-navigation__responsive-container.is-menu-open {
	left: auto !important; right: 0 !important; width: min(380px, 88vw); padding: 1.25rem 1.5rem 2rem !important;
	background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--texto) !important;
	box-shadow: -24px 0 60px -20px rgba(12, 35, 64, .45); border-left: 1px solid var(--wp--preset--color--borde);
	animation: ll-panel-entra .28s cubic-bezier(.2, .8, .2, 1) both !important; overflow-y: auto;
}
@keyframes ll-panel-entra { from { transform: translateX(100%); } to { transform: none; } }
html.has-modal-open body::after { content: ""; position: fixed; inset: 0; z-index: 99999; background: rgba(12, 35, 64, .45); backdrop-filter: blur(2px); animation: ll-velo .25s ease both; }
@keyframes ll-velo { from { opacity: 0; } to { opacity: 1; } }
.ll-menu-lateral .wp-block-navigation__responsive-container.is-menu-open { z-index: 100000; }
.ll-menu-lateral .is-menu-open .wp-block-navigation__responsive-container-close { top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--wp--preset--color--superficie); }
.ll-menu-lateral .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: stretch !important; gap: 0 !important; }
.ll-menu-lateral .is-menu-open .wp-block-navigation__responsive-container-content::before {
	content: ""; display: block; height: 3.25rem; margin: 0 3.25rem 1rem 0; padding-bottom: 1.25rem; box-sizing: content-box;
	background: var(--ll-logo, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' fill='none' stroke='%23123256' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='1.5' width='20' height='29' rx='10'/%3E%3Cpath d='M12 1.5v9'/%3E%3Crect x='10' y='5' width='4' height='6.5' rx='2' fill='%23fff'/%3E%3C/svg%3E")) left top / contain no-repeat; border-bottom: 1px solid var(--wp--preset--color--borde);
}
.ll-menu-lateral .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; }
.ll-menu-lateral .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--borde); }
.ll-menu-lateral .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { display: block; width: 100%; padding: .85rem .25rem !important; font-weight: 700; font-size: 1.05rem; color: var(--wp--preset--color--primario); }
.ll-menu-lateral .is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primario-oscuro); text-decoration: none; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-item:not(.wp-block-navigation-submenu) > .wp-block-navigation-item__content:hover::after { content: " →"; color: var(--wp--preset--color--acento); }
/* Submenús plegados: se abren y cierran al pulsar su entrada (assets/js/tema.js) */
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation__submenu-container { display: none !important; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu.ll-abierto > .wp-block-navigation__submenu-container { display: flex !important; animation: ll-despliega .2s ease both; }
@keyframes ll-despliega { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content { position: relative; cursor: pointer; padding-right: 2.5rem !important; text-align: left; background: none; border: 0; font-family: inherit; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content::after { content: ""; position: absolute; right: .6rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu.ll-abierto > .wp-block-navigation-item__content::after { transform: rotate(-135deg); margin-top: -.1rem; border-color: var(--wp--preset--color--acento); }
.ll-menu-lateral .is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .6rem .75rem !important; gap: 0 !important; border-left: 2px solid var(--wp--preset--color--acento) !important; margin: 0 0 .5rem .3rem !important; }
.ll-menu-lateral .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .4rem .25rem !important; font-size: .95rem; font-weight: 500; color: var(--wp--preset--color--texto); }
.ll-menu-lateral .is-menu-open .wp-block-navigation-submenu__toggle, .ll-menu-lateral .is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
/* «Aula virtual» al final del menú lateral, como botón */
.ll-menu-lateral .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item.ll-menu-aula { border-bottom: 0; margin-top: 1.25rem; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-item.ll-menu-aula > .wp-block-navigation-item__content { box-sizing: border-box; width: 100%; display: flex !important; justify-content: space-between; align-items: center; padding: .85rem 1.1rem !important; border-radius: 10px; background: var(--wp--preset--color--primario); color: #fff !important; }
.ll-menu-lateral .is-menu-open .wp-block-navigation-item.ll-menu-aula > .wp-block-navigation-item__content::after { content: "↗"; color: var(--wp--preset--color--acento); }
.ll-menu-lateral .is-menu-open .wp-block-navigation-item.ll-menu-aula > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--primario-oscuro); }
@media (prefers-reduced-motion: reduce) { .ll-menu-lateral .wp-block-navigation__responsive-container.is-menu-open, html.has-modal-open body::after { animation: none !important; } }

/* ==========================================================================
   Botón «volver arriba» (lo crea assets/js/tema.js)
   ========================================================================== */
.ll-arriba { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 3rem; height: 3rem; border: 0; border-radius: 50%; padding: 3px; cursor: pointer;
	background: conic-gradient(var(--wp--preset--color--acento) calc(var(--ll-p, 0) * 1%), rgba(18, 50, 86, .25) 0); box-shadow: 0 10px 24px -10px rgba(12, 35, 64, .6);
	opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.ll-arriba.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ll-arriba span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--wp--preset--color--primario); color: #fff; transition: background .15s; }
.ll-arriba:hover span { background: var(--wp--preset--color--primario-oscuro); }
.ll-arriba:focus-visible { outline: 3px solid var(--wp--preset--color--acento); outline-offset: 3px; }
.ll-arriba svg { width: 1.25rem; height: 1.25rem; }
@media print { .ll-arriba { display: none; } }

/* Sellos de pago en el pie */
footer .llp-sellos { margin-top: .75rem; justify-content: flex-end; font-size: .8rem; color: #c3cad4; }
@media (max-width: 781px) { footer .llp-sellos { justify-content: flex-start; } }

/* Secciones de ancho completo pegadas (sin la franja blanca entre fondos) */
.wp-block-post-content > .wp-block-group.alignfull + .wp-block-group.alignfull { margin-block-start: 0; }

/* ==========================================================================
   Portada: parallax suave con animaciones ligadas al desplazamiento
   (solo navegadores que las admiten y sin «reducir movimiento»)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.home .wp-block-post-content > .wp-block-group:first-child .wp-block-column:first-child { animation: ll-paralaje-texto linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
		.home .wp-block-post-content > .wp-block-group:first-child .llc-b-curso-destacado { animation: ll-paralaje-cartel linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
		.home .wp-block-post-content > .wp-block-group:not(:first-child) > * > * { animation: ll-aparece linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
		.home .wp-block-post-content > .wp-block-group:not(:first-child) .wp-block-column:nth-child(2) { animation: ll-aparece-2 linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		.home .wp-block-post-content > .wp-block-group.is-style-oscuro { background-image: radial-gradient(circle at 15% 20%, rgba(242, 181, 68, .12) 0, transparent 35%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .07) 0, transparent 40%); background-size: 100% 160%; animation: ll-fondo linear both; animation-timeline: view(); }
	}
}
@keyframes ll-paralaje-texto { to { transform: translateY(-40px); opacity: .55; } }
@keyframes ll-paralaje-cartel { to { transform: translateY(50px); } }
@keyframes ll-aparece { from { opacity: .25; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes ll-aparece-2 { from { opacity: .25; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes ll-fondo { from { background-position: 0 0; } to { background-position: 0 100%; } }

/* Gravity Forms con los colores del tema (tema «Orbital» de GF 2.7+) */
.gform-theme--framework {
	--gf-color-primary: #123256;
	--gf-color-primary-rgb: 18, 50, 86;
	--gf-color-primary-darker: #0c2340;
	--gf-color-primary-contrast: #fff;
	--gf-ctrl-border-color: #dadde3;
	--gf-ctrl-radius: 8px;
	--gf-ctrl-size: 46px;
	--gf-font-family-base: var(--wp--preset--font-family--texto);
	--gf-font-family-primary: var(--wp--preset--font-family--texto);
	--gf-font-family-secondary: var(--wp--preset--font-family--texto);
	--gf-ctrl-btn-radius: 8px;
	--gf-ctrl-btn-font-weight: 700;
}
.gform_wrapper { margin-top: 1.5rem; }
.gform_wrapper .gform_title { font-family: var(--wp--preset--font-family--titulos); }
