/*
Theme Name: GS1 Paraguay
Theme URI: https://demogs1.tecnium.net
Author: Tecnium
Author URI: https://tecnium.net
Description: Tema institucional para GS1 Paraguay. Portada con accesos rápidos, pasos para obtener códigos de barras, estándares, sectores, calculadora de dígito verificador, novedades y eventos. Incluye importador de contenido inicial (Apariencia → Contenido GS1) y opciones en Personalizar → Opciones GS1 Paraguay.
Version: 1.0.0
Requires at least: 6.3
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: gs1paraguay
Tags: custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--gs1-blue: #002c6c;
	--gs1-blue-900: #001a42;
	--gs1-blue-700: #0b3d84;
	--gs1-orange: #f26334;
	--gs1-orange-dark: #cd3c0d;
	--gs1-teal: #22bcb9;
	--gs1-teal-dark: #0d7f7c;
	--gs1-sky: #008dbd;
	--gs1-link: #00799e;

	--ink: #1d2433;
	--ink-soft: #4a5468;
	--muted: #6b7486;
	--line: #dce3ed;
	--line-soft: #e9eef5;
	--tint: #f0f5fa;
	--tint-2: #f7f9fc;
	--white: #fff;

	--font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

	--radius: 10px;
	--radius-lg: 18px;
	--shadow-sm: 0 1px 2px rgba(0, 28, 70, .06), 0 2px 8px rgba(0, 28, 70, .06);
	--shadow: 0 6px 24px rgba(0, 28, 70, .10);
	--shadow-lg: 0 18px 50px rgba(0, 28, 70, .16);

	--container: 1200px;
	--gutter: 16px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 130px; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--gs1-link); text-underline-offset: 3px; }
a:hover { color: var(--gs1-blue); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--gs1-blue);
	line-height: 1.2;
	margin: 0 0 .6em;
	font-weight: 600;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

:focus-visible {
	outline: 3px solid var(--gs1-orange);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 1000;
	background: var(--gs1-blue);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.narrow { max-width: calc(820px + var(--gutter) * 2); }

.gs1-icon { flex-shrink: 0; vertical-align: middle; }

/* ==========================================================================
   3. Botones y enlaces
   ========================================================================== */
.btn {
	--btn-bg: var(--gs1-orange-dark);
	--btn-fg: #fff;
	--btn-bd: var(--gs1-orange-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .78em 1.35em;
	border: 2px solid var(--btn-bd);
	border-radius: 8px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-head);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { --btn-bg: #b3330a; --btn-bd: #b3330a; color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(205, 60, 13, .25); }
.btn--secondary { --btn-bg: var(--gs1-blue); --btn-bd: var(--gs1-blue); }
.btn--secondary:hover { --btn-bg: var(--gs1-blue-900); --btn-bd: var(--gs1-blue-900); box-shadow: 0 6px 16px rgba(0, 44, 108, .25); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--gs1-blue); --btn-bd: var(--gs1-blue); }
.btn--outline:hover { --btn-bg: var(--gs1-blue); --btn-fg: #fff; --btn-bd: var(--gs1-blue); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .7); }
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--gs1-blue); --btn-bd: #fff; box-shadow: none; }
.btn--lg { font-size: 1rem; padding: .95em 1.6em; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gs1-blue);
	text-decoration: none;
}
.link-arrow .gs1-icon { color: var(--gs1-orange); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--gs1-orange-dark); }
.link-arrow:hover .gs1-icon { transform: translateX(4px); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--gs1-blue);
	cursor: pointer;
}
.icon-btn:hover { background: var(--tint); }

.tag {
	display: inline-block;
	padding: .2em .65em;
	border-radius: 999px;
	background: var(--tint);
	color: var(--gs1-blue);
	font-family: var(--font-head);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
}

/* ==========================================================================
   4. Cabecera
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 28, 70, .10); }
/* Con el menú móvil abierto, la cabecera (que contiene el panel) queda sobre el fondo oscuro. */
body.nav-open .site-header { z-index: 300; }

