/* ==========================================================================
   Orbintia — hoja de estilos principal
   Estructura:
     1. Tipografías locales
     2. Tokens
     3. Base y utilidades
     4. Cabecera y navegación
     5. Hero
     6. Secciones y componentes
     7. Formularios
     8. Pie y botón "arriba"
     9. Responsive
    10. Accesibilidad e impresión
   ========================================================================== */

/* 1. Tipografías locales ------------------------------------------------- */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
}

/* 2. Tokens -------------------------------------------------------------- */

:root {
	color-scheme: light;

	/* Paleta heredada del diseño anterior. */
	--o-brand: #404044;
	--o-brand-strong: #2b2b2e;
	--o-text: #333336;
	--o-muted: #66666c;
	--o-line: #e2e2e5;
	--o-bg: #ffffff;
	--o-bg-alt: #f9f9f9;
	--o-bg-header: #f8f8f8;
	--o-inverted: #ffffff;
	--o-focus: #1b5fbe;
	/* Sobre fondo oscuro el azul no alcanza 3:1 (WCAG 1.4.11). */
	--o-focus-inverted: #ffffff;

	--o-font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--o-font-title: "Montserrat", var(--o-font-body);

	--o-header-h: 88px;
	--o-container: 1200px;
	--o-narrow: 780px;
	--o-radius: 2px;
	--o-gap: 30px;
	--o-section-y: clamp(56px, 8vw, 90px);
	--o-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 6%);
	--o-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Base y utilidades --------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--o-header-h) + 16px);
}

body {
	/* Columna flexible: mantiene el pie abajo en páginas cortas
	   (aviso legal, 404, tecnología). */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	background: var(--o-bg);
	color: var(--o-text);
	font-family: var(--o-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.o-main {
	flex: 1 0 auto;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--o-brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--o-brand-strong);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--o-focus);
	outline-offset: 2px;
	border-radius: var(--o-radius);
}

:is(.o-hero, .o-section--dark) :where(a, button, [tabindex]):focus-visible {
	outline-color: var(--o-focus-inverted);
}

h1, h2, h3, h4 {
	font-family: var(--o-font-title);
	font-weight: 700;
	line-height: 1.25;
	color: var(--o-brand);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

.o-container {
	width: 100%;
	max-width: var(--o-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 30px);
}

.o-container--narrow {
	max-width: var(--o-narrow);
}

.o-list-reset {
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-sr,
.o-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.o-skip {
	position: absolute;
	inset-inline-start: 16px;
	top: -100px;
	z-index: 200;
	padding: 12px 20px;
	background: var(--o-brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.15s var(--o-ease);
}

.o-skip:focus {
	top: 12px;
	color: #fff;
}

.o-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

/* Botones */

.o-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.85em 1.6em;
	border: 1px solid var(--o-brand);
	border-radius: var(--o-radius);
	background: var(--o-brand);
	color: #fff;
	font-family: var(--o-font-title);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--o-ease), color 0.2s var(--o-ease), border-color 0.2s var(--o-ease);
}

.o-btn:hover {
	background: var(--o-brand-strong);
	border-color: var(--o-brand-strong);
	color: #fff;
}

.o-btn--ghost {
	background: transparent;
	color: var(--o-brand);
}

.o-btn--ghost:hover {
	background: var(--o-brand);
	color: #fff;
}

.o-btn--light {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.o-btn--light:hover {
	background: #fff;
	border-color: #fff;
	color: var(--o-brand);
}

.o-btn .o-icon {
	width: 1.15em;
	height: 1.15em;
}

.o-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

/* 4. Cabecera y navegación ---------------------------------------------- */

.o-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--o-bg-header);
	border-bottom: 1px solid var(--o-line);
}

.o-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--o-header-h);
}

.o-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.o-logo img,
.custom-logo {
	width: auto;
	max-height: 46px;
}

