/* ==========================================================================
   ImmersivePro — estilos del tema
   Valores extraídos del Figma "Inmersive pro" (ver docs/sistema-diseno.md)
   ========================================================================== */

:root {
	--c-primary: #ffc541;
	--c-primary-strong: #ffb200;
	--c-primary-soft: #f8c145;
	--c-primary-ink: #9a6a00; /* amarillo oscuro legible sobre blanco */
	--c-text: #111114;
	--c-text-soft: #4a4a55;
	--c-dark: #14141e;
	--c-bg: #fff;
	--c-surface: #f1f2f9;
	--c-surface-2: #f6f6f8;
	--c-band: #e4e4e6;
	--c-border: #e5e7eb;
	--c-muted: #cbcbcb;

	--f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--f-display: 'Sora', 'Inter', system-ui, sans-serif;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 20px;
	--r-pill: 999px;

	--sh-card: 0 10px 24px rgba(0, 0, 0, .05), 0 1px 4px rgba(25, 33, 61, .06);
	--sh-soft: 0 1px 4px rgba(25, 33, 61, .06), 0 .5px 1px rgba(25, 33, 61, .07);
	--sh-btn: 0 4px 14px rgba(0, 0, 0, .08);

	--container: 1240px;
	--gutter: 24px;
	--section: clamp(56px, 7vw, 96px);
	--header-h: 84px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-primary-strong); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.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 { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--c-dark); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 16px; }

/* --- Botones -------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 30px;
	border: 0; border-radius: var(--r-pill);
	font-family: var(--f-body); font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
	text-decoration: none; color: var(--c-text);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(180deg, var(--c-primary), var(--c-primary-strong)); box-shadow: 0 6px 16px rgba(255, 178, 0, .35), inset 0 -2px 0 rgba(0, 0, 0, .06); }
.btn--primary:hover { filter: brightness(1.04); box-shadow: 0 8px 20px rgba(255, 178, 0, .45); }
.btn--white { background: #fff; box-shadow: var(--sh-btn), inset 0 0 0 1px var(--c-surface); }
.btn--white:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .1), inset 0 0 0 1px var(--c-surface); }
.btn--static { cursor: default; font-weight: 600; }
.btn--static:hover { transform: none; }
.btn--block { width: 100%; }

.btn-group {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 10px; border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--c-surface), var(--sh-soft);
}
.btn-group--center { display: flex; width: fit-content; margin: 40px auto 0; }

/* --- Cabecera y menú ----------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.site-logo img { width: 220px; height: auto; }

.menu-toggle, .menu-close {
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 12px; background: #fff; color: var(--c-primary-soft);
	box-shadow: var(--sh-soft), inset 0 0 0 1px var(--c-surface);
}
.menu-toggle__icon { width: 28px; height: 28px; }
.menu-close { color: var(--c-text); }

.menu-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 30, .35); opacity: 0; transition: opacity .25s ease; }
.menu-overlay.is-open { opacity: 1; }
.menu-overlay__panel {
	position: absolute; inset: 0; overflow-y: auto;
	background: linear-gradient(160deg, #fff 0%, #fff 55%, #fff6dc 100%);
	transform: translateY(-16px); transition: transform .3s ease;
}
.menu-overlay.is-open .menu-overlay__panel { transform: none; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-block: 12px; }
.menu-overlay__nav { padding-block: clamp(24px, 6vh, 64px) 48px; }
.nav-menu > li { border-bottom: 1px solid var(--c-surface); }
.nav-menu > li > a {
	display: block; padding: 14px 0;
	font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 44px); line-height: 1.15;
	text-decoration: none; transition: color .15s ease, padding .15s ease;
}
.nav-menu > li > a:hover, .nav-menu .current-menu-item > a { color: var(--c-primary-ink); padding-left: 8px; }
.nav-menu .sub-menu { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0 0 18px; }
.nav-menu .sub-menu a {
	display: inline-block; padding: 8px 16px; border-radius: var(--r-pill);
	background: #fff; box-shadow: inset 0 0 0 1px var(--c-border);
	font-size: 16px; font-weight: 500; text-decoration: none;
}
.nav-menu .sub-menu a:hover { box-shadow: inset 0 0 0 2px var(--c-primary); }
.menu-overlay__cta { margin-top: 32px; }

/* --- Tipografía de secciones -------------------------------------------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .5); }
.section--flush-top { padding-top: 0; }
.section--band-top { padding-bottom: 0; }

.section-head { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.section-head--wide { max-width: 940px; }
.section-title {
	font-family: var(--f-display); font-weight: 700;
	font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; text-align: center; letter-spacing: -.01em;
	margin-bottom: 16px;
}
.section-head .section-title { margin-bottom: 14px; }
.section--band-top > .container > .section-title,
.section--band-top .section-head { margin-bottom: 40px; }
.section-lead { color: var(--c-text-soft); font-size: 16px; }
.section-lead + .section-lead { margin-top: 1em; }
.section-lead strong { color: var(--c-text); }

.feature-title { font-family: var(--f-body); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -.015em; margin-bottom: 18px; }
.prose-lg { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; }
.lead-strong { font-weight: 700; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); text-align: center; }
.hero__title {
	max-width: 1240px; margin-inline: auto;
	font-weight: 500; font-size: clamp(34px, 5.3vw, 75px); line-height: 1.12; letter-spacing: -.03em;
}
.hero__title strong { display: block; font-weight: 700; }
.hero__title--sm { font-size: clamp(30px, 4.4vw, 64px); }
.hero__lead { max-width: 860px; margin: 22px auto 34px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.4; color: var(--c-text-soft); letter-spacing: -.01em; }

/* --- Bandas partidas (gris + foto desenfocada) --------------------------- */