/* Barra superior */
.topbar {
	border-bottom: 1px solid var(--line-soft);
	font-size: .8rem;
	background: #fff;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
}
.topbar__tagline {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gs1-blue);
}
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar__menu a, .topbar__login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
}
.topbar__menu a:hover, .topbar__login:hover { color: var(--gs1-orange-dark); text-decoration: underline; }
.topbar__login { color: var(--gs1-blue); }
.topbar__search-toggle {
	display: inline-flex;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--gs1-blue);
	cursor: pointer;
	border-radius: 6px;
}
.topbar__search-toggle:hover { background: var(--tint); }

/* Barra principal */
.mainbar { border-bottom: 1px solid var(--line-soft); }
.mainbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}
.site-branding { flex-shrink: 0; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 56px; width: auto; }

.site-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	line-height: 1;
}
.site-logo-text__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	height: 44px;
	padding: 0 10px;
	border-radius: 50% / 46%;
	background: var(--gs1-orange);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -.02em;
}
.site-logo-text__name {
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--gs1-blue);
}

.mainbar__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}
.mainbar__cta { display: none; }

/* Navegación — móvil (panel lateral) */
.primary-nav {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 210;
	width: min(400px, 92vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--shadow-lg);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s var(--ease), visibility 0s linear .3s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.primary-nav.is-open {
	transform: none;
	visibility: visible;
	transition: transform .3s var(--ease), visibility 0s;
}
.primary-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px 12px 20px;
	border-bottom: 1px solid var(--line-soft);
}
.primary-nav__title { font-family: var(--font-head); font-weight: 700; color: var(--gs1-blue); }

.primary-nav .menu { list-style: none; margin: 0; padding: 8px 0; }
.primary-nav .menu > li { position: relative; border-bottom: 1px solid var(--line-soft); }
.primary-nav .menu > li > a {
	display: block;
	padding: 14px 56px 14px 20px;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gs1-blue);
	text-decoration: none;
}
.primary-nav .menu a:hover { color: var(--gs1-orange-dark); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a { color: var(--gs1-orange-dark); }

.submenu-toggle {
	position: absolute;
	top: 4px; right: 8px;
	width: 44px; height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--gs1-blue);
	cursor: pointer;
}
.submenu-toggle svg { transition: transform .2s; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.primary-nav .sub-menu,
.primary-nav .children {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
}
.primary-nav .is-open > .sub-menu,
.primary-nav .is-open > .children { display: block; }
.primary-nav .sub-menu a,
.primary-nav .children a {
	display: block;
	padding: 9px 20px 9px 32px;
	color: var(--ink-soft);
	text-decoration: none;
	font-size: .95rem;
}

.primary-nav__extra {
	display: grid;
	gap: 10px;
	padding: 20px;
	margin-top: auto;
}
.primary-nav__secondary { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.primary-nav__secondary a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 20, 50, .45);
	backdrop-filter: blur(2px);
}

/* Buscador desplegable */
.site-search {
	padding: 18px 0;
	background: var(--tint);
	border-bottom: 1px solid var(--line);
}
.search-form {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: center;
}
.search-form__icon {
	position: absolute;
	left: 14px;
	color: var(--muted);
	pointer-events: none;
}
.search-form__input {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 14px 0 44px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--ink);
}
.search-form__input:focus { border-color: var(--gs1-blue); outline: 2px solid rgba(0, 44, 108, .15); outline-offset: 0; }

@media (max-width: 767px) {
	.topbar { display: none; }
	:root { --header-h: 64px; }
	.custom-logo { max-height: 44px; }
	.site-logo-text__mark { min-width: 50px; height: 38px; font-size: 1.05rem; }
}
@media (min-width: 768px) {
	.mainbar__search { display: none; }
}

