/*
Theme Name: Terentalarenta Theme
Theme URI: https://example.com
Author: Terentalarenta
Author URI: https://example.com
Description: Tema personalizado base para el proyecto Terentalarenta.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: terentalarenta-theme
*/

:root {
	--bg: #f4f8f5;
	--surface: #ffffff;
	--text: #0f172a;
	--muted: #475569;
	--primary: #00a86b;
	--primary-dark: #007f50;
	--line: #d9e4dc;
	--radius: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.55;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(244, 248, 245, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
}

.brand-logo {
	width: 240px;
	height: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.site-nav a {
	font-weight: 600;
	color: #0f3b2d;
}

.site-nav a:hover {
	color: #067147;
}

.header-cta {
	white-space: nowrap;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.landing section {
	padding: 72px 0;
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0 0 14px;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
	font-size: clamp(1.7rem, 3.6vw, 2.45rem);
}

p {
	margin: 0 0 12px;
}

.eyebrow {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #d8f6ea;
	color: #075d3d;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.75rem;
}

.lead {
	color: var(--muted);
	max-width: 60ch;
}

.hero {
	padding-top: 20px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 36px;
	align-items: center;
}

.hero-copy {
	background: linear-gradient(180deg, #ffffff 0%, #f7fffb 100%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 42px);
}

.hero-notes {
	color: var(--muted);
	font-size: 0.95rem;
}

.hero-media img,
.trust-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 10px;
}

.btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 13px 20px;
	border-radius: 11px;
	font-weight: 700;
	border: 1px solid transparent;
	transition: 0.2s ease;
}

.btn-primary {
	background: var(--primary);
	color: #ffffff;
}

.btn-primary:hover {
	background: var(--primary-dark);
}

.btn-secondary {
	border-color: var(--line);
	background: #ffffff;
}

.btn-secondary:hover {
	border-color: #b8cbc0;
}

.btn-full {
	width: 100%;
}

.metrics {
	padding-top: 28px;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.metric-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.metric-value {
	font-size: 1.9rem;
	font-weight: 800;
	color: #0b6f48;
	margin: 0 0 4px;
}

.metric-label {
	color: var(--muted);
	margin: 0;
}

.trust-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: center;
}

.rating {
	font-weight: 700;
	color: #0b6f48;
	margin-top: 16px;
}

.section-intro {
	color: var(--muted);
	margin-bottom: 24px;
}

.two-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.feature-card,
.step-card,
.lead-form {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
}

.feature-card ul {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
}

.feature-card li + li {
	margin-top: 8px;
}

.step-badge {
	width: 38px;
	height: 38px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background: #d8f6ea;
	color: #075d3d;
	font-weight: 800;
	border-radius: 50%;
	margin: 0 0 14px;
}

.eligibility {
	background: #e9fff4;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.check-list {
	margin: 16px 0 0;
	padding-left: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
}

.check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: #0b6f48;
}

.form-section {
	padding-top: 56px;
}

.lead-form {
	max-width: 720px;
}

.lead-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.lead-form input,
.lead-form select {
	width: 100%;
	padding: 12px;
	margin-bottom: 16px;
	border: 1px solid #ced8d1;
	border-radius: 10px;
	font-size: 1rem;
	background: #ffffff;
}

.lead-form input:focus-visible,
.lead-form select:focus-visible {
	outline: 2px solid #7fdcb8;
	outline-offset: 1px;
}

.form-notice {
	max-width: 720px;
	padding: 12px 14px;
	border-radius: 10px;
	margin: 0 0 14px;
	font-weight: 600;
}

.form-notice-success {
	background: #e8fff4;
	border: 1px solid #9de2c0;
	color: #0f6e47;
}

.form-notice-error {
	background: #fff1f1;
	border: 1px solid #f2bbbb;
	color: #8a1c1c;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.step-card p {
	color: var(--muted);
}

.faq {
	background: #f8fcfa;
}

.faq details {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
}

.faq details + details {
	margin-top: 10px;
}

.faq summary {
	cursor: pointer;
	font-weight: 700;
}

.faq details p {
	margin-top: 10px;
	color: var(--muted);
}

.cta-final {
	padding-top: 48px;
}

.cta-box {
	background: linear-gradient(120deg, #0f8e5c 0%, #15b06f 100%);
	color: #ffffff;
	padding: 40px;
	border-radius: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
}

.cta-box .btn-primary {
	background: #ffffff;
	color: #067147;
}

.cta-box .btn-primary:hover {
	background: #f1fff8;
}

.site-footer {
	padding: 52px 0 62px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.site-footer p {
	color: var(--muted);
	margin: 0 0 6px;
}

.site-footer a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-page {
	padding: 56px 0 70px;
}

.legal-section {
	padding: 0;
}

.legal-container {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: clamp(22px, 4vw, 36px);
	max-width: 920px;
}

.legal-updated {
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 22px;
}

.legal-container h2 {
	margin-top: 26px;
}

.legal-container ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.legal-container li + li {
	margin-top: 8px;
}

.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.whatsapp-float:hover {
	background: #1eb859;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.whatsapp-float:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.95);
	outline-offset: 2px;
}

@media (max-width: 980px) {
	.site-header-inner {
		flex-wrap: wrap;
	}

	.site-nav {
		order: 3;
		width: 100%;
		justify-content: center;
		padding-top: 6px;
	}

	.brand-logo {
		width: 200px;
	}

	.hero-grid,
	.trust-grid,
	.two-cards,
	.steps-grid,
	.metrics-grid {
		grid-template-columns: 1fr;
	}

	.landing section {
		padding: 56px 0;
	}

	.cta-box {
		padding: 28px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
	}
}
