/* ==========================================================================
   AFEMPES Propuesta 2 — Dirección Editorial Cálida & Inmersiva (Magazine)
   Integrada con la cabecera institucional de la Opción 1 en la portada (/)
   ========================================================================== */

body.home {
	background-color: #F5F6F3;
	color: #132A24;
	font-family: var(--af-font-body);
}

.af-p2-container {
	width: 100%;
	max-width: var(--af-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2rem);
}

.af-p2-serif {
	font-family: "Lora", Georgia, serif;
	letter-spacing: -0.02em;
}

body.home #af-newsletter-title {
	font-family: "Lora", Georgia, serif;
}

/* ---------- 1. Cabecera Flotante de 1 Sola Barra ---------- */
.af-p2-header {
	position: sticky;
	top: 0;
	z-index: var(--af-z-sticky);
	background: rgba(245, 246, 243, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(19, 42, 36, 0.09);
}

.af-p2-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 74px;
}

.af-p2-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.af-p2-logo-img {
	display: block;
	height: 40px;
	width: auto;
	object-fit: contain;
}

.af-p2-nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.af-p2-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.1rem;
}

.af-p2-nav-list > li {
	position: relative;
	margin: 0;
}

.af-p2-nav-list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.22rem;
	padding: 0.45rem 0.42rem;
	font-size: 0.79rem;
	font-weight: 600;
	color: #132A24;
	text-decoration: none;
	white-space: nowrap;
	border-radius: var(--af-radius-pill);
}

.af-p2-nav-list > li > a:hover,
.af-p2-nav-list > li > a:focus-visible {
	background-color: #E3ECE7;
	color: #165B4A;
}

.af-p2-nav-list li.menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.7;
}

.af-p2-nav-list ul.sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	background: #FFFFFF;
	border: 1px solid rgba(19, 42, 36, 0.12);
	border-radius: 14px;
	box-shadow: var(--af-shadow-md);
	z-index: var(--af-z-dropdown);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.af-p2-nav-list li.menu-item-has-children:hover > ul.sub-menu,
.af-p2-nav-list li.menu-item-has-children:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.af-p2-nav-list ul.sub-menu li {
	position: relative;
}

.af-p2-nav-list ul.sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 0.8rem;
	font-size: 0.84rem;
	font-weight: 500;
	color: #132A24;
	text-decoration: none;
	border-radius: 8px;
}

.af-p2-nav-list ul.sub-menu a:hover {
	background: #EBF2EE;
	color: #165B4A;
}

.af-p2-nav-list ul.sub-menu li.menu-item-has-children > a::after {
	transform: rotate(-45deg);
}

.af-p2-nav-list ul.sub-menu ul.sub-menu {
	top: -6px;
	left: calc(100% + 6px);
}

.af-p2-nav-list > li:nth-last-child(-n+3) ul.sub-menu {
	left: auto;
	right: 0;
}

.af-p2-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.af-p2-phone-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	border-radius: var(--af-radius-pill);
	background: #FFFFFF;
	border: 1px solid rgba(22, 91, 74, 0.22);
	color: #132A24;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.af-p2-phone-pill:hover {
	background: #EBF2EE;
	color: #165B4A;
	border-color: #165B4A;
}