/* Navegación — escritorio */
@media (min-width: 1200px) {
	.mainbar__burger { display: none; }
	.mainbar__cta { display: inline-flex; }
	.mainbar__actions { margin-left: 0; }

	.primary-nav {
		position: static;
		inset: auto;
		width: auto;
		flex: 1;
		flex-direction: row;
		justify-content: flex-end;
		background: none;
		box-shadow: none;
		transform: none;
		visibility: visible;
		overflow: visible;
		transition: none;
	}
	.primary-nav__head, .primary-nav__extra { display: none; }

	.primary-nav .menu { display: flex; align-items: stretch; padding: 0; gap: 2px; }
	.primary-nav .menu > li { border: 0; display: flex; align-items: center; }
	.primary-nav .menu > li > a {
		position: relative;
		padding: 10px 12px;
		font-size: .93rem;
		line-height: 1.2;
		border-radius: 6px;
		white-space: nowrap;
	}
	.primary-nav .menu > li.menu-item-has-children > a,
	.primary-nav .menu > li.page_item_has_children > a { padding-right: 4px; }
	.primary-nav .menu > li > a::after {
		content: "";
		position: absolute;
		left: 12px; right: 12px; bottom: -17px;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: var(--gs1-orange);
		transform: scaleX(0);
		transition: transform .2s var(--ease);
	}
	.primary-nav .menu > li:hover > a::after,
	.primary-nav .menu > li.is-open > a::after,
	.primary-nav .menu > .current-menu-item > a::after,
	.primary-nav .menu > .current-menu-ancestor > a::after,
	.primary-nav .menu > .current_page_item > a::after,
	.primary-nav .menu > .current_page_ancestor > a::after { transform: none; }

	.submenu-toggle {
		position: static;
		width: 26px; height: 32px;
		border-radius: 6px;
	}
	.submenu-toggle:hover { background: var(--tint); }

	.primary-nav .sub-menu,
	.primary-nav .children {
		display: block;
		position: absolute;
		top: calc(100% + 18px);
		left: -8px;
		z-index: 50;
		min-width: 290px;
		padding: 10px;
		background: #fff;
		border: 1px solid var(--line-soft);
		border-top: 3px solid var(--gs1-orange);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s, transform .18s var(--ease), visibility 0s linear .18s;
	}
	.primary-nav .menu > li { position: relative; }
	/* Puente invisible para que el hover no se corte. */
	.primary-nav .menu > li.menu-item-has-children::before {
		content: "";
		position: absolute;
		left: 0; right: 0; top: 100%;
		height: 20px;
	}
	.primary-nav .menu > li:hover > .sub-menu,
	.primary-nav .menu > li:focus-within > .sub-menu,
	.primary-nav .menu > li.is-open > .sub-menu,
	.primary-nav .menu > li:hover > .children,
	.primary-nav .menu > li:focus-within > .children,
	.primary-nav .menu > li.is-open > .children {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s, transform .18s var(--ease), visibility 0s;
	}
	.primary-nav .sub-menu a,
	.primary-nav .children a {
		padding: 10px 14px;
		border-radius: 6px;
		color: var(--ink);
		font-size: .92rem;
	}
	.primary-nav .sub-menu a:hover,
	.primary-nav .children a:hover { background: var(--tint); color: var(--gs1-blue); }
	.primary-nav .sub-menu .current-menu-item > a { background: var(--tint); color: var(--gs1-orange-dark); }
	.primary-nav .sub-menu a[target="_blank"]::after {
		content: "↗";
		margin-left: 6px;
		color: var(--muted);
	}

	.nav-overlay { display: none !important; }
}
@media (min-width: 1200px) and (max-width: 1319px) {
	.primary-nav .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: .88rem; }
	.mainbar__cta { font-size: .85rem; padding: .7em 1em; }
	.mainbar__inner { gap: 16px; }
}

/* ==========================================================================
   5. Secciones genéricas
   ========================================================================== */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--tint); }
