/* ==========================================================================
   Jardín Premium — estilos principales
   ========================================================================== */

:root {
	--c-primary: #12372a;
	--c-primary-2: #2e5342;
	--c-primary-dark: #0a2a1e;
	--c-accent: #c8a35f;
	--c-accent-2: #ac8743;
	--c-cream: #f7f3ea;
	--c-sand: #e9e5dc;
	--c-ink: #14201a;
	--c-muted: #5d6b62;
	--c-white: #ffffff;
	--c-line: rgba(18, 55, 42, 0.12);

	--f-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 24px 60px -28px rgba(10, 42, 30, 0.45);
	--shadow-sm: 0 10px 30px -16px rgba(10, 42, 30, 0.35);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--c-accent-2); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; color: var(--c-primary); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 56px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; padding: 12px 20px; left: 12px; top: 12px;
	background: var(--c-accent); color: var(--c-primary-dark); z-index: 1000; border-radius: 8px;
}

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1.2;
	letter-spacing: 0.01em; cursor: pointer;
	transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--c-accent); color: var(--c-primary-dark); box-shadow: 0 12px 28px -12px var(--c-accent); }
.btn--accent:hover { background: #d6b574; color: var(--c-primary-dark); }
.btn--primary { background: var(--c-primary); color: var(--c-white); box-shadow: 0 12px 28px -14px var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-2); color: var(--c-white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--c-white); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--c-primary); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--c-accent-2); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Encabezado ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
	background: rgba(247, 243, 234, 0.9); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
	border-bottom: 1px solid var(--c-line);
	transition: height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { --header-h: 70px; height: 70px; box-shadow: 0 10px 40px -24px rgba(10, 42, 30, 0.5); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--c-primary); line-height: 1; }
.brand:hover { color: var(--c-primary); }
.brand .custom-logo { max-height: 52px; width: auto; }
.brand__mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px;
	background: var(--c-primary); color: var(--c-accent);
}
.brand__mark .icon { width: 24px; height: 24px; }
.brand--light, .brand--light:hover { color: var(--c-white); }
.brand--light .brand__mark { background: var(--c-accent); color: var(--c-primary-dark); }

.primary-nav .menu, .primary-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.primary-nav .menu > ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a {
	position: relative; display: block; padding: 10px 16px; font-weight: 500; font-size: 15px; color: var(--c-ink);
}
.primary-nav .menu > li > a::after, .primary-nav > ul > li > a::after {
	content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; background: var(--c-accent);
	transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.primary-nav li:hover > a::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--c-primary); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; padding: 10px; margin: 0;
	background: var(--c-white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.3s var(--ease);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--c-primary); }
.header-phone .icon { width: 18px; height: 18px; color: var(--c-accent-2); }
.header-cta { padding: 11px 24px; }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
	background: var(--c-primary); position: relative; z-index: 120;
}
.nav-toggle__bar { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--c-white); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle__bar:nth-child(2) { top: 16px; }
.nav-toggle__bar:nth-child(3) { top: 22px; }
.nav-toggle__bar:nth-child(4) { top: 28px; }
.nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* Encabezado transparente sobre banners oscuros */
.jp-hero-page .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.jp-hero-page .site-header:not(.is-scrolled) .brand,
.jp-hero-page .site-header:not(.is-scrolled) .primary-nav a,
.jp-hero-page .site-header:not(.is-scrolled) .header-phone { color: var(--c-white); }
.jp-hero-page .site-header:not(.is-scrolled) .brand__mark { background: var(--c-accent); color: var(--c-primary-dark); }
.jp-hero-page .site-header:not(.is-scrolled) .header-phone .icon { color: var(--c-accent); }
.jp-hero-page .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, 0.16); }
.jp-hero-page .primary-nav .sub-menu a { color: var(--c-ink); }

/* Espacio bajo el encabezado fijo cuando no hay banner oscuro */
body:not(.jp-hero-page) .site-main { padding-top: var(--header-h); }