.af-p2-body button.af-p2-subscribe-btn {
	background-color: #165B4A;
	color: #FFFFFF;
	border: 1.5px solid #165B4A;
	padding: 0.58rem 1rem;
	border-radius: var(--af-radius-pill);
	font-family: var(--af-font-body);
	font-size: 0.84rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

.af-p2-body button.af-p2-subscribe-btn:hover,
.af-p2-body button.af-p2-subscribe-btn:focus,
.af-p2-body button.af-p2-subscribe-btn:focus-visible {
	background-color: #0F4336;
	border-color: #0F4336;
	color: #FFFFFF;
	box-shadow: none;
}

.af-p2-body button.af-p2-mobile-toggle {
	display: none;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	border: 1.5px solid rgba(22, 91, 74, 0.28);
	border-radius: var(--af-radius-pill);
	background-color: #FFFFFF;
	color: #132A24;
	font-family: var(--af-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: none;
	cursor: pointer;
}

.af-p2-body button.af-p2-mobile-toggle:hover,
.af-p2-body button.af-p2-mobile-toggle:focus,
.af-p2-body button.af-p2-mobile-toggle:focus-visible {
	background-color: #EBF2EE;
	color: #165B4A;
	border-color: #165B4A;
	box-shadow: none;
}

@media (max-width: 1180px) {
	.af-p2-nav,
	.af-p2-header-actions {
		display: none;
	}
	.af-p2-body button.af-p2-mobile-toggle {
		display: inline-flex;
	}
}

/* ---------- 2. Hero Inmersivo en Bosque Profundo + Dock Flotante ---------- */
.af-p2-hero-wrap {
	padding-top: 1.5rem;
	padding-bottom: 1rem;
}

.af-p2-hero-card {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background:
		radial-gradient(circle at 86% 18%, rgba(166, 110, 126, 0.22) 0%, transparent 38%),
		radial-gradient(circle at 12% 90%, rgba(137, 165, 153, 0.18) 0%, transparent 45%),
		linear-gradient(135deg, #103B31 0%, #154E40 60%, #113C32 100%);
	padding: clamp(2rem, 4.2vw, 3.6rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 6vw, 4.75rem);
	color: #F7FAF8;
	box-shadow: 0 28px 64px -22px rgba(16, 59, 49, 0.34);
}

.af-p2-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(1.75rem, 4vw, 3.5rem);
}

.af-p2-eyebrow-light {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #CBE2D8;
}

.af-p2-eyebrow-light::before {
	content: "";
	width: 24px;
	height: 2px;
	background: #D99DAE;
	border-radius: 2px;
}

.af-p2-hero-title {
	font-family: "Lora", Georgia, serif;
	font-size: clamp(1.8rem, 2.85vw, 2.75rem);
	font-weight: 600;
	line-height: 1.16;
	color: #FFFFFF;
	margin-bottom: 1.15rem;
	text-wrap: balance;
}

.af-p2-hero-title em {
	font-style: italic;
	font-weight: 500;
	color: #CFE9DF;
}

.af-p2-hero-sub {
	margin: 0 0 1.65rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: #DCECE5;
	max-width: 56ch;
}

.af-p2-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.af-p2-btn-light {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.88rem 1.45rem;
	border-radius: var(--af-radius-pill);
	background: #FFFFFF;
	color: #103B31;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
}

.af-p2-btn-light:hover {
	background: #EBF2EE;
	color: #0B2A22;
	transform: translateY(-1px);
}

.af-p2-btn-ghost-light {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.88rem 1.45rem;
	border-radius: var(--af-radius-pill);
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #FFFFFF;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
}

.af-p2-btn-ghost-light:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: #FFFFFF;
	color: #FFFFFF;
}

.af-p2-hero-media {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.42);
}

.af-p2-hero-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center 35%;
}

/* Dock flotante inferior del Hero */
.af-p2-dock {
	position: relative;
	z-index: 3;
	width: min(94%, 1120px);
	margin: -2.35rem auto 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: #FFFFFF;
	border: 1px solid rgba(19, 42, 36, 0.11);
	border-radius: 18px;
	box-shadow: 0 18px 40px -16px rgba(16, 59, 49, 0.16);
	overflow: hidden;
}

.af-p2-dock-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.1rem 1.35rem;
	text-decoration: none;
	color: #132A24;
	border-right: 1px solid rgba(19, 42, 36, 0.09);
}

.af-p2-dock-item:last-child {
	border-right: 0;
}

.af-p2-dock-item:hover {
	background: #F4F8F6;
	color: #165B4A;
}

.af-p2-dock-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #EBF2EE;
	color: #165B4A;
	flex-shrink: 0;
}