.section--blue { background: var(--gs1-blue); color: #dbe6f5; }
.section--blue .section-title, .section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-family: var(--font-head);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gs1-orange-dark);
}
.eyebrow::before {
	content: "";
	width: 28px; height: 3px;
	border-radius: 2px;
	background: currentColor;
}
.eyebrow--light { color: var(--gs1-orange); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .section-title { margin-bottom: .4em; }
.section-lead { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 40px;
}
.section-head-row .section-head { margin-bottom: 0; }

.card-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   6. Portada
   ========================================================================== */

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(34, 188, 185, .22), transparent 60%),
		radial-gradient(900px 600px at -10% 120%, rgba(0, 141, 189, .35), transparent 60%),
		linear-gradient(135deg, #00265e 0%, var(--gs1-blue) 45%, #003a87 100%);
	color: #dfe8f6;
}
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 6px;
	background: linear-gradient(90deg, var(--gs1-orange) 0 40%, var(--gs1-teal) 40% 70%, var(--gs1-sky) 70%);
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 40px;
	align-items: center;
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(104px, 12vw, 150px);
}
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.05fr .95fr; }
}
.hero__eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	font-family: var(--font-head);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
}
.hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.hero__text {
	max-width: 560px;
	margin: 0 0 32px;
	font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
	line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { max-width: 560px; justify-self: center; width: 100%; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-art__scan { animation: gs1-scan 3.2s ease-in-out infinite; }
@keyframes gs1-scan {
	0%, 100% { transform: translateY(-46px); opacity: .15; }
	50% { transform: translateY(58px); opacity: 1; }
}
@media (max-width: 959px) {
	.hero__art { max-width: 420px; }
}
@media (max-width: 599px) {
	.hero__art { display: none; }
}

.hero--photo .hero__bg { position: absolute; inset: 0; }
.hero--photo .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 30, 75, .92) 0%, rgba(0, 44, 108, .75) 45%, rgba(0, 44, 108, .15) 100%);
}
.hero--photo .hero__inner { grid-template-columns: minmax(0, 640px); min-height: 520px; }

/* Accesos rápidos */
.quick-links { position: relative; z-index: 2; margin-top: -72px; }
.quick-links__grid {
	display: grid;
	gap: 16px;
}
@media (min-width: 600px) { .quick-links__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .quick-links__grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
	display: flex;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: var(--ink-soft);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.quick-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(242, 99, 52, .5);
	color: var(--ink-soft);
}
.quick-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	flex-shrink: 0;
	border-radius: 12px;
	background: #fff1ec;
	color: var(--gs1-orange-dark);
	transition: background-color .25s, color .25s;
}
.quick-card:hover .quick-card__icon { background: var(--gs1-orange); color: #fff; }
.quick-card__title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gs1-blue);
	line-height: 1.3;
}
.quick-card__title .gs1-icon { color: var(--gs1-orange); transition: transform .2s var(--ease); }
.quick-card:hover .quick-card__title .gs1-icon { transform: translateX(3px); }
.quick-card__text { display: block; font-size: .9rem; line-height: 1.5; }

/* Introducción */
.intro__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .intro__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.intro__media img, .intro-art { width: 100%; border-radius: var(--radius-lg); }
.intro__content > p { color: var(--ink-soft); font-size: 1.05rem; }
.intro__list-title { margin-top: 1.4em; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .gs1-icon {
	margin-top: 2px;
	padding: 3px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: #e3f7f6;
	color: var(--gs1-teal-dark);
	stroke-width: 2.6;
}

/* Cifras */
.stats {
	background: var(--gs1-blue);
	background-image: linear-gradient(120deg, var(--gs1-blue) 0%, #003a87 100%);
	color: #cfdcef;
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px 24px;
	padding-top: 52px;
	padding-bottom: 52px;
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding-left: 18px; }
.stat::before {
	content: "";
	position: absolute;
	left: 0; top: 6px; bottom: 6px;
	width: 3px;
	border-radius: 2px;
	background: var(--gs1-orange);
}
.stat__num {
	margin: 0 0 4px;
	font-family: var(--font-head);
	font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem);
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	line-height: 1.1;
}
.stat__label { margin: 0; font-size: .92rem; line-height: 1.45; }

/* Pasos */
.steps__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 40px;
}
.steps__head .section-head { margin-bottom: 0; }
.steps__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
	counter-reset: step;
}
@media (min-width: 640px) { .steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps__list { grid-template-columns: repeat(4, 1fr); } }
.step {
	position: relative;
	padding: 28px 24px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.step::after {
	content: "";
	position: absolute;
	top: 52px; right: -21px;
	width: 22px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px);
}
.step:last-child::after { display: none; }
@media (max-width: 999px) { .step::after { display: none; } }
.step__num {
	position: absolute;
	top: 18px; right: 20px;
	font-family: var(--font-head);
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--line-soft);
}
.step__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--gs1-blue);
	color: #fff;
}
.step__title { margin-bottom: .4em; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.steps__help {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 28px 0 0;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--tint);
	color: var(--ink-soft);
	font-size: .93rem;
}
.steps__help .gs1-icon { color: var(--gs1-blue); margin-top: 2px; }

