/*
Theme Name: Aegis Compliance
Theme URI: https://aegiscompliance.io
Author: CloudStudio.mx
Author URI: https://cloudstudio.mx
Description: Rediseño 2026 de Aegis Compliance. Tema clásico de WordPress (sin page builder). Portado del mockup1 design proposal con ACF (free) para contenido repetible.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aegis
Domain Path: /languages
Tags: compliance, healthcare, business, custom-menu, featured-images, translation-ready
*/

/* Los estilos viven en assets/css/base.css.
   Este archivo se encola al final: úsalo solo para ajustes puntuales. */

/* Prevent the logged-in WordPress toolbar from covering the sticky header. */
body.admin-bar .hdr {
	top: 32px;
}

/* Interior pages */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--c-forest) url("assets/img/bg-aurora.jpg") center 42% / cover no-repeat;
	color: #fff;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0, 44, 43, .9), rgba(0, 44, 43, .65));
}

.page-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(68px, 8vw, 116px);
}

.page-hero .eyebrow {
	color: var(--c-mint-300);
}

.page-hero__title {
	max-width: 900px;
	margin-top: .65rem;
	color: #fff;
	font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.page-hero__lead {
	max-width: 720px;
	margin-top: 1.25rem;
	color: rgba(255, 255, 255, .82);
	font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem);
	line-height: 1.65;
}

.standard-page {
	padding-block: clamp(64px, 8vw, 112px);
}

.standard-page__content {
	max-width: 1040px;
}

.standard-page__content > * + * {
	margin-top: 1.25rem;
}

.standard-page__content h2 {
	max-width: 820px;
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	font-size: clamp(1.9rem, 1.45rem + 1.8vw, 3rem);
	letter-spacing: -.035em;
	line-height: 1.12;
}

.standard-page__content > h2:first-child {
	margin-top: 0;
}

.standard-page__content p,
.standard-page__content li {
	color: var(--body);
	font-size: 1.05rem;
	line-height: 1.75;
}

.page-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-block: 2rem 3.5rem;
}

.page-feature-grid > * {
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--c-cool);
}

.page-feature-grid h3 {
	margin-bottom: .75rem;
	font-size: 1.2rem;
}

.standard-page__content .qa {
	border-bottom: 1px solid var(--line);
}

.standard-page__content .qa summary {
	cursor: pointer;
	padding: 1.25rem 0;
	font-size: 1.08rem;
	font-weight: 700;
}

.standard-page__content .qa p {
	padding: 0 0 1.25rem;
}

.standard-page-cta {
	background: var(--c-teal);
	color: #fff;
}

.standard-page-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: clamp(44px, 6vw, 72px);
}

.standard-page-cta .eyebrow {
	color: var(--c-mint-300);
}

.standard-page-cta h2 {
	max-width: 680px;
	margin-top: .5rem;
	color: #fff;
	font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.7rem);
}

@media (max-width: 760px) {
	.page-feature-grid {
		grid-template-columns: 1fr;
	}

	.standard-page-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .hdr {
		top: 46px;
	}
}

/* ===========================================================================
   BLOG ARCHIVE
   ======================================================================= */

.blog-hero {
	position: relative;
	overflow: hidden;
	background: var(--c-forest) url("assets/img/bg-aurora.jpg") center 42% / cover no-repeat;
	color: #fff;
}

.blog-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0, 44, 43, .88), rgba(0, 44, 43, .65));
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(72px, 9vw, 132px);
}

.blog-hero .eyebrow {
	color: var(--c-mint-300);
}

.blog-hero__title {
	max-width: 850px;
	margin-top: .65rem;
	color: #fff;
	font-size: clamp(2.5rem, 1.45rem + 4vw, 4.7rem);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1.01;
}

.blog-hero__lead {
	max-width: 650px;
	margin-top: 1.35rem;
	color: rgba(255, 255, 255, .8);
	font-size: clamp(1.05rem, .98rem + .32vw, 1.25rem);
	font-weight: 300;
	line-height: 1.65;
}

.blog-hero__lead p {
	margin: 0;
}

.blog-index {
	padding-block: clamp(64px, 8vw, 112px);
	background: var(--surface);
}

.blog-index__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: clamp(30px, 4vw, 52px);
}

.blog-index__top h2 {
	margin-top: .45rem;
	color: var(--c-forest);
	font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.65rem);
	font-weight: 900;
	letter-spacing: -.035em;
}

.blog-index__count {
	flex: none;
	padding: .55rem .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--body);
	font-size: .8rem;
	font-weight: 700;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

.blog-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	background: #fff;
	box-shadow: var(--sh-1);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
	transform: translateY(-5px);
	border-color: var(--green-100);
	box-shadow: var(--sh-3);
}