.band { position: relative; isolation: isolate; }
.band--split {
	background: var(--c-band);
	box-shadow: 0 -12px 24px -14px rgba(0, 0, 0, .18), 0 12px 24px -14px rgba(0, 0, 0, .18);
}
.band--split::before {
	content: ""; position: absolute; inset: 0 0 0 44%; z-index: -1;
	/* Tinte cálido: en el Figma la foto de oficina tira a beige/amarillo. */
	background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 40%), linear-gradient(rgba(255, 222, 160, .42), rgba(240, 225, 255, .25)), url(../img/bg-oficina.webp) center / cover no-repeat;
	clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}
.band--plain { background: var(--c-surface-2); padding-block: clamp(40px, 5vw, 64px); box-shadow: inset 0 10px 18px -14px rgba(0, 0, 0, .18), inset 0 -10px 18px -14px rgba(0, 0, 0, .18); }
.band--flush { margin-top: 0; }

.band__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
	padding-block: clamp(36px, 4vw, 56px);
}
.band__text { max-width: 560px; }
.band__text > p + p { margin-top: 1em; }
.band__media { display: flex; justify-content: center; }
.band__media--cutout { align-self: end; margin-top: -120px; margin-bottom: calc(clamp(36px, 4vw, 56px) * -1); }
.band__media--cutout img { max-height: 560px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .12)); }
.band__media--bottom { margin-top: 0; }
.band__logo { display: flex; justify-content: center; }
.treexr-logo { width: min(280px, 70%); }
.band--reverse .band__text { justify-self: end; text-align: right; }

/* --- Sectores ------------------------------------------------------------ */

.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sector-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	min-height: 177px; padding: 24px;
	background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-card), inset 0 0 0 1px var(--c-surface);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sector-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--c-primary); }
.sector-card__icon { width: 64px; height: 64px; color: var(--c-primary); }
.sector-card__label { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.02em; text-align: center; }

/* --- Promo (banner con imagen) ------------------------------------------- */