/* Tarjetas de soluciones */
.feature-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #fff;
	text-decoration: none;
	color: var(--ink-soft);
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-soft); border-color: var(--line); }
.feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: var(--tint);
	color: var(--gs1-blue);
	transition: background-color .25s, color .25s;
}
.feature-card:hover .feature-card__icon { background: var(--gs1-blue); color: #fff; }
.feature-card__title { margin-bottom: .45em; font-size: 1.15rem; }
.feature-card__text { flex: 1; margin-bottom: 18px; font-size: .95rem; }
.feature-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-head);
	font-size: .9rem;
	font-weight: 600;
	color: var(--gs1-orange-dark);
}
.feature-card__more .gs1-icon { transition: transform .2s var(--ease); }
.feature-card:hover .feature-card__more .gs1-icon { transform: translateX(4px); }

/* Sectores */
.sector-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
.sector-card {
	--accent: var(--gs1-sky);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 32px 28px;
	border-radius: var(--radius-lg);
	background: var(--gs1-blue);
	color: #cfdcef;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s;
}
.sector-card::before {
	content: "";
	position: absolute;
	right: -60px; top: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: var(--accent);
	opacity: .9;
	z-index: -1;
	transition: transform .4s var(--ease);
}
.sector-card::after {
	content: "";
	position: absolute;
	right: 150px; top: 22px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .18);
	z-index: -1;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.sector-card:hover::before { transform: scale(1.12); }
.sector-card--teal { --accent: var(--gs1-teal); }
.sector-card--orange { --accent: var(--gs1-orange); }
.sector-card__icon { color: #fff; margin-bottom: auto; padding-bottom: 40px; }
.sector-card__title { color: #fff; font-size: 1.3rem; margin-bottom: .4em; }
.sector-card p { margin: 0 0 18px; font-size: .95rem; }
.sector-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-head);
	font-weight: 600;
	color: #fff;
	font-size: .9rem;
}

/* Calculadora */
.calc-section {
	background:
		radial-gradient(700px 380px at 100% 0%, rgba(34, 188, 185, .18), transparent 60%),
		var(--gs1-blue);
}
.calc-section__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .calc-section__grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.calc-section p { font-size: 1.05rem; }