.blog-card__visual {
	position: relative;
	display: grid;
	height: 210px;
	place-items: center;
	overflow: hidden;
	background: linear-gradient(145deg, #003c3b, #12836b);
	color: var(--c-mint-300);
}

.blog-card:nth-child(2) .blog-card__visual {
	background: linear-gradient(145deg, #2a5f5d, #8b8ac9);
	color: #fff;
}

.blog-card:nth-child(3) .blog-card__visual {
	background: linear-gradient(145deg, #0c2828, #377c79);
	color: var(--c-yellow);
}

.blog-card__visual::before,
.blog-card__visual::after {
	content: "";
	position: absolute;
	width: 190px;
	height: 190px;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: .18;
}

.blog-card__visual::before {
	top: -90px;
	right: -35px;
}

.blog-card__visual::after {
	bottom: -120px;
	left: -55px;
	width: 230px;
	height: 230px;
}

.blog-card__visual svg {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__number {
	position: absolute;
	top: 18px;
	left: 20px;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .13em;
	opacity: .72;
}

.blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(22px, 2.5vw, 30px);
}

.blog-card__meta,
.article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem .8rem;
	color: var(--muted);
	font-size: .72rem;
	font-weight: 650;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.blog-card__meta > * + *::before,
.article-hero__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: .8rem;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
}

.blog-card__meta span:first-child {
	color: var(--green);
}

.blog-card__title {
	margin-top: 1rem;
	color: var(--c-forest);
	font-size: clamp(1.22rem, 1.08rem + .45vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.blog-card__title a:hover {
	color: var(--green);
}

.blog-card__excerpt {
	margin-top: .85rem;
	color: var(--body);
	font-size: .94rem;
	line-height: 1.65;
}

.blog-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .45rem;
	margin-top: auto;
	padding-top: 1.4rem;
	color: var(--green);
	font-size: .86rem;
	font-weight: 800;
}

.blog-card__link svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	transition: transform .18s ease;
}

.blog-card__link:hover svg {
	transform: translateX(4px);
}

.blog-index .pagination {
	margin-top: 48px;
}

.blog-index .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
}

.blog-index .page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding-inline: .8rem;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--body);
	font-size: .85rem;
	font-weight: 700;
}

.blog-index .page-numbers.current,
.blog-index a.page-numbers:hover {
	border-color: var(--c-forest);
	background: var(--c-forest);
	color: #fff;
}

/* ===========================================================================
   SINGLE ARTICLE
   ======================================================================= */

.article-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid #dce4ec;
	background: var(--c-cool);
}

.article-hero::before {
	content: "";
	position: absolute;
	top: -260px;
	right: -180px;
	width: 620px;
	height: 620px;
	border: 110px solid rgba(21, 181, 123, .08);
	border-radius: 50%;
}

.article-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
	padding-block: clamp(50px, 7vw, 94px);
}

.article-hero__back {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-bottom: clamp(34px, 5vw, 62px);
	color: var(--green);
	font-size: .82rem;
	font-weight: 750;
}

.article-hero__back svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	transition: transform .18s ease;
}

.article-hero__back:hover svg {
	transform: translateX(-4px);
}

.article-hero__meta a {
	color: var(--green);
}

.article-hero__title {
	max-width: 900px;
	margin-top: 1rem;
	color: var(--c-forest);
	font-size: clamp(2.35rem, 1.3rem + 3.6vw, 4.5rem);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1.03;
}

.article-hero__excerpt {
	max-width: 760px;
	margin-top: 1.35rem;
	color: var(--body);
	font-size: clamp(1.05rem, .96rem + .4vw, 1.3rem);
	font-weight: 350;
	line-height: 1.65;
}

.article-hero__byline {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin-top: 2rem;
	color: var(--body);
	font-size: .78rem;
	line-height: 1.45;
}

.article-hero__byline > span:last-child {
	display: flex;
	flex-direction: column;
}

.article-hero__byline strong {
	color: var(--ink);
	font-size: .86rem;
}

.article-hero__mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--c-forest);
	color: var(--c-mint-300);
	font-size: 1rem;
	font-weight: 900;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
	justify-content: space-between;
	gap: clamp(44px, 7vw, 96px);
	padding-block: clamp(58px, 8vw, 110px);
}

.article-content {
	min-width: 0;
	color: #294543;
	font-size: clamp(1rem, .97rem + .12vw, 1.075rem);
	line-height: 1.82;
}

.article-content > * + * {
	margin-top: 1.3rem;
}

.article-content h2,
.article-content h3 {
	color: var(--c-forest);
	font-weight: 850;
	letter-spacing: -.03em;
	scroll-margin-top: 120px;
}

.article-content h2 {
	margin-top: 2.75rem;
	font-size: clamp(1.55rem, 1.25rem + .9vw, 2.05rem);
	line-height: 1.18;
}

.article-content h3 {
	margin-top: 2.1rem;
	font-size: 1.3rem;
}

