/*
Theme Name: Vibe Bournemouth
Author: Vibe Bournemouth
Description: Tema custom para la web de Vibe Bournemouth. PHP puro, sin page builders. Estiliza WooCommerce vía overrides sin tocar su lógica.
Version: 2.0.3
*/

:root {
	/* Official chromatic system.
	   Purple — structural color: header, footer, heroes and deep surfaces.
	   Gold — scripture references, icons, ceremonial/spiritual accents.
	   Gradient (below) — primary actions only. Outline — secondary actions. */
	--color-purple-deep: #49355D;
	--color-purple-medium: #68427A;
	--color-purple-light: #9060A2;
	--color-gold: #C9A84C;
	--color-gold-light: #E8C97A;
	--color-bg: #FAFAF8;
	--color-bg-alt: #F2EFF8;
	--color-text-dark: #1A1A2E;
	--color-text-body: #3D3D3D;
	--color-text-muted: #7A6E8A;

	/* Centralized overlay tint for photo heroes — keep in sync with
	   --color-purple-deep by hand (rgba() can't reference a var() alongside
	   a separate alpha channel). */
	--color-purple-overlay: rgba(73, 53, 93, 0.75);

	/* Primary-action gradient. Coral→magenta→indigo, used exclusively via
	   .button-primary. Indigo exists only inside this gradient — never as a
	   standalone color or section background. Do not extend the gradient to
	   backgrounds, titles, body text, navigation, or decorative icons. */
	--color-coral: #BF545A;
	--color-magenta: #A83BA9;
	--color-indigo: #5C50C7;
	--gradient-vibe: linear-gradient(
		135deg,
		var(--color-coral) 0%,
		var(--color-magenta) 50%,
		var(--color-indigo) 100%
	);

	--font-heading: 'Playfair Display', serif;
	--font-body: 'Lato', sans-serif;

	--radius-button: 8px;
	--radius-card: 12px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text-body);
	font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-text-dark);
}

a {
	color: var(--color-purple-medium);
}

.button,
button,
input[type="submit"] {
	border-radius: var(--radius-button);
	background-color: var(--color-gold);
	color: var(--color-text-dark);
	border: none;
	padding: 0.75em 1.5em;
	font-family: var(--font-body);
	cursor: pointer;
}

.card {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	padding: 1.5em;
}

/* Hero Section */
.hero-section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	padding: 4em 1.5em;
	text-align: center;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--color-purple-overlay);
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 700px;
}

.hero-badge {
	display: inline-block;
	margin-bottom: 1.5em;
	padding: 0.4em 1em;
	border: 1px solid var(--color-gold-light);
	border-radius: var(--radius-button);
	color: var(--color-gold-light);
	font-family: var(--font-body);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}

.hero-title {
	margin: 0 0 0.6em;
	color: #ffffff;
	font-size: 2.75rem;
	line-height: 1.15;
}

.hero-subtitle {
	margin: 0 0 2em;
	color: #ffffff;
	font-size: 1.15rem;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	justify-content: center;
}

/* Primary action — official gradient treatment. No border/shadow at rest so
   the gradient meets the rounded corners cleanly on any background. */
.button-primary {
	display: inline-block;
	background: var(--gradient-vibe);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-button);
	padding: 0.85em 1.75em;
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
}

.button-outline {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid #ffffff;
	border-radius: var(--radius-button);
	padding: 0.85em 1.75em;
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration: none;
}

/* Services Section */
.services-section {
	background-color: var(--color-bg);
	padding: 5em 1.5em;
	text-align: center;
}

.services-header {
	margin-bottom: 3em;
}

.services-title {
	margin: 0 0 0.5em;
}

.services-subtitle {
	margin: 0;
	color: var(--color-text-muted);
	font-family: var(--font-body);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5em;
	max-width: 1100px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}

.service-card {
	background-color: var(--color-purple-deep);
	color: #ffffff;
	border-radius: var(--radius-card);
	padding: 2.5em 1.5em;
}

.service-icon {
	display: block;
	margin-bottom: 0.75em;
}

.service-icon svg {
	width: 36px;
	height: 36px;
	color: var(--color-gold);
}

.service-name {
	margin: 0 0 0.5em;
	color: #ffffff;
}

.service-time {
	margin: 0 0 0.25em;
	color: var(--color-gold);
	font-size: 1.25rem;
	font-weight: 700;
}

.service-day {
	margin: 0;
	color: #ffffff;
	opacity: 0.8;
}

.button-outline-dark {
	display: inline-block;
	background-color: transparent;
	color: var(--color-purple-medium);
	border: 1px solid var(--color-purple-medium);
	border-radius: var(--radius-button);
	padding: 0.85em 1.75em;
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration: none;
}