/* ---------- Tipografía de secciones ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
	font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent-2);
}
.kicker::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.kicker--light { color: var(--c-accent); }

.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section--sand { background: var(--c-sand); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::after { content: ''; width: 36px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.5rem); margin-bottom: 0.4em; }
.section-title em, .hero__title em, .cta__title em, .page-hero__title em, .not-found__title em { font-style: italic; color: var(--c-accent); font-weight: 500; }
.section-lead { font-size: 1.15rem; color: var(--c-muted); margin: 0 auto; max-width: 620px; }
.section-head--light .section-title { color: var(--c-white); }
.section-head--light .section-lead { color: rgba(255, 255, 255, 0.75); }

/* ---------- Arte de relleno (cuando aún no hay fotos) ---------- */
.art {
	position: relative; width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; overflow: hidden;
	color: rgba(255, 255, 255, 0.55);
	background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #1d4d3a, #0e2d21);
	background-size: 220px, cover;
}
.art .icon { width: 72px; height: 72px; stroke-width: 1.1; }
.art--2 { background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #476b52, #1c4130); }
.art--3 { background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #6e8b5e, #2c5a3f); }
.art--4 { background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #234f3b, #0a2a1e); }
.art--5 { background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #8a7a4a, #3d5a3a); }
.art--6 { background-image: url('../img/leaf-pattern.svg'), linear-gradient(145deg, #3a6b55, #143b2b); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
	padding: calc(var(--header-h) + 60px) 0 120px; color: var(--c-white); isolation: isolate;
}
.hero__bg {
	position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center;
	background-image: url('../img/leaf-pattern.svg'), radial-gradient(1200px 700px at 78% 18%, #2f6b4f 0%, transparent 60%), radial-gradient(900px 600px at 10% 90%, #1b4a36 0%, transparent 55%), linear-gradient(160deg, #0f3326, #07201a);
	background-size: 260px, cover, cover, cover;
}
.hero__bg.has-image { background-size: cover; animation: heroZoom 22s var(--ease) infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__shade {
	position: absolute; inset: 0; z-index: -2;
	background: linear-gradient(180deg, rgba(7, 32, 26, 0.55) 0%, rgba(7, 32, 26, 0.25) 40%, rgba(7, 32, 26, 0.8) 100%), linear-gradient(90deg, rgba(7, 32, 26, 0.7) 0%, rgba(7, 32, 26, 0) 70%);
}
.hero__leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.leaf { position: absolute; color: rgba(200, 163, 95, 0.14); animation: floaty 14s ease-in-out infinite; }
.leaf--1 { width: 360px; right: 6%; top: 14%; transform: rotate(12deg); }
.leaf--2 { width: 220px; right: 24%; bottom: 14%; transform: rotate(-40deg); color: rgba(255, 255, 255, 0.07); animation-delay: -4s; }
.leaf--3 { width: 150px; right: 4%; bottom: 22%; transform: rotate(70deg); animation-delay: -8s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -22px; } }

.hero__inner { position: relative; }
.hero__title { font-size: clamp(2.7rem, 7vw, 6rem); line-height: 1.02; color: var(--c-white); max-width: 900px; margin-bottom: 0.35em; letter-spacing: -0.02em; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 600px; color: rgba(255, 255, 255, 0.82); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px 32px; list-style: none; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.hero__badges li { display: inline-flex; align-items: center; gap: 10px; }
.hero__badges .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary-dark); stroke-width: 2.4; }

.hero__scroll {
	position: absolute; left: 50%; bottom: 36px; width: 26px; height: 44px; margin-left: -13px;
	border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-accent); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Cinta ---------- */
.marquee { background: var(--c-accent); color: var(--c-primary-dark); overflow: hidden; padding: 20px 0; border-block: 1px solid rgba(10, 42, 30, 0.1); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-family: var(--f-head); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.75rem); white-space: nowrap; padding: 0 20px; }
.marquee__dot .icon { width: 22px; height: 22px; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 0 30px 30px; }
.about__frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-primary); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__ring { position: absolute; left: 0; top: 60px; bottom: 0; width: 70%; border: 2px solid var(--c-accent); border-radius: 999px 999px var(--radius) var(--radius); z-index: 0; opacity: 0.7; }
.about__badge {
	position: absolute; z-index: 2; right: -18px; bottom: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 150px; height: 150px; border-radius: 50%; text-align: center; background: var(--c-primary); color: var(--c-white);
	box-shadow: var(--shadow); border: 6px solid var(--c-cream); line-height: 1.2; animation: floaty 9s ease-in-out infinite;
}
.about__badge strong { font-family: var(--f-head); font-size: 2.6rem; color: var(--c-accent); line-height: 1; }
.about__badge span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 18px; margin-top: 6px; opacity: 0.9; }
.about__text { color: var(--c-muted); font-size: 1.08rem; }
.checklist { list-style: none; display: grid; gap: 14px; margin: 28px 0 38px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checklist li span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: var(--c-accent); }
.checklist .icon { width: 16px; height: 16px; stroke-width: 2.6; }

/* ---------- Servicios ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	position: relative; padding: 42px 36px 36px; background: var(--c-white); border-radius: var(--radius); border: 1px solid var(--c-line);
	overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card::before {
	content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__num { position: absolute; right: 28px; top: 18px; font-family: var(--f-head); font-size: 4.2rem; line-height: 1; color: rgba(18, 55, 42, 0.07); font-weight: 700; transition: color 0.4s; }
.service-card:hover .service-card__num { color: rgba(200, 163, 95, 0.3); }
.service-card__icon {
	display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 26px; border-radius: 22px 22px 22px 6px;
	background: var(--c-primary); color: var(--c-accent); transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-card__icon .icon { width: 32px; height: 32px; }
.service-card:hover .service-card__icon { background: var(--c-accent); color: var(--c-primary-dark); transform: rotate(-6deg) scale(1.05); }
.service-card__title { font-size: 1.55rem; margin-bottom: 12px; }
.service-card__title a:hover { color: var(--c-primary-2); }
.service-card__text { color: var(--c-muted); margin-bottom: 24px; flex: 1; }

/* ---------- Cifras ---------- */
.stats { position: relative; padding: clamp(64px, 8vw, 100px) 0; background: var(--c-primary); color: var(--c-white); overflow: hidden; }
.stats__pattern { position: absolute; inset: 0; opacity: 0.08; background: url('../img/leaf-pattern.svg') center / 260px; pointer-events: none; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat { padding: 8px 12px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -16px; top: 12%; bottom: 12%; width: 1px; background: rgba(255, 255, 255, 0.15); }
.stat__value { font-family: var(--f-head); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--c-accent); font-weight: 600; }
.stat__label { margin-top: 12px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }

/* ---------- Proyectos ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 20px; }
.project { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-primary); }
.project--1 { grid-row: span 2; }
.project--4 { grid-row: span 2; }
.project img, .project .art { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project:hover img, .project:hover .art { transform: scale(1.08); }
.project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 32, 26, 0.85)); opacity: 0.85; transition: opacity 0.4s; }
.project:hover::after { opacity: 1; }
.project__caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; color: var(--c-white); transform: translateY(8px); transition: transform 0.5s var(--ease); }
.project:hover .project__caption { transform: none; }
.project__caption small { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 4px; font-weight: 600; }
.project__caption strong { font-family: var(--f-head); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }

/* ---------- Proceso ---------- */
.process__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.process__list::before { content: ''; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 8px, transparent 8px 16px); opacity: 0.7; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
	position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%;
	background: var(--c-primary); color: var(--c-accent); font-family: var(--f-head); font-size: 1.9rem; font-weight: 600;
	border: 6px solid var(--c-sand); box-shadow: 0 0 0 2px var(--c-accent); transition: transform 0.4s var(--ease);
}
.step:hover .step__num { transform: scale(1.1) rotate(-6deg); }
.step__title { font-size: 1.35rem; margin-bottom: 8px; }
.step__text { color: var(--c-muted); font-size: 0.98rem; margin: 0; }

/* ---------- Testimonios ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi {
	position: relative; margin: 0; padding: 40px 34px 34px; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line);
	display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testi:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.testi__quote { position: absolute; right: 28px; top: 24px; color: var(--c-accent); opacity: 0.35; }
.testi__quote .icon { width: 54px; height: 54px; stroke-width: 1.2; }
.testi__stars { display: flex; gap: 3px; color: var(--c-accent); margin-bottom: 18px; }
.testi__stars .icon { width: 18px; height: 18px; }
.testi__text { margin: 0 0 28px; font-family: var(--f-head); font-style: italic; font-size: 1.18rem; line-height: 1.6; color: var(--c-ink); flex: 1; }
.testi__author { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.testi__author strong { display: block; font-size: 15.5px; color: var(--c-primary); line-height: 1.3; }
.testi__author small { color: var(--c-muted); font-size: 13.5px; }
.testi__avatar { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--c-primary); color: var(--c-accent); font-family: var(--f-head); font-size: 1.4rem; font-weight: 600; }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post-card__thumb { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-primary); }
.post-card__thumb img, .post-card__thumb .art { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__thumb img, .post-card:hover .post-card__thumb .art { transform: scale(1.07); }
.post-card__body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; font-size: 13px; color: var(--c-muted); }
.post-card__cat { padding: 4px 12px; border-radius: 999px; background: rgba(200, 163, 95, 0.2); color: var(--c-accent-2); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.post-card__title { font-size: 1.4rem; margin-bottom: 12px; }
.post-card__title a:hover { color: var(--c-primary-2); }
.post-card__excerpt { color: var(--c-muted); font-size: 0.98rem; flex: 1; }

.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white); font-weight: 600; font-size: 15px; transition: all 0.3s var(--ease); }
a.page-numbers:hover, .page-numbers.current { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0; background: var(--c-primary-dark); color: var(--c-white); text-align: center; isolation: isolate; }
.cta__pattern { position: absolute; inset: 0; z-index: -1; background: url('../img/leaf-pattern.svg') center / 280px, radial-gradient(800px 400px at 50% 0%, rgba(200, 163, 95, 0.22), transparent 70%); opacity: 0.22; }
.cta__inner { max-width: 860px; }
.cta__title { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--c-white); }
.cta__text { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 2em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Banner de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 80px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: var(--c-white); isolation: isolate; }
.page-hero__pattern { position: absolute; inset: 0; z-index: -1; background: url('../img/leaf-pattern.svg') right center / 260px, radial-gradient(700px 400px at 85% 0%, rgba(200, 163, 95, 0.25), transparent 65%); opacity: 0.25; }
.page-hero__title { font-size: clamp(2.4rem, 6vw, 4.8rem); color: var(--c-white); max-width: 900px; margin-bottom: 0.3em; }
.page-hero__text { font-size: 1.2rem; max-width: 620px; color: rgba(255, 255, 255, 0.78); margin: 0; }
.page-hero__meta { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.75); font-size: 15px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs span:last-child { color: var(--c-accent); }
.page-hero--single .page-hero__title { font-size: clamp(2.1rem, 5vw, 3.8rem); }

/* ---------- Nosotros ---------- */
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { padding: clamp(36px, 5vw, 60px); border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); }
.mv-card--dark { background: var(--c-primary); color: rgba(255, 255, 255, 0.85); border-color: transparent; }
.mv-card--dark h2 { color: var(--c-white); }
.mv-card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 20px 20px 20px 6px; background: var(--c-primary); color: var(--c-accent); }
.mv-card--dark .mv-card__icon { background: var(--c-accent); color: var(--c-primary-dark); }
.mv-card__icon .icon { width: 30px; height: 30px; }
.mv-card h2 { font-size: 2rem; }
.mv-card p { margin: 0; font-size: 1.08rem; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.value { text-align: center; padding: 0 12px; }
.value__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--c-accent); color: var(--c-primary); background: rgba(200, 163, 95, 0.12); transition: transform 0.4s var(--ease), background 0.4s; }
.value:hover .value__icon { transform: translateY(-6px); background: var(--c-accent); }
.value__icon .icon { width: 36px; height: 36px; }
.value h3 { font-size: 1.45rem; }
.value p { color: var(--c-muted); margin: 0; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.info-list { list-style: none; display: grid; gap: 20px; }
.info-list li { display: flex; align-items: center; gap: 18px; font-size: 1.05rem; }
.info-list small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.info-list a { font-weight: 600; color: var(--c-primary); }
.info-list a:hover { color: var(--c-accent-2); }
.info-list__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px 18px 18px 5px; background: var(--c-primary); color: var(--c-accent); }
.info-list__icon .icon { width: 24px; height: 24px; }

