/* ==========================================================================
   Portinos 2026
   Identidad de agency.portinos.com: fondo negro, Poppins, naranja Portinos
   (#de3914) y acentos violeta. Tokens tomados del CSS del sitio de la agencia.
   ========================================================================== */

:root {
	/* Marca */
	--orange: #de3914;          /* --portinos-orange */
	--orange-hover: #e84320;
	--orange-light: #b8300f;     /* en .dark vuelve a #f26a45 */
	--tangerine: #ec6a1c;       /* --bold-tangerine */
	--spicy: #e14b1b;           /* --spicy-orange */
	--violet: #884ab2;          /* --violet-depth */
	--violet-shade: #6f3c90;
	--violet-dark: #371e48;
	--violet-tint: #c3a5de;
	--magenta: #ff2d80;

	/* Neutros (MKT-195): contenido en light, como la demo aprobada */
	--paper: #f8f3f3;           /* Neutral White */
	--ink: #1a1814;             /* Neutral Black */
	--ink-2: #474543;           /* Charcoal */
	--ink-3: #6e6b68;
	--silver: #bdbbb9;
	--orange-text: #b8300f;     /* naranja con contraste sobre light */

	--bg: var(--paper);
	--surface: #fff;
	--surface-2: #eee9e8;
	--text: var(--ink);
	--text-soft: var(--ink-2);
	--muted: var(--ink-3);
	--muted-2: var(--ink-2);
	--line: #e7e1e0;
	--line-strong: #dad9d9;

	--gradient-brand: linear-gradient(84deg, var(--violet-shade), var(--violet) 38%, var(--tangerine) 66%, var(--spicy) 103%);

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius-sm: 12px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-pill: 60px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* Zonas oscuras (nav, header de la home, banner de cierre y footer): los
   mismos tokens con los valores dark de la marca. */
.dark {
	--bg: #000;
	--surface: #0d0c0a;
	--surface-2: #1a1814;
	--text: #f8f3f3;
	--text-soft: #dad9d9;
	--muted: #9c9d9e;
	--muted-2: #bdbbb9;
	--line: #2a2825;
	--line-strong: #474543;
	--orange-light: #f26a45;
	color: var(--text);
}

/* Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; }

::selection { background: var(--orange); color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.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;
}

.skip-link {
	position: absolute;
	top: -100px; left: 16px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--orange);
	color: #fff;
	font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }

.icon { flex: none; width: 1.15em; height: 1.15em; }

/* Botones, pills y chips
   ========================================================================== */

/* Categoría: pill sólida con el color de la categoría visual, como el sitio. */
.pill {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 14px 0 12px;
	border-radius: 32px;
	background: var(--pill, var(--ink-2));
	color: #f8f3f3;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}
a.pill:hover { filter: brightness(1.1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: var(--surface);
	color: var(--text-soft);
	font-size: 13px;
	white-space: nowrap;
	transition: border-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--muted); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Header (MKT-195): logo + "Archivo de notas" · buscador · Conocé Portinos
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: linear-gradient(#000, #0b0a09);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: auto; height: 24px; }
.brand__tag {
	padding-left: 12px;
	border-left: 1px solid var(--line-strong);
	color: var(--muted-2);
	font-size: 13.5px;
	line-height: 20px;
	white-space: nowrap;
}

.site-header__menu { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 24px; }
.site-header__toggle { display: none; }

.nav-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(320px, 100%);
	height: 44px;
	padding: 0 18px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	color: var(--muted-2);
	transition: width 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.3s var(--ease);
}
.nav-search:hover, .nav-search:focus-within { border-color: var(--orange); }
.nav-search__button {
	display: grid;
	place-items: center;
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.nav-search .icon { width: 16px; height: 16px; }
.nav-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--text);
	font: 400 14px var(--font);
	outline: none;
}
.nav-search input::placeholder { color: var(--muted-2); }
.nav-search input::-webkit-search-cancel-button { filter: invert(1); }

/* Desktop y tablet: con JS, la lupa es un círculo que se despliega al hacer click
   o al llegar al campo con el teclado. Sin JS queda el campo abierto. */
@media (min-width: 768px) {
	.js .nav-search:not(.is-open) { gap: 0; width: 44px; padding: 0; justify-content: center; cursor: pointer; }
	.js .nav-search:not(.is-open) .nav-search__button { width: 42px; height: 42px; }
	.js .nav-search:not(.is-open) input { flex: 0; width: 0; padding: 0; opacity: 0; }
	.nav-search__button:hover { color: var(--orange-light); }
}

.site-header .btn-secondary { flex: none; height: 44px; padding: 0 20px; font-size: 15px; }

@media (max-width: 1023px) {
	:root { --header-h: 64px; }
}
/* Mobile: logo + menú hamburguesa con el buscador y "Conocé Portinos". */
@media (max-width: 767px) {
	.brand { gap: 10px; }
	.brand img { height: 20px; }
	.brand__tag { padding-left: 10px; font-size: 12px; line-height: 18px; }

	.site-header__toggle:not([hidden]) {
		display: grid;
		place-items: center;
		width: 44px; height: 44px;
		margin-left: auto;
		padding: 0;
		border: 1px solid var(--line-strong);
		border-radius: 50%;
		background: transparent;
		color: var(--text);
		cursor: pointer;
		transition: border-color 0.3s var(--ease);
	}
	.site-header__toggle:hover, .site-header__toggle[aria-expanded="true"] { border-color: var(--orange); }
	.site-header__toggle .icon { width: 20px; height: 20px; }
	.site-header__toggle .icon--close,
	.site-header__toggle[aria-expanded="true"] .icon--menu { display: none; }
	.site-header__toggle[aria-expanded="true"] .icon--close { display: block; }

	/* Con JS es un panel desplegable; sin JS queda abierto debajo del logo. */
	.site-header__inner { flex-wrap: wrap; gap: 12px; }
	.js .site-header__inner { flex-wrap: nowrap; }
	.site-header__menu { flex-direction: column; align-items: stretch; gap: 16px; }
	.js .site-header__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 20px var(--gutter) 24px;
		border-bottom: 1px solid var(--line);
		background: #0b0a09;
		box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
	}
	.js .site-header__menu:not(.is-open) { display: none; }
	.nav-search { width: 100%; height: 48px; }
	.nav-search input { font-size: 16px; }
	.nav-search__button { pointer-events: none; }
	.site-header .site-header__cta { justify-content: space-between; height: 48px; font-size: 16px; }
}
@media (max-width: 340px) {
	.brand { gap: 8px; }
	.brand__tag { padding-left: 8px; font-size: 11px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	/* El admin bar de WP deja de ser fijo en pantallas chicas. */
	.admin-bar .site-header { top: 0; }
}

/* Buscador de páginas internas (búsqueda y 404) */
.search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	padding: 6px 6px 6px 20px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	transition: border-color 0.3s var(--ease);
}
.search-form:focus-within { border-color: var(--orange); }
.search-form > .icon { color: var(--muted); }
.search-form__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--text);
	font: 400 16px var(--font);
	outline: none;
}
.search-form__input::placeholder { color: var(--muted); }