/* Buttons — shared hover/focus-visible states. */
.button-primary,
.button-outline,
.button-outline-dark {
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.button-outline:hover,
.button-outline:focus-visible {
	background-color: rgba(255, 255, 255, 0.15);
}

.button-outline-dark:hover,
.button-outline-dark:focus-visible {
	background-color: var(--color-purple-medium);
	color: #ffffff;
}

.button-outline:focus-visible,
.button-outline-dark:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

/* .button-primary keeps hover and focus-visible in separate rules on
   purpose — they must not produce the same effect. Hover is a soft lift;
   keyboard focus is a ring only, with no shadow/saturation/transform. */
.button-primary:hover {
	transform: translateY(-2px);
	filter: saturate(1.08);
	box-shadow: 0 4px 12px rgba(92, 80, 199, 0.18);
}

.button-primary:focus-visible {
	outline: 3px solid var(--color-gold-light);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.button-primary,
	.button-outline,
	.button-outline-dark {
		transition: none;
	}

	.button-primary:hover {
		transform: none;
	}
}

/* Buttons — mobile overflow fix. .button/.button-primary/.button-outline
   are plain <a> tags (display: inline by default), so long CTA text wraps
   with broken/overlapping padding on narrow screens. Force inline-block so
   width/max-width and centered wrapping behave correctly. */
@media (max-width: 600px) {
	.button,
	.button-primary,
	.button-outline,
	.button-outline-dark,
	.button-large {
		display: inline-block;
		width: auto;
		max-width: 90%;
		white-space: normal;
		text-align: center;
		line-height: 1.4;
		padding: 0.75em 1.25em;
	}
}

/* About / Quiénes Somos Section */
.about-section {
	background-color: var(--color-bg);
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5em;
	align-items: center;
	padding: 4em 1.5em;
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.about-section {
		grid-template-columns: 3fr 2fr;
		gap: 3.5em;
	}
}

.about-badge {
	display: inline-block;
	margin-bottom: 1em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.about-title {
	margin: 0 0 0.75em;
}

.about-text {
	margin: 0 0 1.25em;
	line-height: 1.7;
}

.about-image {
	margin: 0;
}

.about-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-card);
}

.about-image figcaption {
	margin-top: 0.75em;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
}

/* Vision Section */
.vision-section {
	background-color: var(--color-purple-deep);
	color: #ffffff;
	padding: 5em 1.5em;
	text-align: center;
}

.vision-header {
	margin-bottom: 3em;
}

.vision-title {
	margin: 0 0 0.5em;
	color: var(--color-gold);
}

.vision-subtitle {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-family: var(--font-body);
}