.o-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 30px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-nav__list a {
	display: block;
	padding: 6px 0;
	color: var(--o-brand);
	font-family: var(--o-font-title);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s var(--o-ease), color 0.2s var(--o-ease);
}

.o-nav__list a:hover,
.o-nav__list .current-menu-item > a,
.o-nav__list .is-current > a {
	border-bottom-color: var(--o-brand);
}

/* Submenús */

.o-nav__list .sub-menu {
	position: absolute;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--o-line);
	box-shadow: var(--o-shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s var(--o-ease);
}

.o-nav__list > li {
	position: relative;
}

.o-nav__list > li:hover > .sub-menu,
.o-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.o-nav__list .sub-menu a {
	padding: 8px 18px;
	border-bottom: 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
}

.o-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	background: #fff;
	color: var(--o-brand);
	font-size: 1.5rem;
	cursor: pointer;
}

.o-burger__close {
	display: none;
}

.o-burger[aria-expanded="true"] .o-burger__open {
	display: none;
}

.o-burger[aria-expanded="true"] .o-burger__close {
	display: inline-flex;
}

/* 5. Hero ---------------------------------------------------------------- */

.o-hero {
	position: relative;
	background: var(--o-brand-strong);
	color: #fff;
	overflow: hidden;
}

.o-hero__viewport {
	position: relative;
	display: grid;
	min-height: clamp(420px, 68vh, 640px);
}

.o-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s var(--o-ease);
}

.o-hero__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.o-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Oscurecido para garantizar contraste AA del texto sobre foto. */
	filter: brightness(0.42) saturate(0.85);
}

.o-hero__body {
	position: relative;
	padding-block: clamp(64px, 10vw, 110px);
	max-width: 760px;
}

.o-hero__num {
	font-family: var(--o-font-title);
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
	color: rgb(255 255 255 / 22%);
	margin: 0 0 0.15em;
}

.o-hero__tag {
	font-family: var(--o-font-title);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 0.8em;
}

.o-hero__title {
	font-size: clamp(1.75rem, 4.6vw, 2.75rem);
	color: #fff;
	margin-bottom: 0.5em;
}

.o-hero__text {
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	font-weight: 300;
	max-width: 46ch;
	color: #fff;
}

.o-hero__cta {
	margin-top: 1.6em;
}

.o-hero__controls {
	position: absolute;
	inset-inline: 0;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.o-hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 50%;
	background: rgb(0 0 0 / 25%);
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background-color 0.2s var(--o-ease);
}

.o-hero__arrow:hover {
	background: rgb(0 0 0 / 55%);
}

.o-hero__arrow:first-of-type .o-icon {
	transform: rotate(180deg);
}

.o-hero__dots {
	display: flex;
	gap: 10px;
	margin-inline-end: auto;
}

.o-hero__dot {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.o-hero__dot span {
	display: block;
	width: 100%;
	height: 3px;
	background: rgb(255 255 255 / 45%);
	transition: background-color 0.2s var(--o-ease);
}

.o-hero__dot.is-active span,
.o-hero__dot:hover span {
	background: #fff;
}

.o-hero__pause {
	padding: 6px 14px;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: var(--o-radius);
	background: rgb(0 0 0 / 25%);
	color: #fff;
	font-family: var(--o-font-title);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

/* 6. Secciones y componentes -------------------------------------------- */

.o-section {
	padding-block: var(--o-section-y);
}

.o-section--alt {
	background: var(--o-bg-alt);
}

.o-section--dark {
	background: var(--o-brand);
	color: #fff;
}

.o-section--dark h1,
.o-section--dark h2,
.o-section--dark h3 {
	color: #fff;
}

/* El fondo de esta seccion ES el color de marca: los enlaces y las citas
   heredarian 1:1 de contraste si no se invierten aqui. */
.o-section--dark a,
.o-section--dark .o-prose blockquote {
	color: #fff;
}

.o-section--dark .o-prose blockquote {
	border-inline-start-color: rgb(255 255 255 / 60%);
}

.o-section--dark a:hover {
	color: rgb(255 255 255 / 82%);
}

.o-heading {
	max-width: 760px;
	margin: 0 auto clamp(30px, 5vw, 50px);
	text-align: center;
}

.o-heading__sub {
	font-family: var(--o-font-title);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--o-muted);
	margin: 0 0 0.9em;
}

.o-heading__title {
	font-size: clamp(1.5rem, 3.4vw, 2rem);
	margin: 0;
}

.o-heading--inverted .o-heading__sub {
	color: rgb(255 255 255 / 82%);
}

/* Rejillas */

.o-grid {
	display: grid;
	gap: var(--o-gap);
}

.o-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.o-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.o-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tarjetas numeradas (¿Qué hacemos?) */

.o-step {
	padding: clamp(24px, 3vw, 34px);
	background: #fff;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
}

.o-step__num {
	font-family: var(--o-font-title);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--o-line);
	margin: 0 0 0.5em;
}