.af-p2-dock-label {
	display: block;
	font-size: 0.76rem;
	font-weight: 600;
	color: #425A53;
}

.af-p2-dock-val {
	display: block;
	font-weight: 700;
	font-size: 0.96rem;
	color: #132A24;
}

@media (max-width: 960px) {
	.af-p2-hero-grid {
		grid-template-columns: 1fr;
	}
	.af-p2-dock {
		width: 100%;
		margin-top: 1rem;
		grid-template-columns: 1fr;
	}
	.af-p2-dock-item {
		border-right: 0;
		border-bottom: 1px solid rgba(19, 42, 36, 0.09);
	}
	.af-p2-dock-item:last-child {
		border-bottom: 0;
	}
}

/* ---------- 3. Bienvenida Editorial + Bandas Numeradas 01/02/03 ---------- */
.af-p2-section {
	padding-block: clamp(3.25rem, 6vw, 5.25rem);
}

.af-p2-editorial-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
	margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.af-p2-seal-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.5rem;
	background: #FFFFFF;
	border: 1px solid rgba(19, 42, 36, 0.1);
	border-radius: 18px;
}

.af-p2-seal-box img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.af-p2-seal-quote {
	margin: 0;
	font-family: "Lora", Georgia, serif;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #165B4A;
}

.af-p2-welcome-copy h2 {
	font-family: "Lora", Georgia, serif;
	font-size: clamp(1.85rem, 3vw, 2.55rem);
	line-height: 1.18;
	margin-bottom: 1.1rem;
}

.af-p2-welcome-copy p {
	margin: 0 0 1rem;
	color: #364E47;
	font-size: 1.04rem;
	max-width: 66ch;
}

/* Bandas editoriales numeradas con divisores finos (sin cajas) */
.af-p2-roles-list {
	border-top: 1px solid rgba(19, 42, 36, 0.16);
}

.af-p2-role-row {
	display: grid;
	grid-template-columns: 76px minmax(0, 260px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.75rem;
	padding: 1.65rem 1rem;
	border-bottom: 1px solid rgba(19, 42, 36, 0.16);
	transition: background-color 0.2s ease, padding-inline 0.2s ease;
}

.af-p2-role-row:hover {
	background-color: #FFFFFF;
	border-radius: 12px;
}

.af-p2-role-num {
	font-family: "Lora", Georgia, serif;
	font-size: 2rem;
	font-weight: 600;
	color: #A66E7E;
	line-height: 1;
}

.af-p2-role-name {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #132A24;
}

.af-p2-role-desc {
	margin: 0;
	color: #425A53;
	font-size: 0.97rem;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.af-p2-editorial-grid {
		grid-template-columns: 1fr;
	}
	.af-p2-role-row {
		grid-template-columns: 56px 1fr;
		padding-inline: 0.5rem;
	}
	.af-p2-role-desc,
	.af-p2-role-action {
		grid-column: 2;
	}
}

/* ---------- 4. Sedes y Contacto Directo ---------- */
.af-p2-sedes-section {
	background: #FFFFFF;
	border-top: 1px solid rgba(19, 42, 36, 0.09);
	border-bottom: 1px solid rgba(19, 42, 36, 0.09);
}

.af-p2-sedes-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: stretch;
}

.af-p2-sedes-col h2 {
	font-family: "Lora", Georgia, serif;
	font-size: clamp(1.75rem, 2.7vw, 2.25rem);
	margin-bottom: 1.25rem;
}

.af-p2-sede-cards {
	display: grid;
	gap: 0.9rem;
}

.af-p2-sede-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	background: #F5F6F3;
	border: 1px solid rgba(19, 42, 36, 0.1);
	border-radius: 16px;
}

.af-p2-sede-item:hover {
	background: #EBF2EE;
	border-color: rgba(22, 91, 74, 0.25);
}

.af-p2-sede-kicker {
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #165B4A;
	margin-bottom: 0.25rem;
}