.vision-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25em;
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 600px) {
	.vision-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.vision-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.vision-box {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 28px;
}

.vision-icon {
	display: block;
	margin-bottom: 0.75em;
}

.vision-icon svg {
	width: 32px;
	height: 32px;
	color: var(--color-gold);
}

.vision-name {
	margin: 0 0 0.5em;
	color: #ffffff;
	font-size: 1.1rem;
}

.vision-description {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Verse Section */
.verse-section {
	background-color: var(--color-bg-alt);
	padding: 5em 1.5em;
	display: flex;
	justify-content: center;
}

.verse-quote {
	margin: 0;
	max-width: 700px;
	text-align: center;
}

.verse-text {
	margin: 0 0 1em;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.5rem;
	line-height: 1.5;
	color: var(--color-text-dark);
}

.verse-reference {
	display: block;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Devotionals Section */
.devotionals-section {
	background-color: var(--color-bg);
	padding: 5em 1.5em;
	text-align: center;
}

.devotionals-title {
	margin: 0 0 2em;
}

.devotionals-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	max-width: 1100px;
	margin: 0 auto;
	text-align: left;
}

@media (min-width: 768px) {
	.devotionals-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.devotional-card {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.devotional-image-link {
	display: block;
}

.devotional-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.devotional-image-placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	background-color: var(--color-text-muted);
	opacity: 0.3;
}

.devotional-body {
	padding: 1.5em;
}

.devotional-category {
	display: inline-block;
	margin-bottom: 0.5em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.devotional-title {
	margin: 0 0 0.5em;
	font-size: 1.15rem;
}

.devotional-title a {
	color: var(--color-text-dark);
	text-decoration: none;
}

.devotional-excerpt {
	margin: 0;
	color: var(--color-text-body);
	font-size: 0.95rem;
	line-height: 1.6;
}

.devotionals-cta {
	margin-top: 3em;
}

/* Offering CTA Section */
.offering-section {
	background-color: var(--color-purple-deep);
	padding: 5em 1.5em;
	text-align: center;
}

.offering-title {
	margin: 0 0 0.75em;
	color: var(--color-gold);
}

.offering-text {
	margin: 0 auto 2em;
	max-width: 600px;
	color: #ffffff;
	line-height: 1.7;
}

.offering-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	justify-content: center;
}

.vibe-church-logo {
	margin: 0 0 2em;
}

.vibe-church-logo img {
	display: block;
	max-width: 220px;
	margin: 0 auto;
}

.vibe-church-logo figcaption {
	margin-top: 0.75em;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
	font-style: italic;
}

/* Contact Section */
.contact-section {
	background-color: var(--color-bg);
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5em;
	padding: 5em 1.5em;
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.contact-section {
		grid-template-columns: 1fr 1fr;
		gap: 3em;
	}
}

.contact-title {
	margin: 0 0 1em;
}

/* Contact rows — four sober icon rows (Ubicación/Email/Teléfonos/Horarios on
   Contacto; a matching set on the Home #contacto section for visual balance
   against the map). See .pillar-icon/.hub-card-icon for the same gold-ring
   circle language used elsewhere in the theme. */
.contact-rows {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
	margin: 0 0 1.5em;
}

.contact-row {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	padding: 0.75em;
	border: 1px solid transparent;
	border-radius: var(--radius-card);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-row-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--color-bg-alt);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.contact-row-body {
	min-width: 0;
}

.contact-row-label {
	display: block;
	margin-bottom: 0.2em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.contact-row-value {
	margin: 0;
	color: var(--color-text-body);
	line-height: 1.6;
}

.contact-row-value a {
	color: var(--color-text-dark);
	text-decoration: underline;
	text-decoration-color: rgba(201, 168, 76, 0.5);
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.contact-row-value a:hover,
.contact-row-value a:focus-visible {
	color: var(--color-purple-medium);
}

.contact-row-value a:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

@media (hover: hover) {
	.contact-row:hover {
		border-color: rgba(201, 168, 76, 0.4);
		background-color: var(--color-bg-alt);
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-row {
		transition: none;
	}
}

/* Location map — shared by Home (#contacto) and Contacto. See
   template-parts/location-map.php. .location-map--wide gives Contacto a
   more generous max-width than the Home summary version. */
.location-map {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
}

.location-map--wide {
	max-width: 1000px;
	margin: 0 auto;
}

.location-map-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-card);
	transition: box-shadow 0.2s ease;
}

.location-map-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

@media (hover: hover) {
	.location-map:hover .location-map-frame {
		box-shadow: 0 10px 28px rgba(73, 53, 93, 0.16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.location-map-frame {
		transition: none;
	}
}

.location-map-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85em;
}

.location-map-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--color-bg-alt);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.location-map-text {
	flex: 1 1 auto;
	min-width: 180px;
}

.location-map-name {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-text-dark);
}

.location-map-address {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.location-map-directions {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--color-purple-medium);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.15s ease;
}

.location-map-directions svg {
	width: 16px;
	height: 16px;
}

.location-map-directions:hover,
.location-map-directions:focus-visible {
	color: var(--color-gold);
}

.location-map-directions:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.location-map-directions {
		transition: none;
	}
}

/* Contact Page — Form panel. A softly differentiated surface around the
   form — deliberately not a floating/dark card, just enough separation from
   the practical-info column beside it. */
.contact-form-panel {
	background-color: var(--color-bg-alt);
	border: 1px solid rgba(122, 110, 138, 0.15);
	border-radius: var(--radius-card);
	padding: 2.5em;
	box-shadow: 0 2px 14px rgba(73, 53, 93, 0.06);
}

.contact-form-note {
	margin: -0.5em 0 1.5em;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.form-label {
	color: var(--color-text-dark);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9rem;
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 0.75em 1em;
	border: 1px solid var(--color-text-muted);
	border-radius: var(--radius-button);
	background-color: var(--color-bg);
	color: var(--color-text-dark);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
	min-height: 140px;
	resize: vertical;
}

.form-input:hover,
.form-textarea:hover {
	border-color: var(--color-purple-light);
}

.form-input:focus,
.form-textarea:focus,
.form-input:focus-visible,
.form-textarea:focus-visible {
	border-color: var(--color-purple-medium);
	outline: 2px solid var(--color-gold);
	outline-offset: 1px;
	box-shadow: 0 0 0 3px rgba(104, 66, 122, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.form-input,
	.form-textarea {
		transition: none;
	}
}

.form-banner {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-radius: var(--radius-button);
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.5;
}

.form-banner--success {
	background-color: #E6F4EA;
	border: 1px solid #A8D5B5;
	color: #1E4620;
}

.form-banner--error {
	background-color: #FBE9E7;
	border: 1px solid #E4A79C;
	color: #7A2E22;
}

/* Site Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--color-purple-deep);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	padding: 0 1.5em;
	max-width: 1400px;
	margin: 0 auto;
}

.site-branding .site-title {
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.site-logo {
	display: block;
}

.site-logo img {
	display: block;
	max-height: 90px;
	width: auto;
}

@media (max-width: 899px) {
	.site-logo img {
		max-height: 60px;
	}
}

.primary-navigation {
	display: none;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 2em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation .primary-menu a {
	color: #ffffff;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.primary-navigation .primary-menu a:hover,
.primary-navigation .primary-menu a:focus {
	color: var(--color-gold);
}

.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #ffffff;
	border-radius: 2px;
}

.site-header-inner.is-menu-open .primary-navigation {
	display: block;
	position: absolute;
	top: 84px;
	left: 0;
	right: 0;
	background-color: var(--color-purple-deep);
	padding: 1em 1.5em 1.5em;
}

.site-header-inner.is-menu-open .primary-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25em;
}

@media (min-width: 900px) {
	.primary-navigation {
		display: block;
	}

	.menu-toggle {
		display: none;
	}
}

/* Site Footer */
.site-footer {
	background-color: var(--color-purple-deep);
	border-top: 3px solid var(--color-gold);
	padding: 3em 1.5em 2em;
}

.footer-columns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2em;
	max-width: 1200px;
	margin: 0 auto 2em;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-columns {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		align-items: start;
		justify-content: stretch;
		text-align: left;
	}

	.footer-brand {
		text-align: left;
	}

	.footer-nav-column {
		text-align: center;
	}

	.footer-nav-column .footer-menu {
		justify-content: center;
	}

	.footer-contact {
		text-align: right;
		align-items: flex-end;
	}
}

.footer-site-title {
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	text-decoration: none;
}

.footer-logo {
	display: inline-block;
}

.footer-logo img {
	display: block;
	max-height: 70px;
	width: auto;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.footer-menu a {
	color: var(--color-gold);
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
	color: var(--color-gold-light);
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-body);
	font-size: 0.9rem;
}

.footer-contact p {
	margin: 0;
}

.footer-contact a:not(.social-link) {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.footer-contact a:not(.social-link):hover,
.footer-contact a:not(.social-link):focus {
	color: var(--color-gold-light);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.social-links--footer {
	margin-top: 0.65rem;
}

.social-links--centered {
	justify-content: center;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible,
.footer-contact .social-link:hover,
.footer-contact .social-link:focus-visible {
	border-color: var(--color-gold);
	background: var(--color-gold);
	color: var(--color-purple-deep);
	transform: translateY(-2px);
}

.social-link:focus-visible {
	outline: 3px solid rgba(255, 215, 107, 0.45);
	outline-offset: 3px;
}

.contact-socials {
	margin-top: 1.5rem;
}

.contact-socials h3,
.institute-socials h3 {
	margin: 0 0 0.8rem;
}

.contact-socials .social-link,
.institute-socials .social-link {
	border-color: rgba(74, 48, 93, 0.25);
	background: var(--color-purple-deep);
}

.institute-socials {
	margin-top: 1.5rem;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.social-link {
		transition: none;
	}

	.social-link:hover,
	.social-link:focus-visible {
		transform: none;
	}
}

.site-info {
	margin: 0;
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 0.85rem;
	text-align: center;
}

/* Dropdown Submenus */
.menu-item-has-children {
	position: relative;
}

.menu-item-has-children > a::after {
	content: '▾';
	display: inline-block;
	margin-left: 0.35em;
	font-size: 0.65em;
}

.sub-menu {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation .primary-menu .sub-menu a {
	font-weight: 400;
	text-transform: none;
}

@media (min-width: 900px) {
	.sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		padding: 0.5em 0;
		background-color: var(--color-purple-medium);
		border-radius: var(--radius-button);
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
		z-index: 20;
	}

	.sub-menu li {
		display: block;
	}

	.sub-menu a {
		display: block;
		padding: 0.65em 1.25em;
		white-space: nowrap;
	}

	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

@media (max-width: 899px) {
	.sub-menu {
		display: block;
		padding-left: 1em;
	}

	.sub-menu li {
		margin-top: 0.75em;
	}
}

/* Generic Page Hero (reusable across inner pages) */
.page-hero {
	background-color: var(--color-purple-deep);
	padding: 6em 1.5em;
	text-align: center;
}

/* Modifier: page hero with a background photo + purple overlay (same 75%
   opacity treatment as the Home hero), for pages that have an assigned image. */
.page-hero--image {
	position: relative;
	background-size: cover;
	background-position: center;
}

.page-hero--image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--color-purple-overlay);
}

.page-hero--image .page-hero-inner {
	position: relative;
	z-index: 1;
}

.page-hero-inner {
	max-width: 700px;
	margin: 0 auto;
}

.page-hero-title {
	margin: 0 0 0.5em;
	color: #ffffff;
}

.page-hero-subtitle {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 1.05rem;
}

/* Modifier: wider hero column for a page whose subtitle is a full statement
   rather than a short tagline (e.g. Nuestra Visión's vision declaration). */
.page-hero--wide .page-hero-inner {
	max-width: 820px;
}

.page-hero-subtitle--statement {
	max-width: 700px;
	margin: 0 auto;
	font-size: 1.2rem;
	line-height: 1.7;
}

/* Generic Page Content (reusable across inner pages) */
.page-content-section {
	background-color: var(--color-bg);
	padding: 5em 1.5em;
}

.page-content {
	max-width: 700px;
	margin: 0 auto;
}

.page-content p {
	margin: 0 0 1.5em;
	font-family: var(--font-body);
	line-height: 1.8;
}

.page-content p:last-child {
	margin-bottom: 0;
}

.content-image {
	margin: 2em 0;
}

.content-image img {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--radius-card);
}

.content-image figcaption {
	margin-top: 0.75em;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
}

/* Shared: small pill-style label above a section heading (matches .about-badge) */
.section-badge {
	display: inline-block;
	margin-bottom: 1em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* Nuestra Historia — Timeline */
.timeline-section {
	background-color: var(--color-bg-alt);
	padding: 5em 1.5em;
}

.timeline-header {
	max-width: 700px;
	margin: 0 auto 3em;
	text-align: center;
}

.timeline-title {
	margin: 0;
}

.timeline-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3em;
}

.timeline-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 1.5em;
}

@media (max-width: 600px) {
	.timeline-item {
		grid-template-columns: 1fr;
	}

	.timeline-icon {
		margin-bottom: 0.5em;
	}
}

.timeline-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-deep);
}

.timeline-item-title {
	margin: 0 0 0.5em;
}

.timeline-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	line-height: 1.7;
}