.o-step__title {
	font-size: 1.0625rem;
	margin-bottom: 0.7em;
}

.o-step__text {
	font-size: 0.9375rem;
	color: var(--o-muted);
	margin: 0;
}

/* Bloque partido (Sobre Orbintia) */

.o-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	margin-block: clamp(24px, 4vw, 40px);
}

.o-split__media {
	min-height: 320px;
}

.o-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.o-split__body {
	padding: clamp(28px, 4vw, 56px);
	background: var(--o-bg-alt);
}

/* Texto largo */

.o-prose {
	max-width: 72ch;
}

.o-prose--center {
	margin-inline: auto;
	text-align: center;
}

.o-prose--small {
	font-size: 0.875rem;
	color: var(--o-muted);
}

.o-prose--inverted {
	color: #fff;
	margin-inline: auto;
}

/* Para contenedores que ya limitan el ancho por si mismos
   (por ejemplo .o-container--narrow en la pagina 404). */
.o-prose--full {
	max-width: none;
}

.o-prose blockquote {
	margin: 1.6em 0 0;
	padding-inline-start: 1.1em;
	border-inline-start: 3px solid var(--o-brand);
	font-style: italic;
	font-weight: 600;
	color: var(--o-brand);
}

.o-prose :is(ul, ol) {
	padding-inline-start: 1.3em;
}

.o-prose li {
	margin-bottom: 0.4em;
}

.o-prose table {
	width: 100%;
	border-collapse: collapse;
}

.o-prose :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--o-line);
	text-align: start;
}

/* Bloque plegable (subvenciones) */

.o-details {
	max-width: var(--o-narrow);
	margin: clamp(24px, 4vw, 40px) auto 0;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	background: #fff;
}

.o-details summary {
	padding: 16px 20px;
	font-family: var(--o-font-title);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--o-brand);
	cursor: pointer;
}

.o-details[open] summary {
	border-bottom: 1px solid var(--o-line);
}

.o-details > div {
	padding: 20px;
	max-width: none;
}

/* Tarjetas de servicio */

.o-card {
	display: flex;
	gap: 18px;
	padding: clamp(20px, 2.5vw, 28px);
	background: #fff;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
}

.o-card__icon {
	flex: 0 0 auto;
	font-size: 1.75rem;
	color: var(--o-brand);
	line-height: 1;
}

.o-card__title {
	font-size: 1rem;
	margin-bottom: 0.6em;
}

.o-card__text {
	font-size: 0.9375rem;
	color: var(--o-muted);
	margin: 0;
}

.o-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	color: var(--o-muted);
}

.o-ticks li {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	margin-bottom: 0.35em;
}

.o-ticks .o-icon {
	margin-top: 0.42em;
	color: var(--o-brand);
}

/* Listas de valores */

.o-values {
	margin-top: clamp(28px, 4vw, 44px);
}

.o-rules {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	color: var(--o-muted);
}

