/* ── Padres en la Nube – Home Page Styles ─────────────── */

:root {
	--pn-home-color-primary: #a42d2d;
	--pn-home-color-primary-dark: #7e2222;
	--pn-home-color-accent: #a42d2d;
	--pn-home-color-accent-light: #ffb1b1;
	--pn-home-color-bg-light: #faf6f6;
	--pn-home-color-text: #333333;
	--pn-home-color-text-secondary: #555555;
	--pn-home-color-text-muted: #666666;
	--pn-home-color-text-subtle: #999999;
	--pn-home-color-border: #eee0e0;
}

/* ── Hero Section ────────────────────────────────────── */

.pn-home-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #2a1010;
}

.pn-home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(100, 20, 20, 0.8) 0%, rgba(42, 16, 16, 0.85) 100%);
	z-index: 1;
}

.pn-home-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.pn-home-hero__content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
	padding: 80px 24px;
	text-align: center;
}

.pn-home-hero__buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ── Sections ─────────────────────────────────────────── */

.pn-home-section {
	padding: 80px 24px;
}

.pn-home-section--white {
	background-color: #ffffff;
}

.pn-home-section--light {
	background-color: var(--pn-home-color-bg-light);
}

.pn-home-section--dark {
	background-color: var(--pn-home-color-primary);
}

.pn-home-section--cta {
	padding-top: 100px;
	padding-bottom: 100px;
}

/* ── Headings ─────────────────────────────────────────── */

.pn-home-title {
	color: #ffffff;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 24px;
}