.gs1-calc {
	padding: 28px;
	border-radius: var(--radius-lg);
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-lg);
}
.entry-content .gs1-calc { border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 1.5em 0; }
.gs1-calc__form { display: grid; gap: 16px; align-items: end; }
@media (min-width: 600px) {
	.gs1-calc__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
	.gs1-calc__form .btn { grid-column: 1 / -1; justify-self: start; min-width: 180px; }
}
.gs1-calc__form .btn { height: 50px; }
.gs1-calc__result {
	margin-top: 20px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--tint);
	border-left: 4px solid var(--gs1-blue);
}
.gs1-calc__result.is-ok { border-left-color: var(--gs1-teal); background: #ebf9f8; }
.gs1-calc__result.is-error { border-left-color: var(--gs1-orange-dark); background: #fff1ec; }
.gs1-calc__label { margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; color: var(--gs1-blue); font-size: .95rem; }
.gs1-calc__number {
	margin: 0;
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
	letter-spacing: .12em;
	color: var(--ink);
	word-break: break-all;
}
.gs1-calc__number mark {
	margin-left: 2px;
	padding: 0 .2em;
	border-radius: 4px;
	background: var(--gs1-orange);
	color: #fff;
}
.gs1-calc__small { margin: 6px 0 0; font-size: .9rem; color: var(--ink-soft); }
.gs1-calc__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

/* Formularios */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--gs1-blue); }
.field__hint { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.field select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002c6c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	border-color: var(--gs1-blue);
	box-shadow: 0 0 0 3px rgba(0, 44, 108, .12);
	outline: none;
}
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gs1-blue); flex-shrink: 0; }
.field--check label { font-family: var(--font-body); font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.form-grid { display: grid; gap: 18px; margin-bottom: 24px; }
@media (min-width: 640px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.field--full { grid-column: 1 / -1; }
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form {
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--tint-2);
}

/* Novedades */
.post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s;
	position: relative;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--gs1-blue);
	background:
		radial-gradient(circle at 80% 20%, rgba(242, 99, 52, .22) 0 18%, transparent 19%),
		radial-gradient(circle at 15% 85%, rgba(34, 188, 185, .25) 0 22%, transparent 23%),
		var(--tint);
}
.post-card__placeholder .gs1-icon { width: 64px; height: 64px; opacity: .8; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: .82rem;
	color: var(--muted);
}
.post-card__title { font-size: 1.12rem; line-height: 1.35; margin-bottom: .5em; }
.post-card__title a { color: var(--gs1-blue); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--gs1-orange-dark); }
.post-card__excerpt { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* Eventos */
.events__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .events__grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } }
.event-list { display: grid; gap: 14px; }
.event-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.event-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--line); }
.date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px; height: 68px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--gs1-blue);
	color: #fff;
	font-family: var(--font-head);
	line-height: 1;
}
.date-badge__day { font-size: 1.6rem; font-weight: 700; }
.date-badge__month { margin-top: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #ffb79f; }
.event-card__body { flex: 1; min-width: 0; }
.event-card__title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; }
.event-card__title a { color: var(--gs1-blue); text-decoration: none; }
.event-card__title a::after { content: ""; position: absolute; inset: 0; }
.event-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: .85rem; color: var(--muted); }
.event-card__meta > span:not(.tag) { display: inline-flex; align-items: center; gap: 5px; }
.event-card__go { color: var(--gs1-orange); }
.event-list--past .date-badge { background: var(--muted); }
.event-list--past .date-badge__month { color: #e5e7eb; }

.notice-box {
	padding: 18px 22px;
	border-radius: var(--radius);
	background: #fff;
	border: 1px dashed var(--line);
	color: var(--ink-soft);
}
.notice-box p:last-child { margin: 0; }
.notice-box--ok { border: 1px solid #a7e3e1; background: #ebf9f8; color: #0b5c5a; margin-bottom: 20px; }
.notice-box--error { border: 1px solid #f6c0ad; background: #fff1ec; color: #8a2a08; margin-bottom: 20px; }

/* Franja CTA */
.cta-band {
	background:
		radial-gradient(600px 300px at 0% 100%, rgba(242, 99, 52, .25), transparent 60%),
		linear-gradient(120deg, #00265e, var(--gs1-blue));
	color: #cfdcef;
}
.cta-band__inner {
	display: grid;
	gap: 24px;
	align-items: center;
	padding-top: 56px;
	padding-bottom: 56px;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band__title { color: #fff; margin-bottom: .35em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   7. Páginas internas
   ========================================================================== */
.page-hero {
	position: relative;
	padding: 36px 0 44px;
	background:
		radial-gradient(800px 300px at 100% 0%, rgba(34, 188, 185, .18), transparent 60%),
		linear-gradient(120deg, #00265e, var(--gs1-blue) 60%, #003a87);
	color: #cfdcef;
	overflow: hidden;
}
.page-hero::after {
	content: "";
	position: absolute;
	right: -40px; bottom: -120px;
	width: 300px; height: 300px;
	border-radius: 50%;
	border: 40px solid rgba(242, 99, 52, .18);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { color: #fff; margin: 0; max-width: 900px; text-wrap: balance; }
.page-hero__lead { max-width: 760px; margin: 14px 0 0; font-size: 1.1rem; }
.page-hero__meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: .9rem; }
.page-hero__meta .tag { background: rgba(255, 255, 255, .12); color: #fff; }

.breadcrumbs { margin-bottom: 18px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .4); margin-right: 2px; }
.breadcrumbs a { color: #cfdcef; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

.page-layout {
	display: grid;
	gap: 40px;
	padding-top: clamp(36px, 5vw, 60px);
	padding-bottom: clamp(56px, 7vw, 96px);
}
.page-layout--single .page-layout__main { max-width: 860px; }
@media (min-width: 960px) {
	.page-layout--sidebar { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
	.page-layout--right { grid-template-columns: minmax(0, 1fr) 320px; }
	.page-layout__aside { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
	.admin-bar .page-layout__aside { top: calc(var(--header-h) + 92px); }
}
@media (max-width: 959px) {
	.page-layout--sidebar:not(.page-layout--right) .page-layout__aside { order: 2; }
}
.page-layout__aside { display: grid; gap: 20px; align-content: start; }
.page-layout__main { min-width: 0; }

.subnav {
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}
.subnav__title { margin: 0; }
.subnav__title a {
	display: block;
	padding: 16px 20px;
	background: var(--tint);
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--gs1-blue);
	text-decoration: none;
	border-bottom: 1px solid var(--line-soft);
}
.subnav ul { list-style: none; margin: 0; padding: 8px; }
.subnav li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--ink);
	text-decoration: none;
	font-size: .95rem;
	line-height: 1.35;
}
.subnav li a .gs1-icon { color: var(--line); transition: color .2s, transform .2s; }
.subnav li a:hover { background: var(--tint); color: var(--gs1-blue); }
.subnav li a:hover .gs1-icon { color: var(--gs1-orange); transform: translateX(2px); }
.subnav a[aria-current] { background: #fff1ec; color: var(--gs1-orange-dark); font-weight: 600; }
.subnav li a[aria-current] .gs1-icon { color: var(--gs1-orange); }

.help-card {
	padding: 22px;
	border-radius: var(--radius);
	background: var(--gs1-blue);
	color: #cfdcef;
	font-size: .93rem;
}
.help-card__title { margin: 0 0 6px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #fff; }
.help-card .contact-list a, .help-card .contact-list span { color: #fff; }
.help-card .contact-list .gs1-icon { color: var(--gs1-orange); }
.help-card .btn { margin-top: 6px; }

.contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.contact-list .gs1-icon { margin-top: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Contenido editorial */
.entry-content { font-size: 1.04rem; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 1.7em; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content .is-style-lead,
.entry-content > p:first-child:not([class]) {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--gs1-blue);
}
.entry-content ul:not([class*="link-cards"]) li,
.entry-content ol li { margin-bottom: .45em; }
.entry-content ul.wp-block-list { padding-left: 0; list-style: none; }
.entry-content ul.wp-block-list > li { position: relative; padding-left: 28px; }
.entry-content ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	left: 4px; top: .62em;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--gs1-orange);
}
.entry-content blockquote {
	margin-left: 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--gs1-orange);
	color: var(--gs1-blue);
	font-size: 1.15rem;
}
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--tint); color: var(--gs1-blue); font-family: var(--font-head); }
.entry-content .wp-block-button__link { border-radius: 8px; background: var(--gs1-orange-dark); font-family: var(--font-head); font-weight: 600; }
.entry-content .btn { text-decoration: none; }
.entry-content .alignwide { margin-left: 0; margin-right: 0; }
.entry__thumb { margin: 0 0 28px; }
.entry__thumb img { width: 100%; border-radius: var(--radius-lg); }

/* Preguntas frecuentes (bloque Detalles) */
.entry-content .wp-block-details {
	margin-bottom: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}
.entry-content .wp-block-details summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gs1-blue);
	cursor: pointer;
	list-style: none;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 20px; top: 50%;
	transform: translateY(-50%);
	width: 28px; height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--tint);
	color: var(--gs1-blue);
	font-size: 1.2rem;
	line-height: 1;
}
.entry-content .wp-block-details[open] summary::after { content: "−"; background: var(--gs1-orange); color: #fff; }
.entry-content .wp-block-details[open] summary { border-bottom: 1px solid var(--line-soft); }
.entry-content .wp-block-details > :not(summary) { padding: 0 22px; margin: 16px 0; color: var(--ink-soft); }

/* Tarjetas de subpáginas */
.link-cards { display: grid; gap: 16px; margin: 2em 0; }
@media (min-width: 640px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
.link-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	text-decoration: none;
	color: var(--ink-soft);
	transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink-soft); }
.link-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: var(--tint);
	color: var(--gs1-blue);
}
.link-card__title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; color: var(--gs1-blue); }
.link-card__text { font-size: .93rem; line-height: 1.5; }
.link-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--gs1-orange-dark); }