.o-rules li {
	padding: 18px 0;
	border-top: 1px solid var(--o-line);
}

.o-rules li:last-child {
	border-bottom: 1px solid var(--o-line);
}

.o-figure {
	margin: clamp(34px, 5vw, 56px) 0 0;
}

.o-figure img {
	width: 100%;
	border-radius: var(--o-radius);
}

/* Contacto */

.o-contact__item {
	padding: clamp(22px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	text-align: center;
}

.o-contact__icon {
	display: inline-flex;
	font-size: 2rem;
	color: var(--o-brand);
	margin-bottom: 0.4em;
}

.o-contact__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--o-muted);
	margin-bottom: 0.6em;
}

.o-contact__item p,
.o-contact__value {
	margin: 0;
	font-size: 0.9375rem;
}

/* La dirección ocupa varias líneas: subrayarla entera resulta ruidoso.
   Se subraya solo al pasar por encima o al recibir el foco. */
.o-contact__value a {
	text-decoration: none;
}

.o-contact__value a:hover,
.o-contact__value a:focus-visible {
	text-decoration: underline;
}

.o-forms {
	margin-top: clamp(44px, 6vw, 76px);
	align-items: start;
}

.o-forms .o-heading {
	margin-bottom: 26px;
	text-align: start;
	max-width: none;
}

/* Apps (página Tecnología) */

.o-apps {
	max-width: 860px;
	margin-inline: auto;
}

.o-app {
	text-align: center;
}

.o-app__logo {
	padding: 30px;
	background: #fff;
	border-radius: var(--o-radius);
}

.o-app__logo img {
	margin-inline: auto;
	width: auto;
	max-height: 92px;
}

.o-app__text {
	margin-top: 20px;
	font-size: 0.9375rem;
	color: rgb(255 255 255 / 90%);
}

.o-app__cta {
	margin-top: 6px;
}

/* Entradas */

.o-post__media img {
	width: 100%;
	border-radius: var(--o-radius);
}

.o-post__title {
	font-size: 1.125rem;
	margin: 0.8em 0 0.3em;
}

.o-post__title a {
	text-decoration: none;
}

.o-post__title a:hover {
	text-decoration: underline;
}

.o-post__meta {
	font-size: 0.8125rem;
	color: var(--o-muted);
	margin-bottom: 0.6em;
}

.o-post__excerpt {
	font-size: 0.9375rem;
	color: var(--o-muted);
}

.o-meta {
	margin-top: 2.5em;
	font-size: 0.8125rem;
	color: var(--o-muted);
}

.pagination {
	margin-top: clamp(32px, 5vw, 50px);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 8px 12px;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	text-decoration: none;
	font-size: 0.875rem;
}

.pagination .current {
	background: var(--o-brand);
	border-color: var(--o-brand);
	color: #fff;
}

/* 7. Formularios --------------------------------------------------------- */

.o-search {
	display: flex;
	gap: 10px;
	margin-top: 1.5em;
}

.o-search__input {
	flex: 1 1 auto;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	background: #fff;
	color: var(--o-text);
	font-family: inherit;
	font-size: 0.9375rem;
	line-height: 1.5;
	transition: border-color 0.15s var(--o-ease);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--o-brand);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

/* Acotado: Contact Form 7 envuelve cada casilla en su propio <label>
   dentro de .wpcf7-list-item, y ponerlos en bloque los apilaria. */
.o-prose label,
.wpcf7-form > p > label,
.o-search label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Contact Form 7 sin sus propios estilos de tema */

.wpcf7-form p {
	margin-bottom: 20px;
}

.wpcf7-form input[type="submit"] {
	display: inline-flex;
	padding: 0.85em 1.6em;
	border: 1px solid var(--o-brand);
	border-radius: var(--o-radius);
	background: var(--o-brand);
	color: #fff;
	font-family: var(--o-font-title);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s var(--o-ease);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--o-brand-strong);
}