/* Uniform media container for the three timeline chapters — same width,
   aspect ratio, radius and alignment whether the chapter holds a photo or
   the (square, transparent) Vibe Church logo. See page-nuestra-historia.php. */
.timeline-media {
	margin: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-card);
	overflow: hidden;
}

.timeline-media-image {
	display: block;
	width: 100%;
	height: 100%;
}

.timeline-media--photo .timeline-media-image {
	object-fit: cover;
}

.timeline-media--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg);
	border: 1px solid rgba(122, 110, 138, 0.2);
	padding: 2em;
}

.timeline-media--logo .timeline-media-image {
	width: auto;
	height: auto;
	max-width: 60%;
	max-height: 60%;
	object-fit: contain;
}

.info-box--accent {
	max-width: 800px;
	margin: 3em auto 0;
	border: 1px solid rgba(201, 168, 76, 0.4);
}

.info-box-title {
	margin: 0 0 0.5em;
}

/* Nuestra Historia — Quote block (border-left accent, distinct from the
   centered .verse-quote pattern used for page-top scripture callouts) */
.quote-block {
	margin: 0 0 3em;
	padding: 0.25em 0 0.25em 1.5em;
	border-left: 4px solid var(--color-gold);
}

.quote-block p {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--color-text-dark);
}

.quote-block cite {
	display: block;
	margin-bottom: 0.75em;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.quote-block .quote-attribution {
	margin: 0;
	font-family: var(--font-body);
	font-style: normal;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

/* Nuestra Historia — "Parte de algo más grande" block */
.more-block h4 {
	margin: 0 0 0.75em;
}

.more-block p {
	margin: 0 0 1.25em;
}

/* Nuestra Visión — Editorial pillars (five wide, consecutive blocks; not a
   card grid — see .vision-box/.vision-grid on the Home page for the short
   summary version of the same five pillars). */
.pillars-editorial-header {
	max-width: 700px;
	margin: 0 auto 1em;
	padding: 0 1.5em;
	text-align: center;
}

.pillar-block {
	background-color: var(--color-bg);
}

.pillar-block--alt {
	background-color: var(--color-bg-alt);
}

.pillar-block-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 3em 1.5em;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.pillar-block-marker {
	display: flex;
	align-items: center;
	gap: 1em;
}

.pillar-number {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-gold);
	background: none;
	-webkit-text-fill-color: currentColor;
}

.pillar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-deep);
}