.promo {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px;
	padding: clamp(28px, 3vw, 40px);
	border-radius: var(--r-lg);
	background: linear-gradient(100deg, #ececee 0%, #f7f7f8 55%, #fff 100%);
	box-shadow: var(--sh-card);
}
.promo__title { font-weight: 700; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -.015em; margin-bottom: 12px; }
.promo__text p { color: var(--c-text-soft); margin-bottom: 24px; }
.promo__media img { width: 100%; aspect-ratio: 527 / 284; object-fit: cover; border-radius: var(--r-md); clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.promo--light { background: linear-gradient(100deg, #fff 0%, #f3f3f4 60%, #e9e9eb 100%); }
.promo__meta { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.promo__meta p { margin: 0; }
.promo__meta img { width: 72px; flex: none; }

/* --- Filas de imagen + texto -------------------------------------------- */

.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-md); }
.slant-right img { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.slant-left img { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.feature-row__text p { color: var(--c-text-soft); }
.feature-row__text p strong { color: var(--c-text); }
.feature-row__text .btn { margin-top: 12px; }

/* --- Pilares (Toda la tecnología...) ------------------------------------- */

.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px clamp(24px, 5vw, 72px); margin-bottom: 28px; }
.pillars li { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.02em; }
.badge-check {
	flex: none; width: 52px; height: 49px;
	background: url(../icons/check.svg) center / 120% no-repeat, url(../icons/blob.svg) center / contain no-repeat;
}
.pillars__text { max-width: 1000px; margin: 0 auto; text-align: center; font-size: 15px; color: var(--c-text-soft); }
.pillars__text strong { color: var(--c-text); }

/* --- Lista con icono en "gota" amarilla ---------------------------------- */

.icon-badge {
	flex: none; display: grid; place-items: center;
	width: 64px; height: 59px;
	background: url(../icons/blob.svg) center / contain no-repeat;
	color: var(--c-text);
}
.icon-badge svg { width: 34px; height: 34px; }
.icon-badge--sm { width: 52px; height: 48px; }
.icon-badge--sm svg { width: 26px; height: 26px; }
.icon-badge--xs { width: 44px; height: 41px; }
.icon-badge--xs svg { width: 24px; height: 24px; }

.icon-list { display: grid; gap: 20px; margin-bottom: 28px; }
.icon-list li { display: flex; align-items: center; gap: 22px; }
.icon-list p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); }
.icon-list--compact { gap: 22px; margin-bottom: 0; }
.icon-list--compact p { font-size: clamp(16px, 1.4vw, 20px); }

/* --- Servicios ----------------------------------------------------------- */

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.service-card {
	padding: 28px; background: #fff; border-radius: var(--r-lg);
	box-shadow: var(--sh-card), inset 0 0 0 1px var(--c-surface);
}
.service-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.service-card__title { position: relative; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em; padding-bottom: 10px; }
.service-card__title::first-letter { text-transform: uppercase; }
.service-card__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--c-primary); }
.service-card__title a { text-decoration: none; }
.service-card__title a:hover { color: var(--c-primary-ink); }
.service-card__img { width: 100%; aspect-ratio: 569 / 220; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 18px; }
.service-card__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

.checklist li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; font-size: 12px; color: var(--c-text); }

/* --- Testimonios --------------------------------------------------------- */

