/* Yaku Help — estilos del sitio. Sin frameworks: variables, un layout y componentes. */

@font-face { font-family: Montserrat; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Raleway; font-weight: 100 900; font-display: swap; src: url(../fonts/raleway-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Raleway; font-weight: 100 900; font-display: swap; src: url(../fonts/raleway-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--navy: #032968;
	--navy-2: #0a3b8c;
	--night: #010522;
	--cyan: #00c2ef;
	--cyan-ink: #00669c;
	--ink: #1d2433;
	--muted: #5b6475;
	--line: #e3e8f1;
	--soft: #f3f6fb;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(3, 41, 104, .06), 0 8px 24px rgba(3, 41, 104, .08);
	--heading: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: Raleway, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1140px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 400 17px/1.7 var(--body); font-variant-numeric: lining-nums; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--cyan-ink); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { display: block; width: auto; height: 44px; }
.brand-name { font: 700 22px var(--heading); color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 500 15px/1.3 var(--heading); padding: 10px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav .is-current > a { color: var(--cyan-ink); }
.site-nav .is-current > a { background: rgba(0, 194, 239, .1); }
.site-nav li { position: relative; }
.has-children { display: flex; align-items: center; }
.has-children > a { padding-right: 4px; }
.submenu-toggle { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; font-size: 12px; }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s linear .25s; }
/* Puente invisible sobre el hueco entre el enlace y el submenú: el mouse lo cruza sin cerrarlo. */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.submenu .icon { color: var(--cyan); width: 18px; }
.has-children:hover > .submenu, .has-children:focus-within > .submenu, .has-children.is-open > .submenu { visibility: visible; opacity: 1; transition-delay: 0s; }
.lang-switch { display: flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang-switch a { padding: 6px 8px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.lang-switch a.is-active { color: var(--white); background: var(--navy); }
.menu-toggle { display: none; border: 0; background: none; font-size: 22px; color: var(--ink); padding: 8px; cursor: pointer; }
.menu-toggle .icon-close { display: none; }
@media (max-width: 1080px) {
	.menu-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow: auto; }
	.nav-open .site-nav { display: block; }
	.nav-open .menu-toggle .icon-open { display: none; }
	.nav-open .menu-toggle .icon-close { display: block; }
	.site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
	.site-nav a { padding: 12px 8px; font-size: 16px; }
	.has-children { flex-wrap: wrap; }
	.has-children > a { flex: 1; }
	.submenu-toggle { width: 44px; height: 44px; }
	.submenu { position: static; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 12px; visibility: visible; opacity: 1; transition: none; }
	.submenu::before { display: none; }
	.has-children:hover > .submenu, .has-children:focus-within > .submenu { display: none; }
	.has-children.is-open > .submenu { display: block; }
	.lang-switch { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Cabecera de cada vista */
.hero { background: var(--navy); color: var(--white); padding: clamp(32px, 6vw, 64px) 0 clamp(32px, 5vw, 56px); }
.hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 16px; }
.hero-text { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 720px; margin: 14px 0 0; }
.hero-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--cyan); font-size: 28px; flex: none; }
.hero-home { text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.hero-home h1 { justify-content: center; font-weight: 700; }
.hero-home .hero-text { margin-inline: auto; }
.hero-home .search-form, .hero-search .search-form { margin: 32px auto 0; }
.hero-search { text-align: center; }
.hero-search h1 { justify-content: center; }
.hero-article h1 { font-size: clamp(26px, 3.4vw, 38px); max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); }

/* Buscador con sugerencias */
.search-form { position: relative; display: flex; max-width: 760px; background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); text-align: left; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; font: 500 17px var(--body); color: var(--ink); padding: 18px 20px; border-radius: 12px 0 0 12px; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.search-form button { border: 0; background: var(--cyan); color: var(--navy); font-size: 20px; padding: 0 22px; border-radius: 0 12px 12px 0; cursor: pointer; }
.search-form button:hover { background: #33d2f5; }
.search-suggestions { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search-suggestions a, .search-suggestions .empty { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.search-suggestions a:hover, .search-suggestions a.is-active { background: var(--soft); color: var(--cyan-ink); }
.search-suggestions .empty { color: var(--muted); font-weight: 400; }

/* Secciones y tarjetas */
.section { padding: clamp(32px, 5vw, 56px) 0; }
.section-white { background: var(--white); }
.section-title { font: 600 14px var(--heading); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.section-title:not(:first-child) { margin-top: 40px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 20px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--ink); }
.card-icon { width: 64px; height: 64px; fill: var(--cyan); margin-bottom: 6px; }
.card-title { font: 600 21px/1.25 var(--heading); }
.card-meta { color: var(--muted); font-size: 14px; }

/* Listas de artículos */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-row { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .15s ease; }
.post-row:hover { border-color: var(--cyan); color: var(--ink); }
.post-row-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.post-row-title { font: 600 19px/1.35 var(--heading); }
.post-row:hover .post-row-title { color: var(--cyan-ink); }
.post-row-excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.post-row-arrow { color: var(--line); font-size: 18px; }
.post-row:hover .post-row-arrow { color: var(--cyan); }
.step { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 16px var(--heading); }
.chip { justify-self: start; font: 600 12px var(--heading); background: rgba(3, 41, 104, .08); color: var(--navy); padding: 3px 10px; border-radius: 99px; }
.empty { background: var(--white); padding: 24px; border-radius: var(--radius); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--white); text-decoration: none; }
.nav-links .current { background: var(--navy); color: var(--white); }

/* Artículo */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 40px; } }
.article { min-width: 0; max-width: 780px; }
.article-aside { position: sticky; top: 96px; }
.admin-bar .article-aside { top: 128px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--soft); }
.aside-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 16px var(--heading); }
.aside-title .icon { color: var(--cyan); font-size: 20px; }
.aside-title a { color: var(--ink); text-decoration: none; }
.aside-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.45; }
.aside-list li { display: flex; gap: 10px; align-items: baseline; }
.aside-list a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; flex: 1; }
.aside-list a:hover { background: var(--white); color: var(--cyan-ink); }
.aside-list .is-current a { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--cyan); }
.aside-list .step { width: 24px; height: 24px; font-size: 12px; margin-top: 4px; }
.aside-list li:not(.is-current) .step { background: var(--line); color: var(--muted); }
.aside-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; padding: 4px 10px; }
@media (max-width: 960px) { .article-aside { position: static; } }