/* Navegación de entradas y paginación */
.entry-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.post-navigation a:hover { border-color: var(--gs1-blue); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.nav-title { font-family: var(--font-head); font-weight: 600; color: var(--gs1-blue); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--gs1-blue);
	text-decoration: none;
	font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gs1-blue); border-color: var(--gs1-blue); color: #fff; }

.list-title { font-size: 1.3rem; margin: 0 0 18px; }
.list-title:not(:first-child) { margin-top: 48px; }

/* Búsqueda */
.search-again { margin-bottom: 32px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result__type { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gs1-orange-dark); }
.search-result__title { font-size: 1.2rem; margin-bottom: .3em; }
.search-result__title a { text-decoration: none; color: var(--gs1-blue); }
.search-result p:last-child { margin: 0; color: var(--ink-soft); }

/* 404 */
.error-404 { text-align: center; }
.error-404__code {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(5rem, 3rem + 10vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--tint);
	-webkit-text-stroke: 2px var(--gs1-blue);
}
.error-404 .search-form { max-width: 560px; margin: 28px auto; }

/* Widgets y comentarios */
.widget { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.widget-title { font-size: 1rem; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { border: 0; }
.comments-area { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.comment-form .submit { padding: .78em 1.35em; border: 0; border-radius: 8px; background: var(--gs1-orange-dark); color: #fff; font-family: var(--font-head); font-weight: 600; cursor: pointer; }

/* ==========================================================================
   8. Pie de página
   ========================================================================== */
.site-footer { background: var(--gs1-blue-900); color: #a9b9d3; font-size: .93rem; }
.site-footer__grid {
	display: grid;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 48px;
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.site-footer__logo { display: inline-block; margin-bottom: 18px; padding: 10px 14px; border-radius: 10px; background: #fff; }
.site-footer__logo .custom-logo { max-height: 48px; }
.site-footer__brand > p { max-width: 380px; }
.site-footer__title {
	margin: 0 0 16px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6e0f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list--light .gs1-icon { color: var(--gs1-orange); }

.social-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background-color .2s;
}
.social-links a:hover { background: var(--gs1-orange); text-decoration: none; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* WhatsApp flotante */
.wa-float {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px; height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
body.nav-open .wa-float { display: none; }

/* ==========================================================================
   9. Clases de WordPress
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.sticky .post-card__title::before { content: "★ "; color: var(--gs1-orange); }
.bypostauthor { display: block; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .cta-band, .wa-float, .page-layout__aside { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0; }
	.page-hero__title { color: #000; }
}