.form-card { padding: clamp(28px, 4vw, 48px); background: var(--c-white); border-radius: var(--radius); border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--c-primary); }
.field input, .field select, .field textarea {
	width: 100%; padding: 15px 18px; font: inherit; font-size: 16px; color: var(--c-ink); background: var(--c-cream);
	border: 1.5px solid transparent; border-radius: var(--radius-sm); transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); background: var(--c-white); box-shadow: 0 0 0 4px rgba(200, 163, 95, 0.2); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 16px 0 0; font-size: 13px; text-align: center; color: var(--c-muted); }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 24px; border-radius: var(--radius-sm); font-size: 15px; }
.alert--ok { background: #e6f3ea; color: #14532d; }
.alert--ok .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.alert--error { background: #fdeaea; color: #7f1d1d; }
.map { height: 440px; background: var(--c-sand); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---------- Entradas y páginas ---------- */
.entry__image { margin: 0 0 48px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry__image img { width: 100%; }
.entry-content { font-size: 1.12rem; line-height: 1.85; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { font-size: 2.1rem; margin: 1.8em 0 0.6em; }
.entry-content h3 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
.entry-content a { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--c-primary); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--c-accent); font-family: var(--f-head); font-style: italic; font-size: 1.35rem; color: var(--c-primary); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--c-muted); margin-top: 8px; text-align: center; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.entry__tags a { padding: 6px 16px; border-radius: 999px; background: var(--c-sand); font-size: 14px; font-weight: 500; }
.entry__tags a:hover { background: var(--c-primary); color: var(--c-white); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c-line); font-weight: 600; }
.post-nav__next { text-align: right; }

/* Comentarios */
.comments { margin-top: 64px; }
.comments__title, .comment-reply-title { font-size: 1.8rem; }
.comment-list { list-style: none; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 24px; margin-bottom: 16px; background: var(--c-white); border-radius: var(--radius-sm); border: 1px solid var(--c-line); }
.comment-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-muted); margin-bottom: 10px; }
.comment-meta .avatar { border-radius: 50%; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.comment-form input[type='text'], .comment-form input[type='email'], .comment-form input[type='url'], .comment-form textarea { width: 100%; padding: 14px 16px; font: inherit; background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); }
.comment-form p { margin-bottom: 18px; }