.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-pager a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.article-pager a:hover { border-color: var(--cyan); }
.pager-next { grid-column: 2; text-align: right; }
.pager-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pager-next .pager-label { justify-content: flex-end; }
.pager-title { font: 600 16px/1.35 var(--heading); color: var(--cyan-ink); }
@media (max-width: 560px) { .article-pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

/* Contenido escrito en el editor de bloques */
.entry-content { font-size: 17.5px; line-height: 1.8; color: #2a3140; overflow-wrap: anywhere; }
.entry-content > * { margin: 0 0 1.25em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(3, 41, 104, .06); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote { margin-inline: 0; padding: 16px 20px; border-left: 4px solid var(--cyan); background: var(--soft); border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content code { background: var(--soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content .wp-block-image { margin-block: 1.5em; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; }

/* Ayuda y pie de página */
.help-cta { background: var(--white); border-top: 1px solid var(--line); text-align: center; padding: 48px 0; }
.help-cta h2 { font-size: 24px; margin-bottom: 8px; }
.help-cta p { color: var(--muted); margin: 0; }
.button { display: inline-block; margin-top: 20px; background: var(--navy); color: var(--white); padding: 12px 24px; border-radius: 10px; text-decoration: none; font: 600 15px var(--heading); }
.button:hover { background: var(--navy-2); color: var(--white); }

.site-footer { background: var(--night); color: rgba(255, 255, 255, .85); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list li { display: flex; align-items: center; gap: 8px; }
.footer-list .icon { color: var(--cyan); }
.footer-links .icon { font-size: 10px; }
.app-badges { display: grid; gap: 12px; justify-items: start; }
.app-badges img { display: block; height: auto; width: 138px; }
.app-badges .badge-play { width: 160px; margin: -8px 0 -8px -10px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 20px; }
.social a:hover { background: var(--cyan); color: var(--night); }
.footer-credit { text-align: center; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.footer-credit a { color: var(--white); font-weight: 600; }

/* Paso dentro de una guía ordenada */
.step-of { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 99px; background: var(--cyan); color: var(--navy); font: 700 13px/1.8 var(--heading); text-decoration: none; }
.step-of:hover { color: var(--navy); background: #66dcf7; }

/* Visor de imágenes */
.entry-content img.is-zoomable { cursor: zoom-in; }
.zoom-hint { display: none; }
@media (hover: none) { .entry-content .zoom-hint { display: flex; } }
.entry-content .zoom-hint { align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 8px 12px; }
.zoom-hint::before { content: "⤢"; font-size: 16px; color: var(--cyan-ink); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(1, 5, 34, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(1, 5, 34, .96); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.lightbox-count { margin-right: auto; font-size: 14px; color: rgba(255, 255, 255, .75); }
.lightbox-bar button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: var(--white); font: 400 26px/1 var(--body); cursor: pointer; }
.lightbox-bar button:hover { background: rgba(255, 255, 255, .22); }
.lightbox-stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 8px 8px max(16px, env(safe-area-inset-bottom)); overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: var(--white); cursor: zoom-in; }
.lightbox-stage.is-zoomed { place-items: start; }
.lightbox-stage.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }

/* Móvil: más espacio útil para el texto y las capturas */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.entry-content { font-size: 16.5px; line-height: 1.75; }
	.entry-content h2 { font-size: 22px; }
	.entry-content h3 { font-size: 19px; }
	.entry-content figure.wp-block-image, .entry-content > p > img { margin-inline: calc(-1 * var(--gutter)); }
	.entry-content figure.wp-block-image img { border-radius: 0; border-inline: 0; box-shadow: none; width: 100%; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.hero { padding: 28px 0 32px; }
	.hero-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
	.hero-text { font-size: 16px; }
	.breadcrumbs ol { font-size: 13px; }
	.breadcrumbs a { display: inline-block; padding: 6px 0; }
	.post-row { padding: 18px 16px; gap: 14px; }
	.post-row-title { font-size: 17px; }
	.post-row-arrow { display: none; }
	.step { width: 34px; height: 34px; font-size: 15px; }
	.card { padding: 24px 16px; }
	.card-icon { width: 52px; height: 52px; }
	.footer-list { gap: 4px; }
	.footer-list li { min-height: 40px; }
	.article-pager { margin-top: 36px; }
}

/* Quien pidió menos movimiento en su sistema no ve animaciones. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
	.card:hover { transform: none; }
}

/* Áreas táctiles de al menos 24 px de alto (WCAG 2.2, 2.5.8) para enlaces de texto. */
.footer-list a, .aside-title a, .footer-credit a, .breadcrumbs a { display: inline-block; padding-block: 4px; }
