/*
Theme Name: Gustavo Lorenzo — Editorial
Theme URI: https://gustavolorenzo.es/
Author: OpenAI
Description: Tema editorial ligero y adaptable para recursos clínicos, novedades y formación en neurología infantil.
Version: 1.4.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glorenzo
Tags: blog, education, grid-layout, news, one-column, two-columns, custom-logo, custom-menu, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

:root {
  --gl-ink: #142c40;
  --gl-ink-soft: #42586a;
  --gl-heading-color: #142c40;
  --gl-body-color: #344d60;
  --gl-muted: #6b7d8b;
  --gl-paper: #ffffff;
  --gl-bg: #f5f8fa;
  --gl-line: #e2e9ee;
  --gl-blue: #245d89;
  --gl-blue-dark: #183f60;
  --gl-teal: #2b827e;
  --gl-teal-soft: #e8f4f2;
  --gl-topic-neuro-color: #2b827e;
  --gl-topic-neuro-background: #e8f4f2;
  --gl-topic-neuro-text: #244c49;
  --gl-topic-muscular-color: #245d89;
  --gl-topic-muscular-background: #edf3f9;
  --gl-topic-muscular-text: #233f5c;
  --gl-sand: #f2eee7;
  --gl-radius: 18px;
  --gl-radius-sm: 11px;
  --gl-shadow: 0 18px 50px rgba(20, 44, 64, .07);
  --gl-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-family: "Manrope", "DM Sans", "Segoe UI", Arial, sans-serif; color: var(--gl-heading-color); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--gl-footer-background);
  color: var(--gl-body-color);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--gl-blue); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--gl-teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #8bcac5; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: #d7eeeb; color: var(--gl-ink); }

.gl-skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); background: var(--gl-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.gl-skip-link:focus { transform: translateY(0); color: #fff; }
.gl-container { width: min(var(--gl-width), calc(100% - 48px)); margin-inline: auto; }
.gl-narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.gl-eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--gl-teal); font-size: 1rem; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.gl-eyebrow::before { content: ""; width: 25px; height: 2px; background: currentColor; }
.gl-section { padding-block: clamp(58px, 8vw, 98px); }
.gl-section--soft { background: var(--gl-bg); }
.gl-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.gl-section-heading h2 { margin: 0; max-width: 680px; font-size: clamp(1.85rem, 3.4vw, 2.8rem); line-height: 1.14; letter-spacing: -.045em; font-weight: 650; }
.gl-section-heading p { max-width: 400px; margin: 0; color: var(--gl-muted); }
.gl-text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gl-text-link span { transition: transform .18s ease; }
.gl-text-link:hover span { transform: translateX(4px); }

/* Main content stays on a white surface; the page background matches the footer so there is no contrasting strip below it. */
#contenido { background: var(--gl-paper); }

/* Header */
.gl-header { position: sticky; top: 0; z-index: 100; background: var(--gl-header-background); border-bottom: 1px solid var(--gl-header-border); backdrop-filter: blur(14px); }
.gl-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.gl-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: inherit; text-decoration: none; }
.gl-brand:hover { color: inherit; }
.gl-header .gl-brand, .gl-header .gl-brand:hover { color: var(--gl-header-brand); }
.gl-footer .gl-brand, .gl-footer .gl-brand:hover { color: var(--gl-footer-links); }
.gl-brand .custom-logo-link { display: inline-flex; align-items: center; }
.gl-brand .custom-logo { display: block; width: auto; max-width: 220px; max-height: 54px; }
.gl-brand-mark { display: block; flex: 0 0 auto; width: auto; height: 44px; object-fit: contain; }
.gl-brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gl-brand-name { font-size: 1.2rem; font-weight: 760; letter-spacing: -.025em; }
.gl-brand-tagline { margin-top: 4px; color: var(--gl-muted); font-size: 1rem; font-weight: 500; }
.gl-footer .gl-brand-name { font-size: 1rem; }