/* Botones del sitio en Webflow (Primary, Secondary y Tertiary). Mismos hovers
   que agency.portinos.com: la flecha diagonal gira a horizontal.
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-tertiary { -webkit-tap-highlight-color: transparent; }
.btn-primary .icon--arrow-diag,
.btn-secondary .icon--arrow-diag,
.btn-tertiary .icon--arrow-diag { transition: transform 0.3s var(--ease); }

/* Primary: naranja; en hover, el gradiente de la marca. */
/* El naranja de la marca con texto blanco da 4.1:1; el botón usa un tono
   apenas más oscuro (4.9:1) para cumplir AA. */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 52px;
	padding: 10px 10px 10px 28px;
	border: 0;
	border-radius: 48px;
	background-color: #c7330f;
	color: #f8f3f3;
	font: 500 17px/1.4 var(--font);
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover {
	background-image: linear-gradient(61deg, var(--violet-dark), var(--violet-shade) 20%, #f08500 49%, var(--tangerine) 76%, var(--orange));
	box-shadow: 0 10px 32px rgba(222, 57, 20, 0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover .icon--arrow-diag { transform: rotate(45deg); }
.btn-primary__arrow {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: #f8f3f3;
	color: var(--ink);
}
.btn-primary__arrow .icon { width: 18px; height: 18px; }
.btn-primary--sm { min-height: 40px; padding: 0 20px; font-size: 15px; }

/* Secondary: borde; en hover, borde naranja y la flecha gira. */
.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 24px;
	border: 1px solid var(--ink-2);
	border-radius: 48px;
	background: transparent;
	color: var(--text);
	font: 400 17px/1 var(--font);
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.dark .btn-secondary { border-color: var(--silver); }
.btn-secondary:hover { border-color: var(--orange); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:hover .icon--arrow-diag { transform: rotate(45deg); color: var(--orange); }
.btn-secondary .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }

/* Tertiary ("Leer nota"): texto y flecha; en hover se pintan de naranja. */
.btn-tertiary { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 16px; font-weight: 500; transition: color 0.3s var(--ease); }
.btn-tertiary .icon { width: 18px; height: 18px; }
.btn-tertiary:hover { color: var(--orange); }
.btn-tertiary:hover .icon--arrow-diag { transform: rotate(45deg); }

/* Header de la home (MKT-195): subida, H1, texto y tres datos
   ========================================================================== */

.archive-hero {
	position: relative;
	padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 96px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 70% at 92% 8%, rgba(222, 57, 20, 0.42), transparent 70%),
		radial-gradient(40% 70% at 0% 100%, rgba(136, 74, 178, 0.3), transparent 70%),
		#000;
}
.archive-hero__wm {
	position: absolute;
	z-index: -1;
	top: 18px; left: -1%;
	color: rgba(248, 243, 243, 0.035);
	font-size: clamp(80px, 15vw, 200px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.archive-hero__circles { position: absolute; z-index: -1; right: 6%; bottom: 56px; display: flex; }
.archive-hero__circles i { width: 110px; height: 110px; margin-left: -86px; border: 1px solid rgba(136, 74, 178, 0.6); border-radius: 50%; }

.archive-hero__in { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.archive-hero__kicker { color: var(--text-soft); font-size: 22px; font-weight: 500; }
.archive-hero__kicker em { color: var(--orange-light); font-style: normal; }
.archive-hero__title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.15; letter-spacing: -0.01em; }
.archive-hero__lead { max-width: 62ch; color: var(--text-soft); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; }

.archive-hero__facts {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.5fr);
	margin: 28px 0 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 20px;
	/* Casi opaca: los círculos de fondo pasan por detrás sin pisar los datos. */
	background: rgba(13, 12, 10, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	list-style: none;
}
.archive-hero__fact { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px 22px; }
.archive-hero__fact + .archive-hero__fact { border-left: 1px solid var(--line); }
.archive-hero__fact-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px; height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: rgba(222, 57, 20, 0.08);
	color: var(--orange);
}
.archive-hero__fact small { display: block; color: var(--muted-2); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-hero__fact b { display: block; margin-top: 2px; font-size: 17px; font-weight: 500; line-height: 1.35; }

/* Foto de Epi en el header: en desktop ocupa la mitad derecha y se funde en
   negro hacia el texto; en pantallas más chicas pasa arriba, como una franja
   que se desvanece hacia el título. */
.archive-hero__photo {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(54vw, 920px);
	margin: 0;
}
.archive-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 30%;
	filter: grayscale(1) contrast(1.05) brightness(0.8);
	/* Fundido amplio: el texto nunca queda sobre la parte clara de la foto. */
	-webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 22%, #000 62%), linear-gradient(to top, transparent 0%, #000 30%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0%, transparent 22%, #000 62%), linear-gradient(to top, transparent 0%, #000 30%);
	mask-composite: intersect;
}
/* Tono cálido de la marca sobre la foto. */
.archive-hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(70% 60% at 85% 0%, rgba(222, 57, 20, 0.35), transparent 70%);
	mix-blend-mode: soft-light;
	pointer-events: none;
}
.archive-hero__photo figcaption {
	position: absolute;
	right: var(--gutter);
	bottom: 28px;
	padding: 4px 10px;
	border-left: 2px solid var(--orange);
	border-radius: 0 4px 4px 0;
	background: rgba(0, 0, 0, 0.75);
	color: #dad9d9;
	font-size: 12px;
	line-height: 1.4;
}
.archive-hero--photo .archive-hero__circles { display: none; }
@media (min-width: 1200px) {
	.archive-hero--photo .archive-hero__in { max-width: 640px; }
	.archive-hero--photo .archive-hero__facts { grid-template-columns: auto auto minmax(0, 1fr); }
	.archive-hero--photo .archive-hero__fact { padding: 18px; }
}
@media (max-width: 1199px) {
	.archive-hero--photo { padding-top: 0; }
	.archive-hero__photo {
		position: relative;
		width: 100%;
		height: clamp(240px, 52vw, 440px);
		margin-bottom: clamp(-56px, -6vw, -32px);
	}
	.archive-hero__photo img {
		object-position: 65% 25%;
		-webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 10%, #000 60%);
		mask-image: linear-gradient(to top, transparent 0%, transparent 10%, #000 60%);
	}
	/* Arriba a la izquierda, lejos de la cara de Epi. */
	/* Arriba a la izquierda y en dos líneas, lejos de la cara de Epi. */
	.archive-hero__photo figcaption { top: 16px; right: auto; bottom: auto; left: var(--gutter); }
	.archive-hero__photo figcaption span { display: block; }
}

@media (max-width: 1199px) {
	/* En pantallas medianas los círculos suben a la esquina, lejos del texto. */
	.archive-hero__circles { top: 32px; bottom: auto; transform: scale(0.8); transform-origin: top right; }
	.archive-hero--compact .archive-hero__circles { top: 24px; bottom: auto; }
}
@media (max-width: 767px) {
	.archive-hero__circles { display: none; }
	.archive-hero__kicker { font-size: 18px; }
	.archive-hero__facts { grid-template-columns: minmax(0, 1fr); }
	.archive-hero__fact + .archive-hero__fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* Secciones y grillas
   ========================================================================== */

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.section-head__title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.24; }
.section-head__text { margin-top: 4px; color: var(--muted); font-size: 15px; }
.section-head .btn-secondary { height: 48px; font-size: 16px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 478px) {
	.grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.panel {
	padding: clamp(24px, 3vw, 32px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

/* Tarjetas: blog-card del sitio en light. El link del título cubre toda la
   tarjeta, así hay un solo link por nota para el teclado y los lectores.
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	transition: box-shadow 0.2s var(--ease);
}
.card:hover { box-shadow: 0 18px 40px -24px rgba(26, 24, 20, 0.45); }
.card:hover .card__title { color: var(--ink); }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }

.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(60% 80% at 15% 100%, rgba(222, 57, 20, 0.35), transparent),
		radial-gradient(60% 80% at 100% 0%, rgba(136, 74, 178, 0.35), transparent),
		var(--ink);
}
.thumb-placeholder img { width: 38%; height: auto; opacity: 0.5; }

.card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14px; }
.card__title { font-size: 17px; font-weight: 500; line-height: 25px; }
.card__link::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.card__link:focus-visible { outline: none; }
.card__more { margin-top: auto; font-size: 15px; }
.card:hover .card__more { color: var(--orange); }
.card:hover .card__more .icon--arrow-diag { transform: rotate(45deg); }
.card--text .card__body { padding: 24px; }

/* Explorá el archivo: panel lateral de filtros + grilla
   ========================================================================== */

.archive__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 28px; }
.archive__toggle {
	display: none;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 32px;
	background: var(--surface);
	color: var(--text);
	font: 500 16px var(--font);
	cursor: pointer;
	transition: border-color 0.3s var(--ease);
}
.archive__toggle:hover { border-color: var(--muted); }
.archive__toggle[aria-expanded="true"] { border-color: var(--orange); }
.archive__toggle-icon, .filters__title-icon { display: inline-flex; color: var(--orange); }
.archive__toggle-chevron { display: inline-flex; color: var(--muted); transition: transform 0.3s var(--ease); }
.archive__toggle[aria-expanded="true"] .archive__toggle-chevron { transform: rotate(180deg); }

.filters__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; line-height: 28px; }

.filters { display: flex; flex-direction: column; gap: 14px; }
.filters__group { display: flex; flex-direction: column; gap: 12px; }
.filters__label { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.filters__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.filters__subs { padding: 10px 4px 4px 18px; }

.filter-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: var(--surface);
	color: var(--text-soft);
	font-size: 15px;
	transition: border-color 0.3s var(--ease);
}
.filter-option:hover { border-color: var(--muted); }
.filter-option__label { display: flex; align-items: center; gap: 10px; }
.filter-option__label::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--muted); border-radius: 50%; }
/* Grupos con temas: el nombre es un link y el +/− un botón aparte. */
div.filter-option { padding: 0; }
.filter-option__link { display: flex; flex: 1; align-items: center; align-self: stretch; padding: 0 18px; color: inherit; border-radius: 32px; }
.filter-option__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-option__toggle[hidden] { display: none; }
.filter-option__toggle::before { content: "+"; font: 400 18px/1 var(--font); }
.filter-option__toggle[aria-expanded="true"]::before { content: "−"; }
.filter-option__toggle:hover { background: var(--surface-2); color: var(--text); }
/* Con JS los temas se pliegan; sin JS se ven siempre. */
.js .filters__subs:not(.is-open) { display: none; }
.filter-option.is-active { border-color: var(--ink); color: var(--text); font-weight: 600; }
.filter-option.is-active .filter-option__label::before { border-color: var(--option, var(--ink)); background: var(--option, var(--ink)); }

.searchbox {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: var(--surface);
	color: var(--muted);
	transition: border-color 0.3s var(--ease);
}
.searchbox:focus-within { border-color: var(--orange); }
.searchbox .icon { width: 16px; height: 16px; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 400 15px var(--font); outline: none; }
.searchbox input::placeholder { color: var(--muted); }

.archive__results { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Filtros aplicados: como en el blog de agency.portinos.com, arriba de las cards. */
.active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
.active-filters__label { margin-right: 4px; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.active-filters__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.active-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 6px 0 14px;
	border: 1px solid var(--orange);
	border-radius: 32px;
	background: var(--surface);
	color: var(--text);
	font-size: 13px;
}
.active-filter__remove {
	display: grid;
	place-items: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	color: var(--muted);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.active-filter__remove:hover { background: var(--surface-2); color: var(--text); }
.active-filter__remove .icon { width: 14px; height: 14px; }
.active-filters__clear { margin-left: auto; color: var(--orange-text); font-size: 14px; font-weight: 500; }
.active-filters__clear:hover { text-decoration: underline; }
/* Misma altura de línea que "Filtros" para que queden alineados. */
.archive__count { color: var(--muted); font-size: 14px; line-height: 28px; }
.archive__count b { color: var(--text); font-weight: 600; }

.archive__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 48px 24px;
	border: 1px dashed var(--line-strong);
	border-radius: 20px;
	background: var(--surface);
	color: var(--text-soft);
	text-align: center;
}
.archive__empty-title { color: var(--text); font-size: 20px; font-weight: 500; }

@media (max-width: 1199px) {
	.archive .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.archive__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.archive__toggle:not([hidden]) { display: inline-flex; justify-self: start; }
	.archive__toggle:not([hidden]) ~ .filters .filters__title { display: none; }
	.filters.is-collapsible:not(.is-open) { display: none; }
}
@media (max-width: 767px) {
	.archive .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* Header de los listados (categorías, años, búsqueda) */
.archive-hero--compact { padding: clamp(40px, 6vw, 64px) 0; }
.archive-hero--compact .archive-hero__in { gap: 14px; }
.archive-hero--compact .archive-hero__circles { bottom: 24px; }
.archive-hero__eyebrow { color: var(--orange-light); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Paginación (DS: Anterior · contador · Siguiente)
   ========================================================================== */

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.pagination__link { height: 48px; font-size: 16px; }
.pagination__link:hover { border-color: var(--orange); color: var(--orange-text); }
.pagination__link.is-disabled { opacity: 0.35; pointer-events: none; }
.pagination__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: pre;
	min-width: 64px;
	height: 64px;
	padding: 0 12px;
	color: var(--text-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 478px) {
	.pagination__label { display: none; }
	.pagination__link { padding: 0 16px; }
}

/* Nota (MKT-195): columna de lectura de 900px
   ========================================================================== */

.article {
	width: 100%;
	max-width: calc(900px + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(32px, 5vw, 48px) var(--gutter) 0;
}

.article__header { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.3s var(--ease); }
.back-link .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.back-link:hover { color: var(--orange-text); }
.back-link:hover .icon { transform: translateX(-3px); }

.article__category { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.article__topic { color: var(--muted); font-size: 14px; transition: color 0.3s var(--ease); }
.article__topic:hover { color: var(--orange-text); }
.article__volanta { color: var(--orange-text); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.article__title { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -0.01em; }

.article__meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; width: 100%; }
.article__byline { display: flex; align-items: center; gap: 12px; }

/* Sello de Portinos Blog: el blog donde nació cada nota (homenaje a su creador). */
.archive-stamp {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px 8px 10px;
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}
.archive-stamp img { width: 54px; height: auto; }
.archive-stamp small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--ink-2);
	font-size: 15px;
	font-weight: 600;
}
.article__author { display: block; color: var(--muted); font-size: 14px; }
.article__author a { color: var(--text); font-weight: 500; }
.article__author a:hover { color: var(--orange-text); }
.article__meta { display: block; color: var(--muted); font-size: 14px; }

.article__image { margin: clamp(28px, 4vw, 40px) 0 0; }
.article__image-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	isolation: isolate;
	border-radius: 20px;
	background: var(--surface-2);
}
/* Fondo: la misma imagen, desenfocada, para completar el marco. */
.article__image-frame::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -24px;
	background: var(--image) center / cover no-repeat;
	filter: blur(28px) saturate(1.1);
	opacity: 0.55;
}
/* Nunca más grande que su tamaño real: muchas imágenes viejas son chicas. */
.article__image img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.article__image figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.article__content { margin-top: clamp(28px, 4vw, 40px); }

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

/* Homenaje a Epifanio Blanco, creador de Portinos Blog
   ========================================================================== */

.tribute__card {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--surface);
}
/* Fotos (ayer y hoy) apiladas: la activa aparece con un fundido lento. */
.tribute__photo { position: relative; align-self: stretch; min-height: 300px; overflow: hidden; background: var(--surface-2); }
.tribute__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.tribute__slide.is-active { opacity: 1; }
.tribute__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* Selector "Ayer · Hoy" */
.tribute__switch {
	position: absolute;
	z-index: 1;
	bottom: 16px;
	left: 50%;
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 32px;
	background: rgba(26, 24, 20, 0.72);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transform: translateX(-50%);
}
.tribute__switch[hidden] { display: none; }
.tribute__switch button {
	min-width: 56px;
	height: 30px;
	padding: 0 12px;
	border: 0;
	border-radius: 32px;
	background: transparent;
	color: #dad9d9;
	font: 500 13px var(--font);
	cursor: pointer;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tribute__switch button:hover { color: #fff; }
.tribute__switch button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.tribute__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px); }
.tribute__logo { width: min(190px, 60%); height: auto; margin-bottom: 18px; }
.tribute__eyebrow { color: var(--orange-text); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.tribute__title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.tribute__text { max-width: 62ch; color: var(--text-soft); font-size: 15.5px; line-height: 1.6; }
/* La llave del logo original, en Portinos Orange, cierra el bloque. */
.tribute__brace { width: auto; height: 160px; margin-right: clamp(24px, 3.5vw, 44px); }

@media (max-width: 991px) {
	.tribute__card { grid-template-columns: minmax(0, 1fr); }
	.tribute__photo { min-height: 0; aspect-ratio: 5 / 4; }
	.tribute__body { padding: 24px; }
	.tribute__brace { display: none; }
}

/* 404 */
.not-found { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Contenido editorial (notas y páginas)
   ========================================================================== */

.prose { color: var(--text-soft); font-size: 18px; line-height: 30px; overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose > * + * { margin-top: 20px; }

.prose .prose-lead { color: var(--text); font-size: 20px; font-weight: 500; line-height: 32px; }
.prose h2, .prose .prose-subtitle { margin-top: 48px; color: var(--text); font-size: clamp(24px, 2.4vw, 28px); font-weight: 500; line-height: 1.3; }
.prose h3 { margin-top: 40px; color: var(--text); font-size: 22px; font-weight: 500; line-height: 1.35; }
.prose h4, .prose h5, .prose h6 { margin-top: 32px; color: var(--text); font-size: 18px; font-weight: 600; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
@media (max-width: 767px) {
	.prose { font-size: 17px; line-height: 28px; }
	.prose .prose-lead { font-size: 18px; line-height: 29px; }
}

/* Palabras clave: negrita con un subrayado suave en naranja. */
.prose strong, .prose b {
	color: var(--text);
	font-weight: 600;
	background: linear-gradient(transparent 62%, rgba(222, 57, 20, 0.14) 62%);
}
.prose .prose-lead strong, .prose h2 strong, .prose h3 strong, .prose a strong { background: none; }

.prose a {
	color: var(--orange-text);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(184, 48, 15, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.prose a:hover { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote {
	margin: 40px 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--orange);
	color: var(--text);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.6;
}
.prose blockquote cite { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; font-style: normal; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.9em; }
.prose pre { padding: 20px; overflow-x: auto; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); font-weight: 600; }

.prose img { height: auto; border-radius: 16px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.prose .wp-caption { width: auto !important; max-width: 100%; }
.prose iframe, .prose embed, .prose video { max-width: 100%; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }

.prose .alignleft, .prose .align-left { float: left; max-width: 50%; margin: 0.4em 28px 16px 0; }
.prose .alignright, .prose .align-right { float: right; max-width: 50%; margin: 0.4em 0 16px 28px; }
.prose .aligncenter, .prose .align-center, .prose .align-none { display: block; margin-inline: auto; }
@media (max-width: 599px) {
	.prose .alignleft, .prose .align-left, .prose .alignright, .prose .align-right { float: none; max-width: 100%; margin: 1.25em 0; }
}

.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prose .gallery-item { margin: 0; }
.prose .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }

/* Notas viejas con colores en línea (texto negro del editor clásico): sobre
   fondo negro no se leen, así que heredan los del tema. */
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: none !important; }

.page-links { margin-top: 2em; color: var(--muted); }

/* Calendario (calendarize-it) y widgets
   ========================================================================== */

.calendar { display: grid; gap: 40px; }
.calendar a.btn { height: 40px; padding: 0 18px; border-color: rgba(222, 57, 20, 0.7); font-size: 13px; }
.calendar a.btn:hover { border-color: var(--orange); background: var(--orange); }

/* calendarize-it trae Lato, botones azules y bordes blancos: se lleva a la marca. */
.calendar .rhcalendar, .calendar .rhcalendar * { font-family: var(--font) !important; }
.calendar .fc-header-title h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; }
.calendar .fc-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	padding: 0 !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--text) !important;
	text-shadow: none !important;
}
.calendar .fc-button:hover { border-color: var(--orange) !important; background: rgba(222, 57, 20, 0.12) !important; }
.calendar .fc-border-separate,
.calendar .fc-border-separate th,
.calendar .fc-border-separate td { border-color: var(--line) !important; }
.calendar .fc-border-separate th { padding: 10px 0; background: var(--surface); color: var(--muted-2); font-size: 13px; font-weight: 500; }
.calendar .fc-day-number { padding: 6px 8px; font-size: 14px; }
.calendar .fc-other-month .fc-day-number { color: #4a4a4a; }
.calendar .fc-today { background: rgba(222, 57, 20, 0.12) !important; }
.calendar .fc-today .fc-day-number { color: var(--orange-light); font-weight: 600; }
.calendar .fc-event { border-color: var(--orange) !important; border-radius: 6px; background: var(--orange) !important; color: #fff !important; }
.calendar__upcoming { font-size: 15px; }
.widget__title { margin-bottom: 20px; font-size: 1.375rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 12px; }
.widget a:hover { color: var(--orange-light); }

/* Banner de cierre (MKT-195): box oscuro, separado del footer
   ========================================================================== */

/* Mismo ritmo que .section: la separación entre bloques es siempre igual. */
.closing { padding: clamp(40px, 6vw, 72px) 0; }
.site-main:has(> .section:last-child) + .closing { padding-top: 0; }
.closing-banner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
	gap: 40px;
	padding: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 64px);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 24px;
	background:
		radial-gradient(45% 80% at 100% 0%, rgba(136, 74, 178, 0.35), transparent 70%),
		radial-gradient(40% 70% at 0% 100%, rgba(222, 57, 20, 0.3), transparent 70%),
		#0d0c0a;
}
.closing-banner__eyebrow { color: var(--orange-light); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.closing-banner__title { margin-top: 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; }
.closing-banner__title em { color: var(--orange); font-style: normal; }
.closing-banner__text { max-width: 56ch; margin-top: 16px; color: var(--muted-2); font-size: 16.5px; }
.closing-banner__actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 991px) {
	.closing-banner { grid-template-columns: minmax(0, 1fr); }
	.closing-banner__actions { align-items: flex-start; }
}
@media (max-width: 478px) {
	.closing-banner .btn-primary { font-size: 16px; white-space: normal; }
}

/* Footer (MKT-195): logo, bajada, redes y Conocé Portinos
   ========================================================================== */

.site-footer { padding: 56px 0 32px; background: #000; color: var(--text-soft); font-size: 14.5px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer .brand img { height: 26px; }
.site-footer__about { max-width: 40ch; margin-top: 16px; line-height: 1.6; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0 0; padding: 0; color: var(--text); font-size: 14px; list-style: none; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__social a:hover, .site-footer__bottom a:hover { color: var(--orange-light); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12.5px;
}

/* Aparición al scrollear: main.js marca los elementos y los muestra cuando
   entran en pantalla. Sin JS o con movimiento reducido, todo se ve igual.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
		transition-delay: calc(var(--reveal-i, 0) * 80ms);
	}
	.js [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.card:hover .card__media img { transform: none; }
}
