/* ==========================================================================
   Servicios Editoriales — Berea
   Diseño Editorial de Alto Impacto para Autores, Pastores y Ministerios
   ========================================================================== */

:root {
	--be-navy-950: #060b14;
	--be-navy-900: #0b1326;
	--be-navy-800: #141f38;
	--be-navy-700: #1e2c4c;
	--be-navy-600: #293b63;
	--be-gold-600: #a57c1d;
	--be-gold-500: #c8982a;
	--be-gold-400: #dfb14b;
	--be-gold-300: #f1ce7c;
	--be-gold-100: #faf3e2;
	--be-gold-50:  #fdfbf6;
	--be-cream-bg:  #f9f7f2;
	--be-cream-card:#ffffff;
	--be-border:    #e7e2d6;
	--be-text-dark: #121826;
	--be-text-body: #445065;
	--be-text-muted:#6b7280;
	--be-font-serif: "Playfair Display", "Merriweather", "Georgia", "Cambria", serif;
	--be-font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--be-radius-sm:  8px;
	--be-radius-md:  14px;
	--be-radius-lg:  22px;
	--be-radius-full:9999px;
	--be-shadow-card: 0 4px 20px rgba(11, 19, 38, 0.05);
	--be-shadow-hover: 0 16px 36px -6px rgba(11, 19, 38, 0.12), 0 0 0 1px rgba(200, 152, 42, 0.25);
}

html {
	scroll-behavior: smooth;
}

/* Evitar scroll horizontal por el breakout del Hero en Storefront */
body.page-template-page-servicios-editoriales,
body.page-template-page-servicios-editoriales-php,
body.page-servicios-editoriales {
	overflow-x: hidden;
}

body.page-template-page-servicios-editoriales #content,
body.page-template-page-servicios-editoriales-php #content,
body.page-servicios-editoriales #content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.page-template-page-servicios-editoriales .entry-header,
body.page-template-page-servicios-editoriales-php .entry-header,
body.page-servicios-editoriales .entry-header {
	display: none; /* Reemplazado por el Hero propio */
}

.servicios-editoriales-wrap {
	font-family: var(--be-font-sans);
	color: var(--be-text-body);
	line-height: 1.6;
	background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   UTILIDADES & CONTENEDOR
   -------------------------------------------------------------------------- */
.be-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.be-breakout {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.be-section-header {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 52px;
}

.be-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--be-radius-full);
	margin-bottom: 18px;
}

.be-badge--gold-dark {
	background: rgba(200, 152, 42, 0.15);
	color: var(--be-gold-300);
	border: 1px solid rgba(200, 152, 42, 0.35);
}

.be-badge--gold-light {
	background: var(--be-gold-100);
	color: var(--be-gold-600);
	border: 1px solid rgba(200, 152, 42, 0.28);
}

.be-section-title {
	font-family: var(--be-font-serif);
	font-size: clamp(2rem, 3.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.22;
	color: var(--be-text-dark);
	margin: 0 0 16px;
}

.be-section-title--light {
	color: #ffffff;
}

.be-section-subtitle {
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	color: var(--be-text-body);
	line-height: 1.65;
	margin: 0;
}

.be-section-subtitle--light {
	color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   1. HERO EDITORIAL
   -------------------------------------------------------------------------- */
.be-hero {
	background: linear-gradient(175deg, var(--be-navy-950) 0%, var(--be-navy-900) 45%, var(--be-navy-800) 100%);
	color: #ffffff;
	position: relative;
	padding: 95px 20px 85px;
	overflow: hidden;
}

/* Efectos de luz ambiental de fondo */
.be-hero::before {
	content: "";
	position: absolute;
	top: -15%;
	right: 10%;
	width: 550px;
	height: 550px;
	background: radial-gradient(circle, rgba(200, 152, 42, 0.16) 0%, rgba(11, 19, 38, 0) 70%);
	filter: blur(50px);
	pointer-events: none;
}

.be-hero::after {
	content: "";
	position: absolute;
	bottom: -20%;
	left: 5%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(41, 59, 99, 0.35) 0%, rgba(6, 11, 20, 0) 70%);
	filter: blur(60px);
	pointer-events: none;
}

.be-hero__content {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.be-hero__title {
	font-family: var(--be-font-serif);
	font-size: clamp(2.35rem, 5.2vw, 3.8rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 24px;
	letter-spacing: -0.015em;
}

.be-hero__title-accent {
	background: linear-gradient(120deg, #fcebc7 0%, var(--be-gold-400) 60%, var(--be-gold-500) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline;
}

.be-hero__lead {
	font-size: clamp(1.08rem, 2vw, 1.25rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 auto 38px;
	max-width: 740px;
}

.be-hero__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 54px;
}

/* Botones */
.be-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 34px;
	font-size: 1.02rem;
	font-weight: 600;
	border-radius: var(--be-radius-full);
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
	border: none;
}

.be-btn--primary {
	background: linear-gradient(135deg, var(--be-gold-400) 0%, var(--be-gold-500) 100%);
	color: var(--be-navy-950) !important;
	box-shadow: 0 8px 24px rgba(200, 152, 42, 0.32);
	font-weight: 700;
}

.be-btn--primary:hover {
	background: linear-gradient(135deg, #f2c765 0%, var(--be-gold-400) 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(200, 152, 42, 0.45);
	color: var(--be-navy-950) !important;
}

.be-btn--secondary {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
}

.be-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.45);
	transform: translateY(-2px);
	color: #ffffff !important;
}

.be-btn--whatsapp {
	background: #25d366;
	color: #ffffff !important;
	font-weight: 700;
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

.be-btn--whatsapp:hover {
	background: #20ba59;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
	color: #ffffff !important;
}

.be-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Indicadores de estadísticas en el Hero */
.be-hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding-top: 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	max-width: 920px;
	margin: 0 auto;
}

.be-stat-item {
	text-align: center;
	padding: 0 8px;
}

.be-stat-number {
	display: block;
	font-family: var(--be-font-serif);
	font-size: clamp(1.4rem, 2.5vw, 1.85rem);
	font-weight: 700;
	color: var(--be-gold-300);
	margin-bottom: 4px;
}

.be-stat-label {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.72);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. PILARES DE CONFIANZA EDITORIAL
   -------------------------------------------------------------------------- */
.be-pilares-section {
	padding: 70px 0;
	background: var(--be-cream-bg);
	border-bottom: 1px solid var(--be-border);
}

.be-pilares-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.be-pilar-card {
	background: var(--be-cream-card);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-md);
	padding: 26px 22px;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.be-pilar-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--be-shadow-card);
	border-color: rgba(200, 152, 42, 0.4);
}