/* Búsqueda */
.search-form { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 14px 18px; font: inherit; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-white); }
.search-form .search-submit { padding: 14px 26px; border: 0; border-radius: 999px; background: var(--c-primary); color: var(--c-white); font-weight: 600; }

/* 404 */
.not-found { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; background: var(--c-primary-dark); color: var(--c-white); isolation: isolate; overflow: hidden; }
.not-found .page-hero__pattern { opacity: 0.3; }
.not-found__code { font-family: var(--f-head); font-size: clamp(6rem, 18vw, 13rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 2px var(--c-accent); margin: 0 0 12px; }
.not-found__title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--c-white); }
.not-found__text { color: rgba(255, 255, 255, 0.75); max-width: 480px; margin: 0 auto 2em; }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; background: var(--c-primary-dark); color: rgba(255, 255, 255, 0.75); overflow: hidden; isolation: isolate; }
.site-footer__pattern { position: absolute; inset: 0; z-index: -1; opacity: 0.06; background: url('../img/leaf-pattern.svg') center / 260px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(48px, 6vw, 72px); }
.footer-col--brand p { margin: 22px 0; max-width: 340px; }
.footer-title { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 22px; }
.footer-menu, .footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--c-accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { margin-top: 4px; color: var(--c-accent); width: 18px; height: 18px; }
.social { display: flex; gap: 10px; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); transition: all 0.3s var(--ease); }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); transform: translateY(-4px); }
.social .icon { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--c-accent); }