.gl-header .gl-brand-tagline { color: var(--gl-header-tagline); }
.gl-footer .gl-brand-tagline { color: var(--gl-footer-text); }
.gl-nav { display: flex; align-items: center; gap: 7px; }
.gl-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gl-nav li { margin: 0; }
.gl-nav a { display: inline-flex; align-items: center; padding: 10px 13px; border-radius: 9px; color: var(--gl-menu-text); font-size: 1rem; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease; }
.gl-nav a:hover { background: var(--gl-menu-hover-background); color: var(--gl-menu-hover-text); }
.gl-nav .current-menu-item > a, .gl-nav .current_page_item > a, .gl-nav .current-menu-ancestor > a, .gl-nav .current_page_ancestor > a { background: var(--gl-menu-active-background); color: var(--gl-menu-active-text); box-shadow: none; }
.gl-nav .current-menu-item > a:hover, .gl-nav .current_page_item > a:hover, .gl-nav .current-menu-ancestor > a:hover, .gl-nav .current_page_ancestor > a:hover { background: var(--gl-menu-active-background); color: var(--gl-menu-active-text); }
.gl-menu-toggle { display: none; width: 44px; height: 44px; place-items: center; background: transparent; color: var(--gl-header-brand); border: 1px solid var(--gl-header-border); border-radius: 11px; }
.gl-menu-toggle svg { width: 21px; height: 21px; }