.be-pilar-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--be-radius-sm);
	background: var(--be-gold-100);
	color: var(--be-gold-600);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.be-pilar-icon svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

.be-pilar-card h3 {
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--be-text-dark);
	margin: 0 0 8px;
}

.be-pilar-card p {
	font-size: 0.92rem;
	color: var(--be-text-body);
	margin: 0;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   3. CATÁLOGO DE SERVICIOS (GRID BENTO)
   -------------------------------------------------------------------------- */
.be-servicios-section {
	padding: 90px 0;
	background: #ffffff;
}

.be-servicios-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 28px;
}

/* Tarjeta Bento */
.be-card-servicio {
	background: #ffffff;
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	padding: 36px 30px;
	box-shadow: var(--be-shadow-card);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.be-card-servicio::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--be-gold-500), var(--be-gold-300));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.be-card-servicio:hover {
	transform: translateY(-6px);
	box-shadow: var(--be-shadow-hover);
	border-color: rgba(200, 152, 42, 0.3);
}

.be-card-servicio:hover::before {
	opacity: 1;
}

/* Distribución Bento: dos primeras tarjetas más amplias, tres siguientes equilibradas */
.be-card-servicio--span-6 {
	grid-column: span 6;
}

.be-card-servicio--span-4 {
	grid-column: span 4;
}

.be-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.be-card-icon-wrap {
	width: 56px;
	height: 56px;
	border-radius: var(--be-radius-md);
	background: linear-gradient(135deg, var(--be-gold-100) 0%, #ffffff 100%);
	border: 1px solid rgba(200, 152, 42, 0.25);
	color: var(--be-gold-600);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.be-card-servicio:hover .be-card-icon-wrap {
	transform: scale(1.08) rotate(2deg);
	background: linear-gradient(135deg, var(--be-navy-900) 0%, var(--be-navy-800) 100%);
	color: var(--be-gold-400);
}

.be-card-icon-wrap svg {
	width: 28px;
	height: 28px;
	stroke: currentColor;
}

.be-card-tag {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--be-gold-600);
	background: var(--be-gold-50);
	border: 1px solid rgba(200, 152, 42, 0.2);
	padding: 5px 12px;
	border-radius: var(--be-radius-full);
}

.be-card-servicio h3 {
	font-family: var(--be-font-serif);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--be-text-dark);
	margin: 0 0 12px;
	line-height: 1.3;
}

.be-card-servicio p {
	font-size: 0.98rem;
	color: var(--be-text-body);
	line-height: 1.6;
	margin: 0 0 22px;
	flex-grow: 1;
}

.be-card-features-title {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--be-navy-900);
	margin: 0 0 12px;
}

.be-card-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.be-card-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--be-text-body);
}

.be-card-features li svg {
	width: 16px;
	height: 16px;
	color: var(--be-gold-500);
	flex-shrink: 0;
	margin-top: 3px;
	stroke: currentColor;
}