.pillar-block--alt .pillar-icon {
	background-color: var(--color-bg-alt);
}

.pillar-icon svg {
	width: 24px;
	height: 24px;
}

.pillar-name {
	margin: 0 0 0.5em;
}

.pillar-highlight {
	margin: 0 0 1em;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--color-purple-medium);
}

.pillar-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	line-height: 1.8;
}

.pillar-text:last-of-type {
	margin-bottom: 1.25em;
}

.pillar-references {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.pillar-block-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 2.5em;
		padding: 3.5em 2em;
	}

	.pillar-block-marker {
		flex: 0 0 140px;
		flex-direction: column;
		align-items: flex-start;
		gap: 1em;
	}

	.pillar-block--alt .pillar-block-inner {
		flex-direction: row-reverse;
	}

	.pillar-block--alt .pillar-block-marker {
		align-items: flex-end;
	}

	.pillar-block-content {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* Declaración de Fe — Accordion */
.creed-list {
	max-width: 700px;
	margin: 3em auto 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.creed-item {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	padding: 1.25em 1.5em;
}

.creed-question {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin: 0;
	color: var(--color-purple-medium);
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.creed-question::-webkit-details-marker {
	display: none;
}

.creed-question::after {
	content: '+';
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--color-gold);
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

.creed-item[open] .creed-question::after {
	transform: rotate(45deg);
}

.creed-answer {
	margin-top: 1em;
}

.creed-answer p {
	margin: 0 0 1em;
	color: var(--color-text-body);
	line-height: 1.7;
}

.creed-answer p:last-child {
	margin-bottom: 0;
}

.creed-verse {
	margin: 0;
	color: var(--color-gold);
	font-style: italic;
	font-size: 0.9rem;
}

.creed-source {
	margin: 2em auto 0;
	max-width: 700px;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	text-align: center;
}

.creed-source a {
	color: var(--color-purple-medium);
	font-weight: 700;
}

.creed-source a:hover,
.creed-source a:focus {
	color: var(--color-gold);
}

/* Nuestro Equipo — Liderazgo pastoral (Walter + Carmen). Two featured
   profiles, not grid cards — align-items: start so neither card is
   stretched to match the other's bio length. */
.leadership-section {
	background-color: var(--color-bg-alt);
	padding: 5em 1.5em;
}

.leadership-header {
	max-width: 700px;
	margin: 0 auto 3em;
	text-align: center;
}

.leadership-header h2 {
	margin: 0 0 0.5em;
}

.leadership-header p {
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.leadership-grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 2em;
	max-width: 1100px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.leadership-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5em;
	}
}

.leader-card {
	background-color: var(--color-bg);
	border: 1px solid rgba(122, 110, 138, 0.15);
	border-radius: var(--radius-card);
	padding: 2.5em;
	box-shadow: 0 2px 14px rgba(73, 53, 93, 0.05);
}

.leader-photo {
	display: block;
	width: 200px;
	height: 200px;
	aspect-ratio: 1 / 1;
	margin: 0 auto 1.5em;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--color-bg-alt);
	border: 2px solid var(--color-gold);
}

.leader-body {
	text-align: left;
}

.leader-name {
	margin: 0 0 0.25em;
}

.leader-role {
	margin: 0 0 0.35em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.leader-credential {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0.3em 0 1.1em;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 600;
}

.leader-credential-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.leader-credential-icon svg {
	width: 15px;
	height: 15px;
}

.leader-bio {
	margin: 0;
	color: var(--color-text-body);
	line-height: 1.7;
}

/* Nuestro Equipo — Equipo de servicio (the remaining four). Sober editorial
   cards, max two columns even on wide screens so the reading measure stays
   comfortable. See page-nuestro-equipo.php for the header/identity markup. */
.ministry-section {
	background-color: var(--color-bg);
	padding: 5em 1.5em;
}

.ministry-header {
	max-width: 700px;
	margin: 0 auto 3em;
	text-align: center;
}

.ministry-header h2 {
	margin: 0 0 0.5em;
}

.ministry-header p {
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75em;
	max-width: 900px;
	margin: 0 auto;
}

@media (min-width: 600px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.team-card {
	background-color: var(--color-bg-alt);
	border: 1px solid rgba(122, 110, 138, 0.12);
	border-radius: var(--radius-card);
	padding: 1.75em;
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	.team-card:hover {
		transform: translateY(-3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.team-card {
		transition: none;
	}
}

.team-card-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1em;
	margin-bottom: 1.1em;
}

@media (min-width: 500px) {
	.team-card-header {
		flex-direction: row;
		align-items: center;
	}
}

.team-photo {
	display: block;
	flex-shrink: 0;
	width: 160px;
	height: 160px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	.team-card:hover .team-photo {
		transform: scale(1.02);
	}
}

@media (prefers-reduced-motion: reduce) {
	.team-photo {
		transition: none;
	}
}

.team-identity {
	min-width: 0;
}

.team-name {
	margin: 0 0 0.25em;
}

.team-role {
	margin: 0;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.team-bio {
	margin: 0;
	color: var(--color-text-body);
	line-height: 1.7;
	text-align: left;
}

/* Shared: centered CTA below a content section */
.section-cta {
	margin-top: 2.5em;
	text-align: center;
}

/* Shared: generic reusable content card grid (currently used by Discipulado's
   three types — Nosotros/Enseñanzas moved to their own hub/learning-path
   modules below, but this stays since Discipulado still depends on it). */
.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5em;
	max-width: 1100px;
	margin: 2.5em auto 0;
}

.content-card {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	padding: 2em;
}

/* Icon circle — same gold-border/purple-icon treatment used across the site
   (.pillar-icon, .timeline-icon, .hub-card-icon, .learning-path-icon). */
.content-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75em;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.content-card-icon svg {
	width: 26px;
	height: 26px;
}

.content-card-title {
	margin: 0 0 0.5em;
	font-size: 1.15rem;
}

.content-card-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	font-size: 0.95rem;
	line-height: 1.6;
}

.content-card-text:last-child {
	margin-bottom: 0;
}

/* Instituto Bíblico — Info box */
.info-box {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	padding: 2em;
	margin-top: 2.5em;
}

.info-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.85em;
}

.info-item {
	line-height: 1.6;
}

.info-label {
	margin-right: 0.4em;
	color: var(--color-purple-medium);
	font-weight: 700;
}

/* Testimonials */
.testimonial-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	max-width: 900px;
	margin: 2.5em auto 0;
}

@media (min-width: 768px) {
	.testimonial-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.testimonial-card {
	background-color: var(--color-bg-alt);
	border-radius: var(--radius-card);
	padding: 1.75em;
}

.testimonial-photo {
	width: 64px;
	height: 64px;
	margin: 0 0 1em;
	border-radius: 50%;
	object-fit: cover;
}

.testimonial-text {
	margin: 0 0 1em;
	color: var(--color-text-body);
	font-style: italic;
	line-height: 1.7;
}

.testimonial-author {
	margin: 0;
	color: var(--color-purple-medium);
	font-weight: 700;
}

/* Button size modifier */
.button-large {
	padding: 1.1em 2.5em;
	font-size: 1.05rem;
}

/* Instituto Bíblico — Gallery */
.gallery-section {
	background-color: var(--color-bg-alt);
	padding: 5em 1.5em;
	text-align: center;
}

.gallery-title {
	margin: 0 0 2em;
}

.carousel {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
}

.carousel-track {
	display: flex;
	gap: 1em;
	margin: 0;
	padding: 0.5em 3.5em;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

/* .carousel-item is a <button> — reset the global button chrome (background,
   padding, radius) explicitly so it doesn't inherit the gold/gradient look. */
.carousel-item {
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: 240px;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: var(--radius-button);
	background: none;
	overflow: hidden;
	scroll-snap-align: center;
	cursor: zoom-in;
	font: inherit;
}

@media (min-width: 768px) {
	.carousel-item {
		width: 300px;
	}
}

.carousel-item:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

.carousel-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-zoom-indicator {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(73, 53, 93, 0);
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.carousel-zoom-indicator svg {
	width: 28px;
	height: 28px;
}

.carousel-item:hover .carousel-zoom-indicator,
.carousel-item:focus-visible .carousel-zoom-indicator {
	opacity: 1;
	background-color: rgba(73, 53, 93, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.carousel-zoom-indicator {
		transition: none;
	}
}

.carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	background-color: var(--color-purple-deep);
	color: #ffffff;
	cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
	background-color: var(--color-purple-medium);
}

.carousel-arrow--prev {
	left: 0;
}

.carousel-arrow--next {
	right: 0;
}

@media (max-width: 600px) {
	.carousel-track {
		padding: 0.5em 1em;
	}

	.carousel-arrow {
		display: none;
	}
}

/* Instituto Bíblico — Lightbox. Uses native <dialog> top-layer rendering, so
   no z-index is needed to sit above the header/nav. Controls are <button>s —
   reset explicitly against the global button/gold chrome. */
.image-lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100vw;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #ffffff;
}

.image-lightbox::backdrop {
	background-color: rgba(20, 14, 26, 0.94);
}

.image-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-lightbox-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 1.5em;
}

.image-lightbox-figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90vw;
	max-height: 82vh;
}

.image-lightbox-image {
	display: block;
	max-width: 90vw;
	max-height: calc(82vh - 3em);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--radius-card);
}