.af-p2-sede-addr {
	margin: 0;
	font-weight: 600;
	color: #132A24;
}

.af-p2-mauve-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(1.75rem, 3.5vw, 2.5rem);
	border-radius: 22px;
	background: linear-gradient(155deg, #6E3E4C 0%, #562E3A 100%);
	color: #FFFFFF;
	box-shadow: 0 22px 46px -18px rgba(86, 46, 58, 0.42);
}

.af-p2-mauve-panel h2 {
	font-family: "Lora", Georgia, serif;
	color: #FFFFFF;
	font-size: 1.75rem;
	margin-bottom: 1.15rem;
}

.af-p2-mauve-links {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.af-p2-mauve-tile {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.05rem;
}

.af-p2-mauve-tile:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #FFFFFF;
}

.af-p2-mauve-note {
	margin: 0 0 1.4rem;
	font-size: 0.94rem;
	color: #F4E6EA;
}

.af-p2-mauve-note a {
	color: #FFFFFF;
	font-weight: 700;
}

.af-p2-mauve-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.af-p2-mauve-cta h3 {
	margin: 0;
	font-family: "Lora", Georgia, serif;
	font-size: 1.35rem;
	color: #FFFFFF;
}

@media (max-width: 960px) {
	.af-p2-sedes-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 540px) {
	.af-p2-sede-item {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- 5. Noticias en Formato Magazine ---------- */
.af-p2-mag-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.af-p2-mag-head h2 {
	font-family: "Lora", Georgia, serif;
	font-size: clamp(1.85rem, 3vw, 2.5rem);
	margin-bottom: 0;
}

.af-p2-mag-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	align-items: start;
}

.af-p2-lead-story {
	background: #FFFFFF;
	border: 1px solid rgba(19, 42, 36, 0.11);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--af-shadow-sm);
}

.af-p2-lead-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #EBF2EE;
	overflow: hidden;
}

.af-p2-lead-media.is-portrait,
.af-p2-lead-media.is-wide {
	padding: 1rem;
	background: #EDF3EF;
}

.af-p2-lead-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.af-p2-lead-media.is-portrait img,
.af-p2-lead-media.is-wide img {
	object-fit: contain;
}

.af-p2-lead-body {
	padding: 1.5rem 1.75rem 1.75rem;
}

.af-p2-lead-body h3 {
	font-family: "Lora", Georgia, serif;
	font-size: 1.5rem;
	line-height: 1.28;
	margin: 0.5rem 0 0.75rem;
}

.af-p2-lead-body h3 a {
	color: #132A24;
	text-decoration: none;
}

.af-p2-lead-body h3 a:hover {
	color: #165B4A;
}

.af-p2-story-list {
	background: #FFFFFF;
	border: 1px solid rgba(19, 42, 36, 0.11);
	border-radius: 22px;
	padding: 0.65rem 1.5rem 1.35rem;
	box-shadow: var(--af-shadow-sm);
}

.af-p2-story-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.05rem;
	border-bottom: 1px solid rgba(19, 42, 36, 0.1);
}

.af-p2-story-row > div {
	flex: 1;
	min-width: 0;
}

.af-p2-story-row:last-of-type {
	border-bottom: 0;
}

.af-p2-story-row h3 {
	font-family: "Lora", Georgia, serif;
	font-size: 1.04rem;
	line-height: 1.35;
	margin: 0.28rem 0 0;
}

.af-p2-story-row h3 a {
	color: #132A24;
	text-decoration: none;
}

.af-p2-story-row h3 a:hover {
	color: #165B4A;
}

.af-p2-story-arrow {
	color: #165B4A;
	padding-top: 0.3rem;
	flex-shrink: 0;
}

.af-p2-story-foot {
	padding-top: 0.9rem;
	border-top: 1px solid rgba(19, 42, 36, 0.1);
}

@media (max-width: 960px) {
	.af-p2-mag-grid {
		grid-template-columns: 1fr;
	}
}