/* --------------------------------------------------------------------------
   4. EL PROCESO EDITORIAL (TIMELINE PASO A PASO)
   -------------------------------------------------------------------------- */
.be-proceso-section {
	padding: 95px 0;
	background: linear-gradient(180deg, var(--be-navy-950) 0%, var(--be-navy-900) 100%);
	color: #ffffff;
	position: relative;
}

.be-proceso-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	position: relative;
	margin-top: 50px;
}

/* Línea conectora entre pasos */
.be-proceso-grid::before {
	content: "";
	position: absolute;
	top: 38px;
	left: 8%;
	right: 8%;
	height: 2px;
	background: linear-gradient(90deg, rgba(200, 152, 42, 0.2) 0%, var(--be-gold-400) 50%, rgba(200, 152, 42, 0.2) 100%);
	z-index: 1;
}

.be-proceso-step {
	position: relative;
	z-index: 2;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--be-radius-md);
	padding: 30px 22px 26px;
	text-align: center;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.be-proceso-step:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(200, 152, 42, 0.4);
}

.be-proceso-number {
	width: 52px;
	height: 52px;
	border-radius: var(--be-radius-full);
	background: var(--be-navy-950);
	border: 2px solid var(--be-gold-400);
	color: var(--be-gold-300);
	font-family: var(--be-font-serif);
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	box-shadow: 0 0 18px rgba(200, 152, 42, 0.35);
}

.be-proceso-step h3 {
	font-family: var(--be-font-serif);
	font-size: 1.22rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px;
}

.be-proceso-step p {
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* --------------------------------------------------------------------------
   5. PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   -------------------------------------------------------------------------- */
.be-faq-section {
	padding: 90px 0;
	background: var(--be-cream-bg);
}

.be-faq-list {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.be-faq-item {
	background: #ffffff;
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-md);
	overflow: hidden;
	transition: all 0.25s ease;
}

.be-faq-item[open] {
	border-color: rgba(200, 152, 42, 0.45);
	box-shadow: var(--be-shadow-card);
}

.be-faq-question {
	padding: 22px 26px;
	font-family: var(--be-font-serif);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--be-text-dark);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	user-select: none;
}

.be-faq-question::-webkit-details-marker {
	display: none;
}

.be-faq-icon {
	width: 28px;
	height: 28px;
	border-radius: var(--be-radius-full);
	background: var(--be-gold-100);
	color: var(--be-gold-600);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.be-faq-item[open] .be-faq-icon {
	transform: rotate(45deg);
	background: var(--be-navy-900);
	color: var(--be-gold-300);
}

.be-faq-icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}

.be-faq-answer {
	padding: 0 26px 24px;
	font-size: 0.96rem;
	line-height: 1.65;
	color: var(--be-text-body);
}

/* --------------------------------------------------------------------------
   6. BANNER DE CONVERSIÓN FINAL (CTA DE IMPACTO)
   -------------------------------------------------------------------------- */
.be-cta-section {
	padding: 85px 0 100px;
	background: #ffffff;
}

.be-cta-card {
	background: linear-gradient(135deg, var(--be-navy-950) 0%, var(--be-navy-900) 60%, var(--be-navy-800) 100%);
	border-radius: var(--be-radius-lg);
	padding: 65px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 24px 60px -12px rgba(6, 11, 20, 0.35);
	border: 1px solid rgba(200, 152, 42, 0.3);
}

.be-cta-card::before {
	content: "";
	position: absolute;
	top: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(200, 152, 42, 0.22) 0%, rgba(6, 11, 20, 0) 70%);
	pointer-events: none;
}

.be-cta-content {
	position: relative;
	z-index: 2;
	max-width: 740px;
	margin: 0 auto;
}

.be-cta-card h2 {
	font-family: var(--be-font-serif);
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px;
	line-height: 1.25;
}

.be-cta-card p {
	font-size: clamp(1.02rem, 1.6vw, 1.15rem);
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.6;
	margin: 0 auto 36px;
}

.be-cta-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.be-cta-footer-note {
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
	.be-servicios-grid {
		grid-template-columns: repeat(6, 1fr);
	}
	.be-card-servicio--span-6 {
		grid-column: span 6;
	}
	.be-card-servicio--span-4 {
		grid-column: span 3;
	}
	.be-proceso-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
	.be-proceso-grid::before {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.be-hero {
		padding: 70px 16px 65px;
	}
	.be-hero__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.be-servicios-grid {
		grid-template-columns: 1fr;
	}
	.be-card-servicio--span-6,
	.be-card-servicio--span-4 {
		grid-column: span 1;
	}
	.be-proceso-grid {
		grid-template-columns: 1fr;
	}
	.be-cta-card {
		padding: 45px 20px;
	}
	.be-hero__actions,
	.be-cta-actions {
		flex-direction: column;
		width: 100%;
	}
	.be-btn {
		width: 100%;
		box-sizing: border-box;
	}
}