.image-lightbox-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin-top: 1em;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-body);
	font-size: 0.9rem;
	text-align: center;
}

.image-lightbox-counter {
	color: var(--color-gold-light);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: var(--color-purple-deep);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible,
.image-lightbox-prev:hover,
.image-lightbox-prev:focus-visible,
.image-lightbox-next:hover,
.image-lightbox-next:focus-visible {
	background-color: var(--color-purple-medium);
}

.image-lightbox-close:focus-visible,
.image-lightbox-prev:focus-visible,
.image-lightbox-next:focus-visible {
	outline: 2px solid var(--color-gold-light);
	outline-offset: 3px;
}

.image-lightbox-close {
	top: 1em;
	right: 1em;
	z-index: 1;
}

.image-lightbox-prev {
	left: 1em;
	top: 50%;
	transform: translateY(-50%);
}

.image-lightbox-next {
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.image-lightbox-close,
	.image-lightbox-prev,
	.image-lightbox-next {
		transition: none;
	}
}

@media (max-width: 600px) {
	.image-lightbox-inner {
		padding: 1em;
	}

	.image-lightbox-close,
	.image-lightbox-prev,
	.image-lightbox-next {
		width: 40px;
		height: 40px;
	}

	.image-lightbox-close {
		top: 0.5em;
		right: 0.5em;
	}

	.image-lightbox-prev {
		left: 0.5em;
	}

	.image-lightbox-next {
		right: 0.5em;
	}

	.image-lightbox-figure {
		max-width: 94vw;
		max-height: 78vh;
	}

	.image-lightbox-image {
		max-width: 94vw;
		max-height: calc(78vh - 3em);
	}
}

/* Content-image download deterrence (see main.js). A CSS-only affordance —
   still lets the browser handle drag/copy natively unless JS blocks it. */
.is-image-protected {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* Devocionales — archive listing extras */
.devotional-meta {
	margin: 0.5em 0 0;
	color: var(--color-text-muted);
	font-size: 0.8rem;
}

.pagination-wrap {
	margin-top: 3em;
	text-align: center;
}

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5em;
	height: 2.5em;
	margin: 0 0.25em;
	padding: 0 0.5em;
	border-radius: var(--radius-button);
	background-color: var(--color-bg-alt);
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration: none;
}

.pagination-wrap .page-numbers.current {
	background-color: var(--color-purple-deep);
	color: #ffffff;
}

.pagination-wrap .page-numbers:hover {
	background-color: var(--color-gold);
	color: var(--color-text-dark);
}

/* Devocionales — single post */
.single-category {
	display: inline-block;
	margin-bottom: 0.75em;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.single-meta {
	margin: 0.5em 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--font-body);
	font-size: 0.9rem;
}

.single-featured-image {
	max-width: 1100px;
	margin: 2.5em auto 0;
	padding: 0 1.5em;
}

.single-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-card);
}