.article-content a {
	color: var(--green);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--green-100);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.article-content a:hover {
	text-decoration-color: currentColor;
}

.article-content ul,
.article-content ol {
	display: grid;
	gap: .7rem;
	padding-left: 1.4rem;
}

.article-content ul {
	list-style: disc;
}

.article-content ol {
	list-style: decimal;
}

.article-content li::marker {
	color: var(--green);
	font-weight: 800;
}

.article-content blockquote {
	margin-block: 2rem;
	padding: 1.4rem 1.6rem;
	border-left: 4px solid var(--c-emerald);
	border-radius: 0 var(--r) var(--r) 0;
	background: var(--c-mint);
	color: var(--c-forest);
	font-size: 1.1rem;
	font-weight: 600;
}

.article-content img {
	width: 100%;
	height: auto;
	margin-block: 1.8rem;
	border-radius: var(--r-lg);
}

.article-aside {
	align-self: stretch;
}

.article-aside__card {
	position: sticky;
	top: 118px;
	padding: clamp(24px, 3vw, 34px);
	border-radius: var(--r-xl);
	background: var(--c-forest);
	color: #fff;
	box-shadow: var(--sh-3);
}

body.admin-bar .article-aside__card {
	top: 150px;
}

.article-aside__card .eyebrow {
	color: var(--c-mint-300);
}

.article-aside__card h2 {
	margin-top: .75rem;
	color: #fff;
	font-size: 1.45rem;
	font-weight: 850;
	letter-spacing: -.03em;
	line-height: 1.2;
}

.article-aside__card p:not(.eyebrow) {
	margin-top: 1rem;
	color: rgba(255, 255, 255, .74);
	font-size: .9rem;
	line-height: 1.65;
}

.article-aside__card .btn {
	width: 100%;
	margin-top: 1.4rem;
}

.article-share {
	background: #fff;
}

.article-share__inner {
	padding-block: clamp(22px, 2.5vw, 32px);
}

.article-share__date {
	display: flex;
	align-items: center;
	gap: .4rem;
	color: #82918f;
	font-size: clamp(.72rem, .69rem + .12vw, .8rem);
	font-weight: 400;
}

.article-share__date svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.article-share__divider {
	height: 1px;
	margin-top: clamp(12px, 1.5vw, 18px);
	background: var(--line);
}

.article-share__title {
	margin-top: clamp(18px, 2.2vw, 28px);
	color: #4a5b59;
	font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
	font-weight: 750;
	letter-spacing: -.02em;
	text-align: center;
}

.article-share__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(8px, 1vw, 12px);
	margin-top: clamp(12px, 1.5vw, 16px);
}

.article-share__button {
	display: grid;
	width: 44px;
	height: 44px;
	flex: none;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f0f2f2;
	color: #172724;
	box-shadow: inset 0 0 0 1px rgba(12, 40, 40, .02);
	transition: color .18s, background .18s, transform .18s, box-shadow .18s;
}

.article-share__button:hover,
.article-share__button:focus-visible {
	transform: translateY(-3px);
	background: var(--c-forest);
	color: #fff;
	box-shadow: var(--sh-2);
}

.article-share__button.is-copied {
	background: var(--c-green);
	color: #fff;
}

.article-share__button svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.article-share__button .share-icon-fill {
	fill: currentColor;
	stroke: none;
}

.article-footer {
	border-top: 1px solid #dce4ec;
	background: var(--c-cool);
}

.article-footer > .wrap {
	padding-block: clamp(38px, 5vw, 64px);
}

.article-footer .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.article-footer .nav-next {
	text-align: right;
}

.article-footer a {
	display: flex;
	height: 100%;
	flex-direction: column;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	transition: border-color .18s, transform .18s, box-shadow .18s;
}

.article-footer a:hover {
	transform: translateY(-2px);
	border-color: var(--green-100);
	box-shadow: var(--sh-2);
}

.article-footer a span {
	color: var(--muted);
	font-family: var(--cond);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.article-footer a strong {
	margin-top: .45rem;
	color: var(--c-forest);
	font-size: 1rem;
	line-height: 1.35;
}

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

	.article-layout {
		grid-template-columns: minmax(0, 760px);
		justify-content: center;
	}

	.article-aside__card {
		position: static;
	}
}

@media (max-width: 640px) {
	.blog-index__top {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-card__visual {
		height: 180px;
	}

	.blog-card__meta,
	.article-hero__meta {
		gap: .35rem .55rem;
	}

	.blog-card__meta > * + *::before,
	.article-hero__meta > * + *::before {
		margin-right: .55rem;
	}

	.article-footer .nav-links {
		grid-template-columns: 1fr;
	}

	.article-footer .nav-next {
		text-align: left;
	}

	.article-share__inner {
		padding-block: 20px 24px;
	}

	.article-share__buttons {
		gap: 8px;
	}
}