.testimonials {
	position: relative; padding-block: clamp(48px, 5vw, 64px);
	background:
		radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.6px) 0 0 / 28px 28px,
		linear-gradient(90deg, #ffd776 0%, var(--c-primary) 100%);
}
.testimonials .section-title { margin-bottom: 32px; }
.testimonials__track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2)) 16px;
	scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent;
}
.testimonial {
	flex: 0 0 min(460px, 82vw); scroll-snap-align: center;
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	margin: 0; padding: clamp(24px, 3vw, 40px); min-height: 300px;
	background: #fff; border-radius: var(--r-lg); box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}
.testimonial blockquote { margin: 0; font-weight: 600; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.4; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.testimonial figcaption span { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; color: var(--c-text-soft); }
.testimonial figcaption strong { font-size: 17px; color: var(--c-primary-ink); }

/* --- FAQ ----------------------------------------------------------------- */

.faq__list { display: grid; gap: 10px; }
.faq__item { background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-soft), inset 0 0 0 1px var(--c-surface); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 24px 28px; cursor: pointer; list-style: none;
	font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron {
	flex: none; width: 35px; height: 35px; border-radius: 50%;
	background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M8 4l6 6-6 6' stroke='%23FFB200' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .12); transition: transform .2s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(90deg); }
.faq__answer { padding: 0 28px 26px; color: var(--c-text-soft); max-width: 1080px; }

/* --- Contacto ------------------------------------------------------------ */

.contact { position: relative; isolation: isolate; padding-block: var(--section); }
.contact__band {
	position: absolute; left: 0; right: 0; top: 50%; height: min(520px, 70%); transform: translateY(-50%); z-index: -1;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2) 40%, #fff 72%), linear-gradient(rgba(255, 222, 160, .42), rgba(240, 225, 255, .25)), url(../img/bg-oficina.webp) left center / cover no-repeat;
}
.contact__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }

.contact__media img { width: 100%; max-width: 640px; margin-inline: auto; }
.contact__card { padding: clamp(24px, 3vw, 36px); background: rgba(250, 250, 251, .96); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.contact__title { font-weight: 700; font-size: clamp(24px, 2.1vw, 28px); letter-spacing: -.025em; margin-bottom: 8px; }
.contact__lead { font-size: 15px; color: var(--c-text-soft); margin-bottom: 24px; }

.contact-form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field .optional { font-weight: 400; color: var(--c-text-soft); }
.field input, .field textarea {
	width: 100%; padding: 13px 16px;
	font: inherit; font-size: 16px; color: var(--c-text);
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
	box-shadow: var(--sh-soft); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary-strong); box-shadow: 0 0 0 3px rgba(255, 197, 65, .35); }
::placeholder { color: #8a8a96; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--c-text-soft); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary-strong); flex: none; }
.consent a { color: var(--c-text); }
/* Contact Form 7: mismo aspecto que el formulario del Figma. */
.contact-form--cf7 .wpcf7-form { display: grid; gap: 16px; }
.contact-form--cf7 .wpcf7-form > p { margin: 0; font-size: 14px; font-weight: 500; }
.contact-form--cf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.contact-form--cf7 input[type="text"], .contact-form--cf7 input[type="email"], .contact-form--cf7 input[type="tel"], .contact-form--cf7 textarea {
	width: 100%; padding: 13px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--c-text);
	background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); box-shadow: var(--sh-soft);
}
.contact-form--cf7 textarea { resize: vertical; min-height: 96px; max-height: 240px; }
.contact-form--cf7 input:focus, .contact-form--cf7 textarea:focus { outline: none; border-color: var(--c-primary-strong); box-shadow: 0 0 0 3px rgba(255, 197, 65, .35); }
.contact-form--cf7 .wpcf7-acceptance, .contact-form--cf7 .wpcf7-list-item { margin: 0; font-weight: 400; color: var(--c-text-soft); }
.contact-form--cf7 .wpcf7-acceptance input { accent-color: var(--c-primary-strong); margin-right: 8px; }
.contact-form--cf7 .wpcf7-captchar { width: 140px !important; display: inline-block; margin-left: 10px; }
.contact-form--cf7 .wpcf7-submit {
	width: 100%; min-height: 52px; border: 0; border-radius: var(--r-pill); cursor: pointer;
	font: 500 18px var(--f-body); color: var(--c-text); background: #fff; box-shadow: var(--sh-btn), inset 0 0 0 1px var(--c-surface);
}
.contact-form--cf7 .wpcf7-submit:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .1), inset 0 0 0 1px var(--c-primary); }
.contact-form--cf7 .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.contact-form--cf7 .wpcf7-response-output { margin: 0 !important; border-radius: var(--r-sm); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; }
.form-notice--error { background: #fdecec; color: #8a1c1c; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { padding-block: 48px 32px; }
.site-footer__brand {
	padding: 28px clamp(20px, 4vw, 48px); margin-bottom: 32px; border-radius: var(--r-lg);
	background: linear-gradient(90deg, #fff 0%, #f1f1f2 100%); box-shadow: var(--sh-card);
}
.site-footer__brand img { width: min(300px, 70vw); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; padding-inline: clamp(0px, 4vw, 48px); font-size: 15px; }
.site-footer__title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-primary-ink); text-decoration: underline; }
.footer-contact li, .footer-addresses li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li + li, .footer-addresses li + li { margin-top: 12px; }
.footer-contact svg, .footer-addresses svg { flex: none; margin-top: 3px; color: var(--c-primary-strong); }
.site-footer__copy { margin-top: 40px; padding-inline: clamp(0px, 4vw, 48px); font-size: 13px; color: var(--c-text-soft); }

/* --- TreeXR: beneficios, ventajas, funciones ----------------------------- */

.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.benefit img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 14px; }
.benefit__title { font-family: var(--f-body); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -.01em; }

.split-full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: var(--section) 0; }
.split-full__media img { width: 100%; max-height: 560px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); }
.split-full__text { padding-right: var(--gutter); max-width: 620px; }
.check-badges { display: grid; gap: 12px; margin-bottom: 32px; }
.check-badges li {
	display: flex; align-items: center; gap: 12px; font-size: clamp(16px, 1.3vw, 18px); font-weight: 500;
}
.check-badges li::before {
	content: ""; flex: none; width: 30px; height: 28px;
	background: url(../icons/check.svg) center / 130% no-repeat, url(../icons/blob.svg) center / contain no-repeat;
}

.func-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: 32px; margin-top: 40px; }
.func-row--reverse .func-row__img { order: 2; }
.func-row__img { width: 100%; aspect-ratio: 766 / 398; object-fit: cover; border-radius: var(--r-sm); }
.func-row__cards { display: grid; gap: 20px; }
.func-card { padding: 24px 26px; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-card), inset 0 0 0 1px var(--c-surface); }
.func-card .icon-badge { float: left; margin: -2px 14px 4px -6px; }
.func-card h3 { font-size: 18px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; min-height: 40px; }
.func-card p { clear: both; font-size: 15px; color: var(--c-text-soft); }

/* --- Páginas interiores y blog ------------------------------------------ */