.single-content h2,
.single-content h3 {
	margin: 1.5em 0 0.75em;
}

.single-content ul,
.single-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.25em;
	line-height: 1.8;
}

.content-divider {
	max-width: 80px;
	margin: 3em auto 0;
	border: none;
	border-top: 3px solid var(--color-gold);
}

/* ==========================================================================
   Hub pages — editorial pathways
   Reusable 2×2 card grid for hub/index pages (currently: Nosotros). Richer
   than .content-grid/.content-card (still used by Discipulado) — adds an
   icon circle, a kicker label, and a text-link CTA instead of an outline
   button.
   ========================================================================== */
.hub-pathways {
	background-color: var(--color-bg);
	padding: 5em 1.5em;
}

.hub-pathways-header {
	max-width: 700px;
	margin: 0 auto 3em;
	text-align: center;
}

.hub-pathways-header h2 {
	margin: 0 0 0.5em;
}

.hub-pathways-header p {
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.hub-pathways-grid {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
}

@media (min-width: 768px) {
	.hub-pathways-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.hub-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-bg-alt);
	border: 1px solid transparent;
	border-radius: var(--radius-card);
	padding: 2em;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.hub-card:hover,
.hub-card:focus-within {
	transform: translateY(-3px);
	border-color: rgba(201, 168, 76, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.hub-card {
		transition: none;
	}

	.hub-card:hover,
	.hub-card:focus-within {
		transform: none;
	}
}

.hub-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	margin-bottom: 1em;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.hub-card-icon svg {
	width: 26px;
	height: 26px;
}

.hub-card-kicker {
	display: block;
	margin-bottom: 0.4em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hub-card-title {
	margin: 0 0 0.6em;
}

.hub-card-text {
	margin: 0 0 1.5em;
	color: var(--color-text-body);
	line-height: 1.7;
}

/* Secondary text-link CTA — shared by hub cards and Enseñanzas' learning
   paths below. No button box, no gradient: a deliberately quieter action. */
.hub-card-link,
.learning-path-link {
	display: inline-block;
	margin-top: auto;
	color: var(--color-purple-medium);
	font-weight: 700;
	text-decoration: none;
}

.hub-card-link:hover,
.hub-card-link:focus-visible,
.learning-path-link:hover,
.learning-path-link:focus-visible {
	color: var(--color-gold);
}

.hub-card-link:focus-visible,
.learning-path-link:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

/* ==========================================================================
   Nosotros — community introduction
   Two-column text + photo section right after the hero (one column on
   mobile). See page-nosotros.php for the <figure> markup.
   ========================================================================== */
.nosotros-intro {
	background-color: var(--color-bg-alt);
	padding: 4em 1.5em;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5em;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.nosotros-intro {
		grid-template-columns: 3fr 2fr;
		gap: 3.5em;
		padding: 5em 1.5em;
	}
}

.nosotros-intro-copy p {
	margin: 0 0 1.25em;
	line-height: 1.7;
}

.nosotros-intro-copy p:last-child {
	margin-bottom: 0;
}

.nosotros-intro-copy h2 {
	margin: 0 0 0.75em;
}

.nosotros-photo {
	margin: 0;
}

.nosotros-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-card);
}

.nosotros-photo figcaption {
	margin-top: 0.75em;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
}

/* ==========================================================================
   Enseñanzas — learning paths
   Sober pull-quote treatment for the intro's "frase destacada", plus two
   wide, alternating-background blocks (not small cards) for the two
   formation itineraries.
   ========================================================================== */
.ensenanzas-highlight {
	margin: 2em 0 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 4px solid var(--color-gold);
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.6;
	color: var(--color-purple-medium);
}

.learning-paths-header {
	max-width: 700px;
	margin: 0 auto 1em;
	padding: 3em 1.5em 0;
	text-align: center;
}

.learning-paths-header h2 {
	margin: 0;
}

.learning-path {
	background-color: var(--color-bg-alt);
}

.learning-path--alt {
	background-color: var(--color-bg);
}

.learning-path-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 3em 1.5em;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

@media (min-width: 768px) {
	.learning-path-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 2.5em;
		padding: 3.5em 2em;
	}

	.learning-path--alt .learning-path-inner {
		flex-direction: row-reverse;
	}
}

