/* PCELL shared UI — home, services, buttons */

/* Ocultar título duplicado del tema cuando el shortcode incluye encabezado propio */
body.home .entry-header,
body.page-id-219 .entry-header {
	display: none;
}

.pcell-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.pcell-btn--primary {
	color: #fff !important;
	background: #2563eb;
}

.pcell-btn--primary:hover,
.pcell-btn--primary:focus {
	background: #1d4ed8;
	color: #fff !important;
	transform: scale(1.02);
}

.pcell-btn--outline {
	color: #fff !important;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
}

.pcell-btn--outline:hover,
.pcell-btn--outline:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

.pcell-btn--whatsapp {
	color: #fff !important;
	background: #25d366;
}

.pcell-btn--whatsapp:hover,
.pcell-btn--whatsapp:focus {
	background: #1da851;
	color: #fff !important;
}

.pcell-link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.pcell-link:hover {
	text-decoration: underline;
}

/* Hero */
.pcell-hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	border-radius: 0 0 16px 16px;
	margin: 0 -1rem 2.5rem;
	padding: 3rem 1.5rem;
	overflow: hidden;
}

@media (min-width: 768px) {
	.pcell-hero {
		min-height: 480px;
		margin-left: 0;
		margin-right: 0;
	}
}

.pcell-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(37, 99, 235, 0.55) 100%);
}

.pcell-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 640px;
	color: #fff;
}

.pcell-hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.9;
}

.pcell-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.pcell-hero__subtitle {
	margin: 0 0 1.75rem;
	font-size: 1.125rem;
	opacity: 0.95;
	line-height: 1.5;
}

.pcell-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* Sections */
.pcell-section {
	max-width: 1200px;
	margin: 0 auto 3rem;
	padding: 0 1rem;
}

.pcell-section__header {
	text-align: center;
	margin-bottom: 2rem;
}

.pcell-section__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: #1f2937;
}

.pcell-section__lead {
	margin: 0;
	font-size: 1.0625rem;
	color: #6b7280;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.pcell-section__cta-wrap {
	text-align: center;
	margin-top: 2rem;
}

/* Media + image effects */
.pcell-media {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 5 / 3;
}

.pcell-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.pcell-media:hover img,
.pcell-media:focus-within img {
	transform: scale(1.06);
}

.pcell-media__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 55%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.pcell-media:hover .pcell-media__overlay {
	opacity: 0.85;
}

/* Service cards grid (home) */
.pcell-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 600px) {
	.pcell-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.pcell-cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.pcell-service-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pcell-service-card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.pcell-service-card .pcell-media {
	border-radius: 12px 12px 0 0;
}

.pcell-service-card__body {
	padding: 1.25rem;
}

.pcell-service-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f2937;
}

.pcell-service-card__text {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #6b7280;
	line-height: 1.5;
}

/* Downloads banner */
.pcell-section--downloads {
	margin-bottom: 4rem;
}

.pcell-downloads-banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 2rem;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	border: 1px solid #dbeafe;
	border-radius: 12px;
}

@media (min-width: 768px) {
	.pcell-downloads-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.pcell-downloads-banner__text p {
	margin: 0.5rem 0 0;
	color: #4b5563;
}

/* Services page rows */
.pcell-servicios {
	max-width: 1200px;
	margin: 0 auto 3rem;
	padding: 0 1rem;
}

.pcell-service-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e5e7eb;
}

.pcell-service-row:last-of-type {
	border-bottom: none;
}

@media (min-width: 768px) {
	.pcell-service-row {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}

	.pcell-service-row--reverse .pcell-service-row__media {
		order: 2;
	}

	.pcell-service-row--reverse .pcell-service-row__content {
		order: 1;
	}
}

.pcell-service-row__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
}

.pcell-service-row__desc {
	margin: 0 0 1rem;
	color: #4b5563;
	line-height: 1.6;
}

.pcell-service-row__list {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
	color: #374151;
	line-height: 1.7;
}

.pcell-service-row__list li {
	margin-bottom: 0.35rem;
}

/* FAQ */
.pcell-faq {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

.pcell-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.pcell-faq__item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.pcell-faq__question {
	padding: 1rem 1.25rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	color: #1f2937;
}

.pcell-faq__question::-webkit-details-marker {
	display: none;
}

.pcell-faq__answer {
	padding: 0 1.25rem 1rem;
	color: #4b5563;
	line-height: 1.6;
}

/* WhatsApp float */
.pcell-whatsapp-float {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #25d366;
	color: #fff !important;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcell-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
	color: #fff !important;
}

/* Scroll reveal */
.pcell-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.pcell-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.pcell-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.pcell-media img,
	.pcell-service-card,
	.pcell-btn,
	.pcell-whatsapp-float {
		transition: none;
	}

	.pcell-media:hover img {
		transform: none;
	}
}