.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); text-align: center; }
.page-hero__inner { max-width: 1000px; }
.page-hero__title { font-weight: 600; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.03em; }
.page-hero__title strong { font-weight: 800; }
.page-hero__lead { max-width: 760px; margin: 18px auto 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--c-text-soft); }
.eyebrow { display: inline-flex; gap: 6px; margin-bottom: 16px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-surface); font-size: 14px; font-weight: 500; }
.eyebrow a { text-decoration: none; color: var(--c-primary-ink); }

.entry-featured { margin: 0 0 40px; }
.entry-featured img { width: 100%; border-radius: var(--r-lg); }

.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.8em; letter-spacing: -.01em; }
.entry-content h3 { font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 22px); margin-top: 1.6em; }
.entry-content h4 { font-size: 18px; margin-top: 1.4em; }
.entry-content a { color: var(--c-primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ul li::marker { color: var(--c-primary-strong); }
.entry-content li + li { margin-top: .35em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 14px; color: var(--c-text-soft); margin-top: 8px; text-align: center; }
.entry-content blockquote { margin-inline: 0; padding: 20px 24px; border-left: 4px solid var(--c-primary); background: var(--c-surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 18px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--c-border); text-align: left; }
.entry-content iframe { max-width: 100%; border-radius: var(--r-md); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
/* Bloques HTML heredados de WPBakery: diseñados para fondo oscuro. */
.entry-content .legacy-raw { margin-block: 2em; padding: clamp(20px, 3vw, 40px); background: var(--c-dark); color: #fff; border-radius: var(--r-md); overflow-x: auto; }
.entry-content .legacy-raw img { max-width: 100%; height: auto; }
.entry-content .legacy-raw a { color: var(--c-primary); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-card), inset 0 0 0 1px var(--c-surface); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--c-surface); }
.post-card__media img, .post-card__placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #fff3cf, var(--c-primary)); }
.post-card__placeholder svg { width: 56px; height: 56px; color: rgba(0, 0, 0, .55); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card__date { font-size: 13px; color: var(--c-text-soft); }
.post-card__title { margin: 6px 0 10px; font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--c-primary-ink); }
.post-card__excerpt { font-size: 15px; color: var(--c-text-soft); flex: 1; }
.post-card__more { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--c-primary-ink); text-decoration: none; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--c-border); text-decoration: none; font-weight: 500; }
.pagination .page-numbers.current { background: var(--c-primary); box-shadow: none; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-border); font-weight: 600; }
.post-nav a { text-decoration: none; }
.post-nav a:hover { color: var(--c-primary-ink); }
.post-nav div:last-child { text-align: right; }

.empty-state { display: grid; justify-items: center; gap: 24px; text-align: center; }
.search-form { display: flex; gap: 8px; width: min(520px, 100%); }
.search-form input { flex: 1; min-width: 0; padding: 12px 18px; font: inherit; border: 1px solid var(--c-border); border-radius: var(--r-pill); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.service-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.func-row { grid-template-columns: 1fr; }
	.func-row--reverse .func-row__img { order: 0; }
	.func-row__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; --header-h: 72px; }

	.site-logo img { width: 170px; }

	.band__inner, .feature-row, .promo, .contact__inner, .split-full { grid-template-columns: 1fr; }
	.band--split::before { inset: 45% 0 0 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
	.band--reverse::before { opacity: .35; }
	.band__text { max-width: none; }
	.band--reverse .band__text { text-align: left; }
	.band__media--cutout { margin-top: 0; }
	.band__media--cutout img { max-height: 380px; }

	.feature-row--reverse .feature-row__media { order: 0; }
	.promo__media { order: -1; }
	.contact__band { top: 0; height: 360px; transform: none; }
	.contact__media img { max-width: 420px; }
	.split-full__text { padding-inline: var(--gutter); }
	.split-full__media img { clip-path: none; max-height: 360px; }

	.sector-grid, .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.sector-card { min-height: 140px; padding: 18px 12px; }
	.sector-card__icon { width: 48px; height: 48px; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
	.btn { font-size: 16px; min-height: 48px; padding: 12px 22px; }
	.btn-group { display: flex; flex-direction: column; align-items: stretch; width: 100%; border-radius: 28px; }
	.btn-group--center { width: 100%; }

	.service-card { padding: 20px; }
	.service-card__lists { grid-template-columns: 1fr; }
	.post-grid, .func-row__cards { grid-template-columns: 1fr; }
	.pillars { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
	.pillars__text { text-align: left; }
	.faq__item summary { padding: 18px 18px; }
	.faq__answer { padding: 0 18px 20px; }
	.benefit-grid { grid-template-columns: 1fr; }
	.post-nav { flex-direction: column; }
	.post-nav div:last-child { text-align: left; }
}