.pn-home-h2 {
	color: var(--pn-home-color-primary);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.pn-home-h2--white {
	color: #ffffff;
}

.pn-home-h2--large {
	font-size: 2.2rem;
	line-height: 1.3;
}

.pn-home-h2--spaced {
	margin-bottom: 48px;
}

.pn-home-h3 {
	color: var(--pn-home-color-primary);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.pn-home-h3--card-title {
	font-size: 1.15rem;
}

.pn-home-h3--preview {
	font-size: 1.3rem;
	margin-bottom: 24px;
}

.pn-home-h3--rewards {
	font-size: 1.3rem;
	margin-bottom: 20px;
}

.pn-home-h3--content {
	font-size: 1.2rem;
}

.pn-home-step-number {
	color: var(--pn-home-color-accent);
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 12px;
}

.pn-home-step-title {
	color: var(--pn-home-color-primary);
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 8px;
}

/* ── Paragraphs ───────────────────────────────────────── */

.pn-home-subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.7;
	margin-bottom: 40px;
}

.pn-home-intro {
	color: var(--pn-home-color-text-secondary);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 48px;
}

.pn-home-description {
	color: var(--pn-home-color-text-secondary);
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 24px;
}

.pn-home-description--spaced {
	margin-bottom: 16px;
}

.pn-home-text {
	color: var(--pn-home-color-text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.pn-home-text--small {
	font-size: 0.9rem;
}

.pn-home-text--card {
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.pn-home-text--therapy {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 32px;
}

.pn-home-text--content-desc {
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 20px;
}

.pn-home-text--reward {
	color: var(--pn-home-color-text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
}

.pn-home-text--cta {
	color: var(--pn-home-color-text-secondary);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 32px;
}

.pn-home-text--disclaimer {
	color: var(--pn-home-color-text-subtle);
	font-size: 0.85rem;
	margin-top: 16px;
}

.pn-home-text--result {
	color: var(--pn-home-color-text);
	font-size: 0.9rem;
}

/* ── Material Design Icon Circles ────────────────────── */

.pn-home-icon-wrap {
	text-align: center;
	margin-bottom: 16px;
}

.pn-home-icon-wrap--left {
	text-align: left;
	margin-bottom: 14px;
}

.pn-home-icon-wrap--row {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 20px;
}

.pn-home-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	vertical-align: middle;
}

.pn-home-icon-circle i.material-icons-outlined {
	font-size: 32px;
	line-height: 1;
}

.pn-home-icon-circle--sm {
	width: 52px;
	height: 52px;
}

.pn-home-icon-circle--sm i.material-icons-outlined {
	font-size: 24px;
}

/* All icon circles use the brand red palette with soft tints */
.pn-home-icon-circle--blue {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--teal {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--purple {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--green {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--amber {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--pink {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--orange {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--indigo {
	background-color: #fde8e8;
	color: #a42d2d;
}

.pn-home-icon-circle--red {
	background-color: #fde8e8;
	color: #a42d2d;
}

/* ── Cards / Columns ──────────────────────────────────── */

.pn-home-card {
	background-color: var(--pn-home-color-bg-light);
	border-radius: 12px;
	padding: 32px 24px;
	text-align: center;
}

.pn-home-card--bordered {
	background-color: #ffffff;
	border: 1px solid var(--pn-home-color-border);
	border-radius: 12px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pn-home-card--bordered .pn-home-text--card {
	flex-grow: 1;
}

.pn-home-card--content {
	background-color: var(--pn-home-color-bg-light);
	border-radius: 12px;
	padding: 40px 32px;
	text-align: center;
}

.pn-home-card--preview {
	background-color: #ffffff;
	border-radius: 16px;
	padding: 40px;
}

.pn-home-step-col {
	padding-top: 24px;
	padding-bottom: 24px;
	text-align: center;
}

/* ── Test result pills ────────────────────────────────── */

.pn-home-result {
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 12px;
}

.pn-home-result--blue {
	background-color: #fde8e8;
}

.pn-home-result--green {
	background-color: #f0fff4;
}

.pn-home-result--orange {
	background-color: #fff8f0;
}

/* ── Links ────────────────────────────────────────────── */

.pn-home-link {
	color: var(--pn-home-color-accent);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.pn-home-link:hover {
	text-decoration: underline;
}

.pn-home-link--content {
	font-size: 0.95rem;
}

/* ── Lists ────────────────────────────────────────────── */

.pn-home-list {
	color: #444444;
	font-size: 0.95rem;
	line-height: 2;
}

/* ── Buttons ──────────────────────────────────────────── */

.pn-home-btn {
	display: inline-block;
	border-radius: 8px;
	padding: 14px 32px;
	font-size: 1rem;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s, background-color 0.2s;
	cursor: pointer;
	border: none;
	line-height: 1.4;
	text-align: center;
}

.pn-home-btn--primary {
	background-color: var(--pn-home-color-accent);
	color: #ffffff;
}

.pn-home-btn--primary:hover {
	background-color: var(--pn-home-color-primary-dark);
	color: #ffffff;
}

.pn-home-btn--dark {
	background-color: #232323;
	color: #ffffff;
}

.pn-home-btn--dark:hover {
	background-color: #111111;
	color: #ffffff;
}

.pn-home-btn--hero {
	padding: 16px 40px;
	font-size: 1.1rem;
}

.pn-home-btn--outline {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #ffffff;
}

.pn-home-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.pn-home-btn--therapy {
	padding: 16px 36px;
	font-size: 1.05rem;
}

.pn-home-btn--cta {
	padding: 18px 48px;
	font-size: 1.15rem;
}

/* Gutenberg button overrides — keep brand red */
.pn-home-btn.wp-block-button__link,
.pn-home-btn--primary .wp-block-button__link,
.wp-block-button.pn-home-btn--primary .wp-block-button__link {
	background-color: var(--pn-home-color-accent);
	color: #ffffff;
	border-radius: 8px;
}

.wp-block-button.pn-home-btn--dark .wp-block-button__link {
	background-color: #232323;
	color: #ffffff;
	border-radius: 8px;
}

/* ── Column alignment for resource cards ─────────────── */

.pn-home-section--white .wp-block-columns .wp-block-column.pn-home-card--bordered {
	flex: 1 1 0;
}

.pn-home-section--white .wp-block-columns {
	align-items: stretch;
}

/* ── Spacing utilities ────────────────────────────────── */

.pn-home-mt-24 {
	margin-top: 24px;
}

.pn-home-mt-40 {
	margin-top: 40px;
}

.pn-home-mb-48 {
	margin-bottom: 48px;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 782px) {
	.pn-home-hero {
		min-height: 70vh;
	}

	.pn-home-hero__content {
		padding: 60px 20px;
	}

	.pn-home-title {
		font-size: 2rem;
	}

	.pn-home-h2 {
		font-size: 1.5rem;
	}

	.pn-home-h2--large {
		font-size: 1.7rem;
	}

	.pn-home-section {
		padding: 48px 16px;
	}

	.pn-home-section--cta {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.pn-home-btn--hero {
		padding: 14px 28px;
		font-size: 1rem;
	}

	.pn-home-btn--cta {
		padding: 16px 32px;
		font-size: 1.05rem;
	}

	.pn-home-card--preview {
		padding: 24px;
	}

	.pn-home-hero__buttons {
		flex-direction: column;
		align-items: center;
	}

	.pn-home-icon-circle {
		width: 60px;
		height: 60px;
	}

	.pn-home-icon-circle i.material-icons-outlined {
		font-size: 28px;
	}
}

/* ── Hide reCAPTCHA badge ────────────────────────────── */

.grecaptcha-badge {
	visibility: hidden !important;
}

/* ── Dark mode: hide by default ──────────────────────── */

@media (prefers-color-scheme: dark) {
	.pn-home-hero,
	.pn-home-section,
	.pn-home-card,
	.pn-home-card--bordered,
	.pn-home-card--content,
	.pn-home-card--preview,
	.pn-home-result,
	.pn-home-step-col {
		color-scheme: light;
	}

	body {
		color-scheme: light;
		background-color: #ffffff;
	}
}