.learning-path-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.learning-path--alt .learning-path-icon {
	background-color: var(--color-bg-alt);
}

.learning-path-icon svg {
	width: 34px;
	height: 34px;
}

.learning-path-content {
	max-width: 620px;
}

.learning-path-kicker {
	display: block;
	margin-bottom: 0.4em;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.learning-path-title {
	margin: 0 0 0.5em;
}

.learning-path-highlight {
	margin: 0 0 1em;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--color-purple-medium);
}

.learning-path-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	line-height: 1.8;
}

.learning-path-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.learning-path-meta li {
	padding: 0.35em 0.9em;
	border: 1px solid var(--color-purple-light);
	border-radius: 999px;
	color: var(--color-purple-medium);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   Scroll reveal — small, reusable "fade + rise" system for [data-reveal]
   blocks (see main.js). JS only adds .is-reveal-ready when IntersectionObserver
   exists, so content stays visible by default if JS fails or is unsupported.
   ========================================================================== */
.is-reveal-ready {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.is-reveal-ready.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.is-reveal-ready {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   Ofrenda — Editorial giving page
   New classes only (not reused from other pages), but built from the same
   tokens/sizing conventions as the rest of the theme: gold-ring icon circles
   (.pillar-icon, .hub-card-icon, .contact-row-icon…), a border-left gold
   pull-quote (.quote-block, .ensenanzas-highlight), and wide alternating-
   background editorial blocks (.pillar-block, .learning-path).
   ========================================================================== */

/* Pastoral intro */
.giving-intro {
	max-width: 730px;
	margin: 0 auto;
}

.giving-intro p {
	margin: 0 0 1.5em;
	font-family: var(--font-body);
	line-height: 1.8;
}

.giving-intro-highlight {
	margin: 2em 0 0;
	padding: 0.25em 0 0.25em 1.5em;
	border-left: 4px solid var(--color-gold);
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.6;
	color: var(--color-purple-medium);
}

/* "Una semilla con propósito" — three wide alternating blocks */
.giving-purpose-header {
	max-width: 700px;
	margin: 0 auto 1em;
	padding: 0 1.5em;
	text-align: center;
}

.giving-purpose-header h2 {
	margin: 0 0 0.5em;
}

.giving-purpose-header p {
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.giving-purpose-block {
	background-color: var(--color-bg);
}

.giving-purpose-block--alt {
	background-color: var(--color-bg-alt);
}

.giving-purpose-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 3em 1.5em;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

@media (min-width: 768px) {
	.giving-purpose-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 2.5em;
		padding: 3.5em 2em;
	}
}

.giving-purpose-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--color-bg);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.giving-purpose-block--alt .giving-purpose-icon {
	background-color: var(--color-bg-alt);
}

.giving-purpose-icon svg {
	width: 26px;
	height: 26px;
}

.giving-purpose-title {
	margin: 0 0 0.5em;
}

.giving-purpose-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	line-height: 1.8;
}

.giving-purpose-meta {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* "Cómo puedes ofrendar hoy" — two sober practical options */
.giving-methods {
	background-color: var(--color-bg-alt);
	padding: 5em 1.5em;
}

.giving-methods-header {
	max-width: 700px;
	margin: 0 auto 3em;
	text-align: center;
}

.giving-methods-header h2 {
	margin: 0 0 0.5em;
}

.giving-methods-header p {
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.giving-methods-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	max-width: 900px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.giving-methods-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.giving-method {
	background-color: var(--color-bg);
	border: 1px solid rgba(122, 110, 138, 0.15);
	border-radius: var(--radius-card);
	padding: 2em;
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	.giving-method:hover {
		transform: translateY(-3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.giving-method {
		transition: none;
	}
}

.giving-method-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1em;
	border-radius: 50%;
	background-color: var(--color-bg-alt);
	border: 2px solid var(--color-gold);
	color: var(--color-purple-medium);
}

.giving-method-icon svg {
	width: 22px;
	height: 22px;
}

.giving-method-title {
	margin: 0 0 0.5em;
}

.giving-method-text {
	margin: 0 0 1.25em;
	color: var(--color-text-body);
	line-height: 1.7;
}