.wpcf7-not-valid-tip {
	color: #a1121b;
	font-size: 0.8125rem;
	font-weight: 600;
}

.wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 14px 16px !important;
	border-width: 1px !important;
	border-radius: var(--o-radius);
	font-size: 0.9375rem;
}

.o-form-fallback {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--o-line);
	border-radius: var(--o-radius);
	font-size: 0.9375rem;
}

/* 8. Pie y botón "arriba" ------------------------------------------------ */

.o-footer {
	padding-block: 26px;
	background: var(--o-bg-header);
	border-top: 1px solid var(--o-line);
	font-size: 0.875rem;
}

.o-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.o-footer__copy {
	margin: 0;
	color: var(--o-muted);
}

.o-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.o-top {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--o-line);
	border-radius: 50%;
	background: #fff;
	color: var(--o-brand);
	font-size: 1.25rem;
	box-shadow: var(--o-shadow);
	cursor: pointer;
}

/* Necesario: `display` de autor gana a la regla `[hidden]` del navegador. */
.o-top[hidden] {
	display: none;
}

.o-top .o-icon {
	transform: rotate(-90deg);
}

/* 9. Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.o-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.o-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	:root {
		--o-header-h: 72px;
	}

	.o-burger {
		display: inline-flex;
		order: 3;
	}

	.o-nav {
		display: none;
		order: 4;
		flex: 1 0 100%;
		padding-block: 8px 20px;
	}

	.o-nav.is-open {
		display: block;
	}

	.o-header__inner {
		flex-wrap: wrap;
	}

	.o-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.o-nav__list a {
		padding: 12px 0;
		border-bottom: 1px solid var(--o-line);
	}

	.o-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		border: 0;
		box-shadow: none;
		padding-inline-start: 14px;
	}

	.o-split,
	.o-grid--2,
	.o-grid--3,
	.o-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.o-split__media {
		min-height: 240px;
	}

	.o-hero__controls {
		flex-wrap: wrap;
		bottom: 14px;
	}

	.o-hero__pause {
		order: -1;
	}
}

@media (max-width: 520px) {
	.o-card {
		flex-direction: column;
		gap: 12px;
	}

	.o-footer__inner {
		justify-content: flex-start;
	}
}

/* 10. Accesibilidad e impresión ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media (prefers-contrast: more) {
	:root {
		--o-muted: #3a3a3f;
		--o-line: #8a8a90;
	}

	.o-hero__img {
		filter: brightness(0.3);
	}
}

@media print {
	.o-header,
	.o-footer__nav,
	.o-top,
	.o-hero__controls,
	.o-burger,
	.o-skip {
		display: none !important;
	}

	body {
		color: #000;
		font-size: 11pt;
	}

	.o-section {
		padding-block: 12pt;
	}

	.o-hero__img {
		filter: none;
	}

	/* Solo enlaces marcados como externos: las URL internas tambien
	   empiezan por http y ensuciarian todo el menu. */
	a[target="_blank"]::after,
	a[rel~="external"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
	}
}

/* 11. Clases que emite el núcleo de WordPress ---------------------------- */

/* the_posts_pagination() y otras funciones del núcleo emiten
   .screen-reader-text; sin esta regla su texto se ve como contenido. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 12px 20px;
	background: var(--o-brand);
	color: #fff;
}

/* Alineaciones y pies de foto del editor. */
.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	max-width: none;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	margin-top: 0.6em;
	font-size: 0.8125rem;
	color: var(--o-muted);
	text-align: center;
}

.wp-block-image img {
	border-radius: var(--o-radius);
}

.wp-block-quote {
	margin: 1.6em 0;
	padding-inline-start: 1.1em;
	border-inline-start: 3px solid var(--o-brand);
	font-style: italic;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--o-line);
	text-align: start;
}

.sticky,
.gallery-caption,
.bypostauthor {
	/* Requeridas por la revisión de temas de WordPress. */
	display: block;
}