.whatsapp-float {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7); transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animaciones de aparición ---------- */
.js .jp-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .jp-reveal.is-visible { opacity: 1; transform: none; }
.jp-reveal[data-delay='1'] { transition-delay: 0.12s; }
.jp-reveal[data-delay='2'] { transition-delay: 0.24s; }
.jp-reveal[data-delay='3'] { transition-delay: 0.36s; }
.jp-reveal[data-delay='4'] { transition-delay: 0.48s; }
.elementor-editor-active .jp-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Elementor ---------- */
.elementor-page .site-main { overflow-x: clip; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1240px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.header-phone span { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.process__list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.process__list::before { display: none; }
}

@media (max-width: 960px) {
	/* backdrop-filter crearía un contenedor para el menú fijo a pantalla completa */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 243, 234, 0.97); }
	.nav-toggle { display: block; }
	.header-cta, .header-phone { display: none; }

	.primary-nav {
		position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px;
		padding: 100px 32px 48px; background: var(--c-primary-dark); opacity: 0; visibility: hidden; transform: translateY(-12px);
		transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
	}
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu, .primary-nav > ul { flex-direction: column; gap: 4px; text-align: center; }
	.primary-nav a, .jp-hero-page .site-header:not(.is-scrolled) .primary-nav a { font-family: var(--f-head); font-size: 2rem; padding: 8px 20px; color: var(--c-white); font-weight: 500; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--c-accent); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0; }
	.primary-nav .sub-menu a { font-size: 1.2rem; color: rgba(255, 255, 255, 0.7); }
	.nav-cta-mobile { display: inline-flex; }
	.site-header .brand, .nav-open .site-header .brand { position: relative; z-index: 120; }
	.nav-open .site-header .brand { color: var(--c-white); }
	.nav-open .site-header .nav-toggle { background: rgba(255, 255, 255, 0.16); }

	.about__grid, .contact__grid, .mv__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 460px; margin: 0 auto; }
	.services__grid, .testimonials__grid, .posts-grid, .values__grid { grid-template-columns: repeat(2, 1fr); }
	.projects__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
	.stat:nth-child(odd)::before { display: none; }
	.stat + .stat::before { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 20px; }
	.hero { padding-bottom: 100px; }
	.hero__scroll { display: none; }
	.hero__actions .btn { width: 100%; }
	.leaf--1 { width: 220px; right: -40px; top: 10%; }
	.services__grid, .testimonials__grid, .posts-grid, .values__grid, .form-row, .process__list, .footer-grid { grid-template-columns: 1fr; }
	.projects__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
	.project--1, .project--4 { grid-row: span 1; }
	.about__badge { width: 120px; height: 120px; right: -8px; }
	.about__badge strong { font-size: 2rem; }
	.cta__actions .btn { width: 100%; }
	.map { height: 340px; }
	.footer-bottom__inner { flex-direction: column; text-align: center; }
	.whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.js .jp-reveal { opacity: 1; transform: none; }
}