/* Hero */
.gl-hero { position: relative; overflow: hidden; padding-block: clamp(62px, 9vw, 112px); background: var(--gl-bg); }
.gl-hero::before { position: absolute; top: -230px; right: -160px; width: 620px; height: 620px; content: ""; border: 1px solid rgba(43,130,126,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(43,130,126,.025), 0 0 0 88px rgba(43,130,126,.022), 0 0 0 140px rgba(43,130,126,.018); pointer-events: none; }
.gl-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
.gl-hero h1 { max-width: 750px; margin: 20px 0 22px; font-size: clamp(2.65rem, 5.6vw, 5rem); font-weight: 660; letter-spacing: -.065em; line-height: .99; }
.gl-hero h1 em { color: var(--gl-teal); font-style: normal; }
.gl-hero-lead { max-width: 590px; margin: 0; color: var(--gl-body-color); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.8; }
.gl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.gl-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--gl-blue); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.gl-button:hover { transform: translateY(-1px); background: var(--gl-blue-dark); color: #fff; }
.gl-button--secondary { border-color: #d6e0e6; background: #fff; color: var(--gl-ink); }
.gl-button--secondary:hover { border-color: #bdcfda; background: #fff; color: var(--gl-blue); }
.gl-button svg { width: 17px; height: 17px; }

.gl-hero-note { margin-top: 24px; color: var(--gl-muted); font-size: 1rem; }
.gl-hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.gl-hero-art::before { position: absolute; width: min(100%, 380px); aspect-ratio: 1; border-radius: 48% 52% 54% 46% / 42% 46% 54% 58%; background: #e5f0f1; content: ""; transform: rotate(-8deg); }
.gl-art-card { position: relative; z-index: 1; width: min(100%, 330px); padding: 28px; border: 1px solid rgba(255,255,255,.92); border-radius: 22px; background: rgba(255,255,255,.87); box-shadow: var(--gl-shadow); backdrop-filter: blur(12px); }
.gl-art-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; color: var(--gl-muted); font-size: 1rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.gl-art-orb { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 24px; background: var(--gl-teal-soft); color: var(--gl-teal); }
.gl-art-orb svg { width: 43px; height: 43px; stroke-width: 1.45; }
.gl-art-card h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.18; }
.gl-art-card p { margin: 10px 0 0; color: var(--gl-muted); font-size: 1rem; }
.gl-art-line { height: 7px; margin-top: 12px; border-radius: 10px; background: #e8eef1; }
.gl-art-line:nth-of-type(1) { width: 91%; margin-top: 22px; }
.gl-art-line:nth-of-type(2) { width: 72%; }
.gl-art-sticker { position: absolute; z-index: 2; right: -4px; bottom: 28px; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid var(--gl-line); border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(20,44,64,.08); font-size: 1rem; font-weight: 700; }
.gl-sticker-dot { width: 9px; height: 9px; border-radius: 50%; background: #68b1a8; box-shadow: 0 0 0 5px #e8f4f2; }

/* Category cards */
.gl-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Compact access cards on the Cursos index: no empty space reserved for a description. */
.gl-topic-grid--courses .gl-topic-card { min-height: 0; }
.gl-topic-grid--courses .gl-topic-card h2 { margin-top: 20px; }
.gl-topic-grid--courses .gl-topic-meta { margin-top: 14px; padding-top: 0; }
.gl-topic-card { --gl-topic-accent: var(--gl-teal); --gl-topic-surface: var(--gl-teal-soft); position: relative; display: flex; min-height: 245px; flex-direction: column; padding: clamp(24px, 3vw, 34px); overflow: hidden; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); background: var(--gl-topic-surface, #fff); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.gl-topic-card::before { position: absolute; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 0 0 6px 6px; background: var(--gl-topic-accent); content: ""; }
.gl-topic-card--neurodevelopment { --gl-topic-accent: var(--gl-topic-neuro-color); --gl-topic-surface: var(--gl-topic-neuro-background); --gl-topic-text: var(--gl-topic-neuro-text); }
.gl-topic-card--muscular { --gl-topic-accent: var(--gl-topic-muscular-color); --gl-topic-surface: var(--gl-topic-muscular-background); --gl-topic-text: var(--gl-topic-muscular-text); }
.gl-topic-card:hover { transform: translateY(-4px); border-color: var(--gl-topic-accent); box-shadow: var(--gl-shadow); }
.gl-topic-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.gl-topic-icon { display: grid; place-items: center; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 24px; background: rgba(255,255,255,.76); color: var(--gl-topic-accent, var(--gl-teal)); }
.gl-topic-icon--blue { background: rgba(255,255,255,.76); color: var(--gl-topic-accent, var(--gl-blue)); }
.gl-topic-icon svg, .gl-topic-icon .gl-topic-icon-image { display: block; width: 75px; height: 75px; object-fit: contain; }
.gl-topic-icon svg { stroke-width: 2.4; }
.gl-topic-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gl-line); border-radius: 50%; color: var(--gl-ink-soft); transition: transform .2s ease, background .2s ease; }
.gl-topic-card:hover .gl-topic-arrow { transform: translate(2px,-2px); background: var(--gl-bg); }
.gl-topic-card h3 { margin: 27px 0 8px; color: var(--gl-topic-text, var(--gl-heading-color)); font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.035em; line-height: 1.2; }
.gl-topic-card p { max-width: 460px; margin: 0; color: var(--gl-topic-text, var(--gl-muted)); }
.gl-topic-meta { margin-top: auto; padding-top: 20px; color: var(--gl-topic-accent, var(--gl-blue)); font-size: 1rem; font-weight: 700; }

/* Posts */
.gl-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gl-post-card { --gl-card-background: #fff; --gl-card-text: var(--gl-body-color); --gl-card-accent: var(--gl-blue); display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); background: var(--gl-card-background); transition: transform .2s ease, box-shadow .2s ease; }
.gl-post-card--neurodevelopment { --gl-card-background: var(--gl-topic-neuro-background); --gl-card-text: var(--gl-topic-neuro-text); --gl-card-accent: var(--gl-topic-neuro-color); }
.gl-post-card--muscular { --gl-card-background: var(--gl-topic-muscular-background); --gl-card-text: var(--gl-topic-muscular-text); --gl-card-accent: var(--gl-topic-muscular-color); }
.gl-post-card:hover { transform: translateY(-3px); box-shadow: var(--gl-shadow); }
.gl-post-card-link, .gl-post-card-link:hover { display: flex; flex: 1; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; background: var(--gl-card-background, #fff); }
.gl-post-card-link:focus-visible { outline: 3px solid #8bcac5; outline-offset: -4px; }
.gl-post-thumb { display: block; overflow: hidden; aspect-ratio: 1.65 / 1; background: linear-gradient(135deg, #e8f2f2, #f2f5f7); }
.gl-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gl-post-card:hover .gl-post-thumb img { transform: scale(1.035); }
.gl-post-card--triptych .gl-post-card-link { flex-direction: row; align-items: stretch; }
.gl-post-thumb--triptych { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; width: 124px; aspect-ratio: auto; padding: 18px 0 18px 18px; background: var(--gl-card-background, #fff); }
.gl-post-thumb--triptych img { width: 100%; max-width: none; height: auto; object-fit: contain; border: 1px solid var(--gl-line); border-radius: 6px; background: var(--gl-paper); box-shadow: 0 6px 16px rgba(20,44,64,.12); }
.gl-post-card--triptych .gl-post-body { min-width: 0; }
.gl-post-body { display: flex; flex: 1; flex-direction: column; padding: 23px; background: var(--gl-card-background, #fff); color: var(--gl-card-text, var(--gl-body-color)); }
.gl-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 13px; color: var(--gl-muted); font-size: 1rem; }
.gl-post-category { color: var(--gl-card-accent, var(--gl-teal)); font-weight: 750; }
.gl-post-body h3 { margin: 0 0 10px; color: var(--gl-card-text, var(--gl-heading-color)); font-size: 1.18rem; line-height: 1.35; letter-spacing: -.025em; }
.gl-post-card-link:hover .gl-post-body h3 { color: var(--gl-blue); }
.gl-post-excerpt { margin: 0; color: var(--gl-card-text, var(--gl-muted)); font-size: 1rem; line-height: 1.7; }
.gl-post-read { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 20px; color: var(--gl-card-accent, var(--gl-blue)); font-size: 1rem; font-weight: 750; }
.gl-empty-state { padding: 32px; border: 1px dashed #cbd8e0; border-radius: var(--gl-radius); background: #fff; color: var(--gl-muted); }

/* Intro strip */
.gl-about { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: clamp(36px, 7vw, 100px); }
.gl-about-side { padding: 26px; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); background: #fff; }
.gl-about-monogram { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px; background: var(--gl-ink); color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: -.06em; }
.gl-about-side strong { display: block; font-size: 1rem; }
.gl-about-side p { margin: 5px 0 0; color: var(--gl-muted); font-size: 1rem; }
.gl-about-copy h2 { margin: 12px 0 18px; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.045em; }
.gl-about-copy p { color: var(--gl-body-color); }
.gl-about-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 25px; }
.gl-fact { padding: 16px; border-radius: 12px; background: var(--gl-bg); }
.gl-fact strong { display: block; font-size: 1rem; }
.gl-fact span { display: block; margin-top: 3px; color: var(--gl-muted); font-size: 1rem; }

/* Homepage: concise, editorial layout */
.gl-home-hero { padding-block: clamp(54px, 8vw, 94px); background: var(--gl-bg); border-bottom: 1px solid var(--gl-line); }
.gl-home-hero h1 { max-width: 900px; margin: 0 0 18px; font-size: clamp(2.3rem, 5.4vw, 4.5rem); letter-spacing: -.06em; line-height: 1.06; }
.gl-home-hero p { max-width: 760px; margin: 0; color: var(--gl-body-color); font-size: clamp(1.03rem, 1.7vw, 1.18rem); line-height: 1.8; }
.gl-news-list { border-top: 1px solid var(--gl-line); }
.gl-news-row { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: start; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--gl-line); }
.gl-news-date { padding-top: 4px; color: var(--gl-muted); font-size: 1rem; }
.gl-news-body h3 { margin: 0 0 8px; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.35; letter-spacing: -.03em; }
.gl-news-body h3 a { color: var(--gl-heading-color); text-decoration: none; }
.gl-news-body h3 a:hover { color: var(--gl-blue); }
.gl-news-content { margin-top: 10px; color: var(--gl-body-color); font-size: 1rem; line-height: 1.75; }
.gl-news-content > *:first-child { margin-top: 0; }
.gl-news-content > *:last-child { margin-bottom: 0; }
.gl-news-content p, .gl-news-content li { max-width: 100%; margin-block: 0 1em; color: var(--gl-body-color); font-size: 1rem; line-height: 1.75; }
.gl-news-content img, .gl-news-content video, .gl-news-content iframe { max-width: 100%; height: auto; }
.gl-news-content .alignwide, .gl-news-content .alignfull { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
.gl-news-read { padding-top: 3px; color: var(--gl-blue); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gl-news-read:hover { color: var(--gl-teal); }
.gl-home-empty { padding: 26px 0; color: var(--gl-muted); }

/* Use each topic's accent on its archive and individual posts. */
body.gl-area-neurodevelopment .gl-page-hero { background: var(--gl-topic-neuro-background); border-bottom-color: var(--gl-topic-neuro-color); }
body.gl-area-neurodevelopment .gl-page-hero .gl-eyebrow, body.gl-area-neurodevelopment .gl-post-category { color: var(--gl-topic-neuro-color); }
body.gl-area-neurodevelopment .gl-page-hero h1, body.gl-area-neurodevelopment .gl-entry-header h1, body.gl-area-neurodevelopment .gl-content h2, body.gl-area-neurodevelopment .gl-content h3, body.gl-area-neurodevelopment .gl-content h4 { color: var(--gl-topic-neuro-text); }
body.gl-area-neurodevelopment .gl-content, body.gl-area-neurodevelopment .gl-content p, body.gl-area-neurodevelopment .gl-content li, body.gl-area-neurodevelopment .gl-entry-deck, body.gl-area-neurodevelopment .gl-post-excerpt { color: var(--gl-topic-neuro-text); }
body.gl-area-muscular .gl-page-hero { background: var(--gl-topic-muscular-background); border-bottom-color: var(--gl-topic-muscular-color); }
body.gl-area-muscular .gl-page-hero .gl-eyebrow, body.gl-area-muscular .gl-post-category { color: var(--gl-topic-muscular-color); }
body.gl-area-muscular .gl-page-hero h1, body.gl-area-muscular .gl-entry-header h1, body.gl-area-muscular .gl-content h2, body.gl-area-muscular .gl-content h3, body.gl-area-muscular .gl-content h4 { color: var(--gl-topic-muscular-text); }
body.gl-area-muscular .gl-content, body.gl-area-muscular .gl-content p, body.gl-area-muscular .gl-content li, body.gl-area-muscular .gl-entry-deck, body.gl-area-muscular .gl-post-excerpt { color: var(--gl-topic-muscular-text); }

/* Conference entries (template-parts/content-conference.php). The importer writes, per session:
   section.gl-mesa > h2.gl-mesa-title + ul.gl-talk-list > li > a.gl-talk (or div.gl-talk--unavailable when there is no PDF)
   with span.gl-talk-title, span.gl-talk-authors and span.gl-talk-action inside. */
:root { --gl-area-color: var(--gl-teal); --gl-area-background: var(--gl-teal-soft); --gl-area-text: var(--gl-heading-color); }
body.gl-area-neurodevelopment { --gl-area-color: var(--gl-topic-neuro-color); --gl-area-background: var(--gl-topic-neuro-background); --gl-area-text: var(--gl-topic-neuro-text); }
body.gl-area-muscular { --gl-area-color: var(--gl-topic-muscular-color); --gl-area-background: var(--gl-topic-muscular-background); --gl-area-text: var(--gl-topic-muscular-text); }
.gl-conference-heading { min-width: 0; }
.gl-conference-heading .gl-post-meta { margin-bottom: 14px; }
.gl-conference-heading .gl-entry-deck { margin-top: 14px; }
.gl-conference-body .gl-triptych { margin: 0 0 2.4rem; }
.gl-conference-body .gl-triptych-link { display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid var(--gl-line); border-radius: 13px; background: var(--gl-paper); color: var(--gl-area-text); font-weight: 650; text-decoration: none; box-shadow: 0 5px 18px rgba(20,44,64,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
.gl-conference-body .gl-triptych-link img { display: block; width: 64px; height: auto; margin: 0; border: 1px solid var(--gl-line); border-radius: 6px; }
.gl-conference-body .gl-triptych-link:hover { transform: translateY(-2px); border-color: var(--gl-area-color); background: var(--gl-area-background); color: var(--gl-area-text); box-shadow: 0 12px 28px rgba(20,44,64,.075); }
.gl-conference-body .gl-triptych-link:focus-visible { outline: 3px solid var(--gl-area-color); outline-offset: 3px; }
.gl-conference-body .gl-mesa { margin: 0 0 2.4rem; }
.gl-conference-body .gl-mesa:last-child { margin-bottom: 0; }
.gl-conference-body .gl-mesa-title { margin: 0 0 14px; padding: 12px 18px; border-left: 4px solid var(--gl-area-color); border-radius: 10px; background: var(--gl-area-background); color: var(--gl-area-text); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; }
.gl-conference-body .gl-talk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gl-conference-body .gl-talk-list > li { display: flex; min-width: 0; margin: 0; padding: 0; }
.gl-conference-body .gl-talk { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--gl-line); border-radius: 13px; background: var(--gl-paper); color: var(--gl-area-text); line-height: 1.5; text-decoration: none; box-shadow: 0 5px 18px rgba(20,44,64,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
.gl-conference-body .gl-talk-title { font-weight: 650; }
.gl-conference-body .gl-talk-authors { color: var(--gl-muted); }
.gl-conference-body .gl-talk-action { align-self: flex-end; margin-top: auto; padding: 6px 10px; border-radius: 8px; background: var(--gl-area-color); color: #fff; font-weight: 650; white-space: nowrap; }
.gl-conference-body a.gl-talk:hover { transform: translateY(-2px); border-color: var(--gl-area-color); background: var(--gl-area-background); color: var(--gl-area-text); box-shadow: 0 12px 28px rgba(20,44,64,.075); }
.gl-conference-body a.gl-talk:focus-visible { outline: 3px solid var(--gl-area-color); outline-offset: 3px; }
.gl-conference-body .gl-talk--unavailable { background: var(--gl-bg); box-shadow: none; }
.gl-conference-footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--gl-line); }
.gl-conference-footer a { color: var(--gl-area-color); font-weight: 650; text-decoration: none; }
.gl-conference-footer a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .gl-conference-body .gl-talk { padding: 14px; }
}


/* Page and archive headings */
/* Keep the space above page titles, while reducing the gap below them by about 25%. */
.gl-page-hero { padding-top: clamp(48px, 7vw, 78px); padding-bottom: clamp(36px, 5.25vw, 58px); background: var(--gl-bg); border-bottom: 1px solid var(--gl-line); }
.gl-page-hero h1 { margin: 0; font-size: clamp(2.25rem, 4.8vw, 3.8rem); line-height: 1.02; letter-spacing: -.055em; }
.gl-page-hero p { max-width: 740px; margin: 17px 0 0; color: var(--gl-muted); font-size: 1.05rem; }
.gl-archive-description { max-width: 740px; margin-top: 17px; color: var(--gl-muted); font-size: 1.05rem; line-height: 1.75; }
.gl-archive-description > :first-child { margin-top: 0; }
.gl-archive-description > :last-child { margin-bottom: 0; }
/* Reduce the top spacing before page/category content by about 25%; retain bottom spacing. */
.gl-content-section { padding: clamp(31.5px, 4.5vw, 57px) 0 clamp(42px, 6vw, 76px); }
.gl-content { width: 100%; max-width: none; min-width: 0; color: var(--gl-body-color); overflow-wrap: anywhere; }
.gl-content > *:first-child { margin-top: 0; }
.gl-entry-layout { width: min(var(--gl-width), calc(100% - 48px)); margin-inline: auto; }
.gl-entry-layout .gl-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 100%; }
.gl-content h2, .gl-content h3, .gl-content h4 { margin-top: 1.8em; color: var(--gl-heading-color); line-height: 1.25; letter-spacing: -.03em; }
.gl-content h2 { font-size: clamp(1.65rem,3vw,2.25rem); }
.gl-content h3 { font-size: 1.45rem; }
.gl-content p, .gl-content li { color: var(--gl-body-color); line-height: 1.85; }
.gl-content img { border-radius: 12px; }
.gl-content figure { margin-inline: 0; }
.gl-content blockquote { margin: 2em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--gl-teal); color: var(--gl-body-color); font-size: 1.1rem; }
.gl-content table { width: 100%; border-collapse: collapse; }
.gl-content th, .gl-content td { padding: 10px 12px; border: 1px solid var(--gl-line); text-align: left; }
.gl-content pre { max-width: 100%; overflow: auto; padding: 18px; border-radius: 12px; background: var(--gl-bg); }
.gl-content iframe { max-width: 100%; }
.gl-content .wp-block-button__link { border-radius: 9px; background: var(--gl-blue); }
.gl-content .alignwide { width: min(1160px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gl-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gl-featured-image { margin: 0 0 32px; overflow: hidden; border-radius: var(--gl-radius); background: var(--gl-bg); }
.gl-featured-image img { display: block; width: 100%; height: auto; }
.gl-entry-header { margin-bottom: 32px; }
.gl-entry-header h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.gl-entry-deck { margin: 0; color: var(--gl-muted); font-size: 1.08rem; }
.gl-entry-footer { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--gl-line); }
.gl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-tags a { padding: 6px 11px; border-radius: 8px; background: var(--gl-bg); color: var(--gl-ink-soft); font-size: 1rem; text-decoration: none; }
.gl-pagination { display: block; width: 100%; max-width: 100%; margin-top: 42px; }
.gl-pagination .nav-links { display: flex; width: 100%; max-width: 100%; align-items: center; justify-content: center; flex-direction: row; flex-wrap: wrap; gap: 7px; }
.gl-pagination .page-numbers { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--gl-line); border-radius: 10px; color: var(--gl-ink); line-height: 1.2; text-decoration: none; white-space: nowrap; }
.gl-pagination .current, .gl-pagination .page-numbers:hover { border-color: var(--gl-blue); background: var(--gl-blue); color: #fff; }

/* Keep all Contacto/page content inside one centered wrapper matching the header grid.
   The outer article is full-width; the inner wrapper controls the usable content width. */
.gl-page-content { width: 100%; max-width: none; min-width: 0; }
.gl-page-inner.gl-container { width: min(var(--gl-width), calc(100% - 48px)); margin-inline: auto; min-width: 0; }
.gl-page-body { width: 100%; min-width: 0; }
/* The Contacto editor content sometimes starts with a default block margin; remove the extra gap. */
body.gl-page-contact .gl-page-body > :first-child { margin-block-start: 0 !important; }
.gl-page-body > p, .gl-page-body > h2, .gl-page-body > h3, .gl-page-body > h4,
.gl-page-body > ul, .gl-page-body > ol, .gl-page-body > blockquote { max-width: 800px; }
.gl-page-content .alignwide, .gl-page-content .alignfull { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
.gl-page-body > .wp-block-columns, .gl-page-body > .wp-block-group, .gl-page-body > .wp-block-cover { width: 100%; max-width: 100%; }
.gl-page-content .wp-block-image img { height: auto; }

/* Search */
.gl-search-form { display: flex; gap: 9px; max-width: 560px; margin-top: 24px; }
.gl-search-form input[type="search"] { min-width: 0; flex: 1; padding: 12px 15px; border: 1px solid #d4dfe6; border-radius: 10px; background: #fff; color: var(--gl-ink); }
.gl-search-form button { padding: 12px 18px; border: 0; border-radius: 10px; background: var(--gl-blue); color: #fff; font-weight: 700; }

/* Footer */
.gl-footer { padding-block: 43px 26px; border-top: 1px solid var(--gl-footer-border); background: var(--gl-footer-background); }
.gl-footer-main { display: flex; justify-content: space-between; gap: 32px; align-items: start; }
.gl-footer-copy { max-width: 440px; }
.gl-footer-copy p { margin: 13px 0 0; color: var(--gl-footer-text); font-size: 1rem; }
.gl-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; padding: 0; margin: 4px 0 0; list-style: none; }
.gl-footer-nav a { color: var(--gl-footer-links); font-size: 1rem; text-decoration: none; }
.gl-footer-nav a:hover { color: var(--gl-blue); }
.gl-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--gl-footer-border); color: var(--gl-footer-text); font-size: 1rem; }
.gl-footer-bottom p { margin: 0; }
.gl-footer-bottom a { color: inherit; }

.gl-not-found { padding-block: 75px; text-align: center; }
.gl-not-found h1 { margin: 16px 0; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.06em; line-height: 1; }
.gl-not-found p { color: var(--gl-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .gl-nav a { padding-inline: 9px; font-size: 1rem; }
  .gl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 35px; }
  .gl-hero-art { min-height: 320px; }
  .gl-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gl-news-row { grid-template-columns: 120px minmax(0,1fr); gap: 18px; }
  .gl-news-read { grid-column: 2; padding-top: 0; }
  .gl-post-card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .gl-container, .gl-narrow { width: min(100% - 42px, var(--gl-width)); }
  .gl-page-inner.gl-container { width: min(100% - 42px, var(--gl-width)); }
  .gl-header-inner { min-height: 74px; }
  .gl-brand-mark { height: 40px; }
  .gl-brand-tagline { font-size: 1rem; }
  .gl-brand .custom-logo { max-width: 185px; max-height: 46px; }
  .gl-menu-toggle { display: grid; flex: 0 0 44px; }
  .gl-nav { position: absolute; top: calc(100% - 1px); right: 0; left: 0; display: none; padding: 10px 18px 19px; border-bottom: 1px solid var(--gl-header-border); background: var(--gl-header-background); box-shadow: 0 16px 25px rgba(20,44,64,.06); }
  .gl-nav.is-open { display: block; }
  .gl-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .gl-nav a { width: 100%; padding: 12px 14px; font-size: 1rem; }
  .gl-hero { padding-block: 58px 48px; }
  .gl-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .gl-hero h1 { max-width: 610px; font-size: clamp(2.65rem, 11vw, 4.2rem); }
  .gl-hero-art { min-height: 300px; }
  .gl-hero-art::before { width: min(88%, 330px); }
  .gl-art-card { width: min(88%, 300px); padding: 23px; }
  .gl-art-sticker { right: 0; bottom: 14px; }
  .gl-section-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 25px; }
  .gl-topic-grid { grid-template-columns: 1fr; }
  .gl-topic-card { min-height: 220px; }
  .gl-about { grid-template-columns: 1fr; gap: 26px; }
  .gl-about-side { max-width: none; }
  .gl-footer-main { flex-direction: column; }
  .gl-footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .gl-container, .gl-narrow { width: calc(100% - 44px); }
  .gl-page-inner.gl-container { width: calc(100% - 44px); }
  .gl-brand-name { font-size: 1rem; }
  .gl-brand-tagline { max-width: 200px; font-size: 1rem; }
  .gl-hero h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .gl-hero-actions { align-items: stretch; flex-direction: column; }
  .gl-button { width: 100%; }
  .gl-post-grid { grid-template-columns: 1fr; }
  .gl-news-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .gl-news-read { grid-column: 1; }
  .gl-home-hero h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .gl-post-card:last-child:nth-child(odd) { grid-column: auto; }
  .gl-pagination .nav-links { gap: 6px; }
  .gl-pagination .page-numbers { min-width: 38px; min-height: 40px; padding-inline: 8px; }
  .gl-post-body { padding: 20px; }
  .gl-about-facts { grid-template-columns: 1fr; }
  .gl-page-hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .gl-search-form { flex-direction: column; }
  .gl-search-form button { min-height: 46px; }
  .gl-footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Global legibility floor: visible body text never drops below 1rem (16px). */
small, figcaption, .wp-caption-text, .gallery-caption, .wp-block-image figcaption,
.has-small-font-size { font-size: 1rem !important; }
