/* =========================================================
   TEMVA — estilos del tema (complementan theme.json)
   ========================================================= */

:root {
	--temva-navy: var(--wp--preset--color--navy);
	--temva-primary: var(--wp--preset--color--primary);
	--temva-teal: var(--wp--preset--color--teal);
	--temva-green: var(--wp--preset--color--green);
	--temva-surface: var(--wp--preset--color--surface);
	--temva-border: var(--wp--preset--color--border);
	--temva-muted: var(--wp--preset--color--muted);
	--temva-brand: var(--wp--preset--gradient--brand);
	--temva-radius: 18px;
	--temva-shadow: var(--wp--preset--shadow--card);
	--temva-header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--temva-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(0, 191, 166, .25); }

/* Sin espacio entre cabecera, contenido y pie */
.wp-site-blocks > * + * { margin-block-start: 0; }
.temva-main > .wp-block-post-content > *:first-child,
.temva-main { margin-block-start: 0; }
.temva-main .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* ---------- Utilidades ---------- */
.temva-eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	margin: 0 0 .9rem; font-family: var(--wp--preset--font-family--heading);
	font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--temva-primary);
}
.temva-eyebrow::before {
	content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--temva-brand);
}
.temva-gradient-text {
	background: linear-gradient(100deg, #3d8bff 0%, #00BFA6 55%, #8BC34A 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.temva-lead { font-size: var(--wp--preset--font-size--large); color: var(--temva-muted); }

/* ---------- Cabecera ---------- */
.temva-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .temva-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .temva-header-wrap { top: 46px; } }

.temva-header {
	position: relative;
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
/* El desenfoque va en un pseudo-elemento: backdrop-filter en la cabecera misma
   la convierte en contenedor de los position:fixed y encierra el menú móvil. */
.temva-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.is-scrolled .temva-header { border-bottom-color: var(--temva-border); box-shadow: 0 8px 24px -18px rgba(10, 27, 46, .35); }
.temva-header__bar { min-height: var(--temva-header-h); gap: 1.5rem; }
.temva-logo { display: inline-flex; flex-shrink: 0; line-height: 0; }
.temva-logo img { height: 42px; width: auto; }
.temva-nav { flex: 1; }
.temva-nav .wp-block-navigation-item__content {
	position: relative; padding: .5rem .15rem; color: var(--temva-navy); transition: color .2s ease;
}
.temva-nav .wp-block-navigation__container { gap: 1.9rem; }
.temva-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--temva-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.temva-nav .wp-block-navigation-item__content:hover { color: var(--temva-primary); text-decoration: none; }
.temva-nav .wp-block-navigation-item__content:hover::after,
.temva-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.temva-header__cta .wp-block-button__link { padding: .7rem 1.2rem; font-size: .875rem; }

@media (max-width: 1080px) {
	.temva-header .temva-header__cta { display: none; }
}
@media (max-width: 600px) {
	.temva-logo img { height: 34px; }
	:root { --temva-header-h: 64px; }
}
/* Menú móvil */
.temva-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: radial-gradient(40rem 24rem at 100% 0%, rgba(0, 102, 255, .35), transparent 60%), var(--temva-navy) !important;
	color: #fff !important; padding: 1.25rem clamp(1.25rem, 6vw, 2rem) 2rem;
}
.temva-nav .wp-block-navigation__responsive-container-close {
	top: 1.1rem; right: clamp(1.25rem, 6vw, 2rem); width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff;
}
.temva-nav .wp-block-navigation__responsive-container-close svg { width: 26px; height: 26px; fill: currentColor; }
.temva-nav .wp-block-navigation__responsive-container-open { padding: 8px; margin-right: -8px; color: var(--temva-navy); }
.temva-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.temva-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.5rem !important; align-items: flex-start !important; }
.temva-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; width: 100%; }
.temva-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.temva-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: .9rem 0 !important; }
.temva-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.temva-nav .is-menu-open .wp-block-navigation-item__content { color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 600; }
.temva-nav .is-menu-open .wp-block-navigation__container { gap: 0; }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wp-block-button:not(.is-style-temva-ghost) .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 102, 255, .7); }
.wp-block-button.is-style-temva-ghost .wp-block-button__link {
	background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .95;
}
.wp-block-button.is-style-temva-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); }
.wp-block-button.is-style-temva-light .wp-block-button__link { background: #fff; color: var(--temva-navy); }
.wp-block-button.is-style-temva-light .wp-block-button__link:hover { background: #fff; box-shadow: 0 12px 26px -12px rgba(10, 27, 46, .55); }

/* ---------- Hero ---------- */
.temva-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(60rem 30rem at 85% 10%, rgba(0, 102, 255, .28), transparent 60%),
		radial-gradient(40rem 26rem at 70% 95%, rgba(0, 191, 166, .18), transparent 60%),
		linear-gradient(160deg, #0A1B2E 0%, #0d2440 100%);
	padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4rem, 8vw, 6.5rem);
}
.temva-hero::before {
	/* retícula sutil */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.temva-hero > * { position: relative; }
.temva-hero .temva-eyebrow { color: var(--temva-teal); }
.temva-hero__title { color: #fff; margin-top: 0; font-size: var(--wp--preset--font-size--huge); letter-spacing: -0.03em; }
.temva-hero__lead { font-size: 1.1875rem; color: rgba(255, 255, 255, .78); max-width: 34rem; }
.temva-hero__actions { margin-top: 2rem; gap: .75rem; }
.temva-hero__actions .is-style-temva-ghost .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .35); }
.temva-hero__trust {
	display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin-top: 2.25rem;
	font-size: .9375rem; color: rgba(255, 255, 255, .85);
}
.temva-hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.temva-hero__trust li::before {
	content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
	background: rgba(0, 191, 166, .18) url("../icons/check-teal.svg") center / 13px no-repeat;
}

.temva-hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-inline: auto; display: grid; place-items: center; }
.temva-hero__orb {
	position: absolute; inset: 14%; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(0, 102, 255, .45), rgba(0, 191, 166, .12) 55%, transparent 70%);
	filter: blur(6px);
}
.temva-hero__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.temva-hero__ring--1 { inset: 6%; }
.temva-hero__ring--2 { inset: 22%; border-style: dashed; border-color: rgba(0, 191, 166, .3); animation: temva-spin 60s linear infinite; }
.temva-hero__iso { position: relative; width: 58%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 102, 255, .45)); animation: temva-float 7s ease-in-out infinite; }

.temva-float {
	position: absolute; display: flex; align-items: center; gap: .7rem;
	padding: .8rem 1rem; border-radius: 14px; font-size: .8125rem; line-height: 1.3;
	color: #fff; background: rgba(17, 42, 69, .72); border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}
.temva-float strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: .875rem; }
.temva-float span { color: rgba(255, 255, 255, .75); }
.temva-float--temp { top: 8%; left: -2%; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 150px; animation: temva-float 8s ease-in-out infinite reverse; }
.temva-float__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.temva-float__value { font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 700; color: #fff !important; line-height: 1; }
.temva-float__value sup { font-size: .9rem; color: var(--temva-teal); margin-left: 2px; }
.temva-float__bar { display: block; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: .35rem; }
.temva-float__bar i { display: block; width: 62%; height: 100%; background: var(--temva-brand); border-radius: inherit; }
.temva-float--eco { bottom: 12%; right: -4%; animation: temva-float 9s ease-in-out infinite; }
.temva-float--ok { bottom: 2%; left: 8%; padding: .55rem .9rem; border-radius: 999px; background: rgba(0, 191, 166, .9); border-color: transparent; }
.temva-float--ok span { color: #fff; font-weight: 600; }

@keyframes temva-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes temva-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.temva-hero__iso, .temva-float, .temva-hero__ring--2 { animation: none; }
	html { scroll-behavior: auto; }
}
@media (max-width: 781px) {
	.temva-hero__visual { max-width: 340px; margin-top: 1rem; }
	.temva-float--eco { right: 0; }
	.temva-float--temp { left: 0; }
}

/* ---------- Marcas ---------- */
.temva-brands { border-bottom: 1px solid var(--temva-border); padding-block: 1.75rem; }
.temva-brands .alignwide { gap: 1rem 2.5rem; align-items: center; }
.temva-brands__label { margin: 0; font-size: .875rem; color: var(--temva-muted); }
.temva-brands__list { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.temva-brands__list li {
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.125rem;
	letter-spacing: .04em; color: #9aa7b8; transition: color .2s ease;
}
.temva-brands__list li:hover { color: var(--temva-navy); }

/* ---------- Secciones ---------- */
.temva-section { padding-block: var(--wp--preset--spacing--60); }
.temva-section--surface { background: var(--temva-surface); }
.temva-section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.temva-section__head h2 { margin-top: 0; }
.temva-section__head .temva-lead { margin-top: 1rem; }

.temva-grid { gap: 1.25rem; }
.temva-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 600px) { .temva-grid--2 { grid-template-columns: 1fr !important; } }

/* Tarjetas */
.temva-card,
.wp-block-group.is-style-temva-card {
	position: relative; gap: .6rem; padding: 1.75rem; border-radius: var(--temva-radius);
	background: #fff; border: 1px solid var(--temva-border);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.temva-card h3, .temva-card h4 { margin: .35rem 0 0; }
.temva-card p { margin: 0; color: var(--temva-muted); font-size: .9688rem; }
.temva-card:hover { transform: translateY(-4px); box-shadow: var(--temva-shadow); border-color: transparent; }

.temva-icon { margin: 0 !important; line-height: 0; }
.temva-icon img {
	width: 56px; height: 56px; padding: 14px; box-sizing: border-box; border-radius: 14px;
	background: linear-gradient(135deg, rgba(0, 102, 255, .1), rgba(0, 191, 166, .12));
}
.temva-icon--sm img { width: 46px; height: 46px; padding: 11px; border-radius: 12px; }

.temva-service { padding: 2rem 1.75rem; overflow: hidden; }
.temva-service::before {
	content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--temva-brand);
	transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.temva-service:hover::before { transform: scaleX(1); }
.temva-service h3 { font-size: 1.25rem; }
.temva-more { margin-top: auto !important; padding-top: .75rem; }
.temva-more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9375rem; }
.temva-more a::after { content: "→"; transition: transform .2s ease; }
.temva-more a:hover { text-decoration: none; }
.temva-more a:hover::after { transform: translateX(4px); }

/* ---------- Cifras ---------- */
.temva-stats {
	color: #fff; padding-block: clamp(2.75rem, 5vw, 4rem);
	background: radial-gradient(50rem 20rem at 10% 0%, rgba(0, 102, 255, .35), transparent 60%), var(--temva-navy);
}
.temva-stats__grid { gap: 2rem; }
.temva-stat { gap: .25rem; padding-left: 1.25rem; border-left: 2px solid rgba(255, 255, 255, .12); }
.temva-stat p { margin: 0; }
.temva-stat__value {
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.05;
	background: linear-gradient(100deg, #fff 30%, #7fe3d6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.temva-stat__label { color: rgba(255, 255, 255, .7); font-size: .9375rem; }

/* ---------- Por qué ---------- */
.temva-why { gap: clamp(2rem, 5vw, 4.5rem); }
.temva-why h2 { margin-top: 0; }
.temva-feature { padding: 1.5rem; }
.temva-feature h4 { font-size: 1.0625rem; }

.is-style-temva-checks { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .7rem; }
.is-style-temva-checks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.is-style-temva-checks li::before {
	content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; flex-shrink: 0;
	background: var(--temva-brand);
	-webkit-mask: url("../icons/check.svg") center / 14px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Pasos ---------- */
.temva-steps { gap: 1.25rem; counter-reset: step; }
.temva-step { position: relative; gap: .4rem; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--temva-radius); background: var(--temva-surface); }
.temva-step h4 { margin: .25rem 0 0; }
.temva-step p { margin: 0; color: var(--temva-muted); font-size: .9688rem; }
.temva-step__num {
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2.5rem; line-height: 1;
	background: var(--temva-brand); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

/* ---------- Sectores ---------- */
.temva-sector { gap: 1rem; padding: 1.4rem; }
.temva-sector > .wp-block-group { gap: .2rem; }
.temva-sector h4 { margin: 0; font-size: 1.0625rem; }

/* ---------- FAQ ---------- */
.temva-faq { gap: clamp(2rem, 5vw, 4.5rem); }
.temva-faq h2 { margin-top: 0; }
.temva-faq__item { border-bottom: 1px solid var(--temva-border); padding-block: 1.25rem; margin: 0 !important; }
.temva-faq__item:first-child { border-top: 1px solid var(--temva-border); }
.temva-faq__item summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.0625rem;
}
.temva-faq__item summary::-webkit-details-marker { display: none; }
.temva-faq__item summary::after {
	content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--temva-surface); color: var(--temva-primary); font-size: 1.25rem; line-height: 1; transition: transform .25s ease;
}
.temva-faq__item[open] summary::after { transform: rotate(45deg); }
.temva-faq__item p { color: var(--temva-muted); margin: .85rem 0 0; }

/* ---------- CTA ---------- */
.temva-cta-wrap { padding-block: 0 var(--wp--preset--spacing--60); }
.temva-cta {
	position: relative; overflow: hidden; gap: 2rem; color: #fff;
	padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; background: var(--temva-brand);
}
.temva-cta::after {
	content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; opacity: .14;
	background: url("../img/isotipo-blanco.svg") center / contain no-repeat; pointer-events: none;
}
.temva-cta > * { position: relative; z-index: 1; }
.temva-cta__text { gap: .5rem; max-width: 36rem; }
.temva-cta h2 { color: #fff; margin: 0; font-size: clamp(1.625rem, 3vw, 2.25rem); }
.temva-cta p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.0625rem; }
.temva-cta__actions { gap: .75rem; }
.temva-cta .is-style-temva-ghost .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ---------- Páginas internas ---------- */
.temva-page-hero {
	color: #fff; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
	background:
		radial-gradient(40rem 18rem at 90% 0%, rgba(0, 102, 255, .35), transparent 60%),
		radial-gradient(30rem 16rem at 10% 120%, rgba(0, 191, 166, .2), transparent 60%),
		var(--temva-navy);
}
.temva-page-hero h1, .temva-page-hero .wp-block-post-title, .temva-page-hero .wp-block-query-title { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.temva-page-hero__lead, .temva-page-hero .wp-block-post-excerpt { color: rgba(255, 255, 255, .78); font-size: 1.125rem; }
.temva-page-hero .wp-block-post-excerpt__excerpt { max-width: 42rem; }
.temva-page-hero .wp-block-post-excerpt__more-text { display: none; }
.temva-page-hero__eyebrow a, .temva-page-hero .wp-block-post-terms a {
	font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--temva-teal);
}
.temva-page-content { padding-block: var(--wp--preset--spacing--60); }
.temva-page-content > h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-top: 2.75rem; }
.temva-page-content > h2:first-child { margin-top: 0; }
.temva-page-content > h3 { margin-top: 2rem; }
.temva-page-content ul:not([class*="temva"]):not(.is-style-temva-checks) { padding-left: 1.2rem; }
.temva-page-content ul:not([class*="temva"]):not(.is-style-temva-checks) li { margin-bottom: .4rem; }
.temva-page-content ul:not([class*="temva"]):not(.is-style-temva-checks) li::marker { color: var(--temva-teal); }
.temva-page-content + .temva-cta-wrap { padding-top: 0; }

/* Blog */
.temva-posts { padding-block: var(--wp--preset--spacing--60); }
.temva-post-card { padding: 0 0 1.5rem; overflow: hidden; gap: .5rem; }
.temva-post-card > *:not(.wp-block-post-featured-image) { padding-inline: 1.5rem; }
.temva-post-card .wp-block-post-featured-image { margin: 0 0 .75rem; }
.temva-post-card .wp-block-post-title a { color: var(--temva-navy); }
.temva-post-card__cat a { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Pie ---------- */
.temva-footer {
	color: rgba(255, 255, 255, .72); font-size: .9375rem;
	background: radial-gradient(50rem 20rem at 100% 0%, rgba(0, 102, 255, .18), transparent 60%), var(--temva-navy);
	padding-block: clamp(3.5rem, 6vw, 5rem) 1.75rem;
}
.temva-footer a { color: rgba(255, 255, 255, .72); }
.temva-footer a:hover { color: #fff; text-decoration: none; }
.temva-footer__cols { gap: 2.5rem; }
.temva-logo--footer img { height: 46px; }
.temva-footer__about { max-width: 22rem; margin-top: 1.25rem; }
.temva-footer__title { color: #fff; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; margin: .5rem 0 1rem; }
.temva-footer__links, .temva-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.temva-footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.temva-footer__contact li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; background: center / contain no-repeat; }
.temva-footer__contact .is-phone::before { background-image: url("../icons/telefono-teal.svg"); }
.temva-footer__contact .is-mail::before { background-image: url("../icons/correo-teal.svg"); }
.temva-footer__contact .is-pin::before { background-image: url("../icons/ubicacion-teal.svg"); }
.temva-footer__contact .is-clock::before { background-image: url("../icons/horario-teal.svg"); }
.temva-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8438rem; gap: .5rem 2rem; }
.temva-footer__bottom p { margin: 0; }
.temva-footer__slogan { font-family: var(--wp--preset--font-family--heading); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem !important; color: var(--temva-teal); }

/* WhatsApp flotante */
.temva-whatsapp {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: #25D366; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
	transition: transform .2s ease;
}
.temva-whatsapp:hover { transform: scale(1.06); }
.temva-whatsapp img { width: 30px; height: 30px; }

/* ---------- Ajustes de grilla ---------- */
/* auto-fit en vez de auto-fill: las columnas se reparten todo el ancho disponible */
.temva-grid.is-layout-grid,
.temva-stats__grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--temva-col, 15rem), 100%), 1fr)); }
.temva-steps { --temva-col: 14rem; }
.temva-sectors { --temva-col: 18rem; }
.temva-stats__grid { --temva-col: 12rem; }
.temva-icon { flex-shrink: 0; }
.temva-icon img { max-width: none; }
@media (max-width: 599px) {
	.temva-header .temva-nav { justify-content: flex-end; }
}
.temva-page-content { font-size: 1.0625rem; }

/* Temperatura en vivo */
.temva-float__label { display: inline-flex; align-items: center; gap: .45rem; }
.temva-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--temva-teal); }
.temva-live::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--temva-teal);
	opacity: 0; animation: temva-pulse 2s ease-out infinite;
}
@keyframes temva-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.temva-float__bar i { transition: width .8s ease; }
.temva-float__meta { font-size: .6875rem; color: rgba(255, 255, 255, .55) !important; margin-top: .2rem; }
@media (prefers-reduced-motion: reduce) { .temva-live::after { animation: none; } }

/* ---------- Componentes de páginas internas ---------- */
.temva-page-content > .temva-section:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--60)); }
.temva-page-content > .temva-lead:first-child { font-size: 1.25rem; color: var(--temva-navy); }
.temva-page-content > .temva-section { margin-top: var(--wp--preset--spacing--50); }
.temva-page-content > .temva-section + .temva-section { margin-top: 0; }
.temva-page-content > .temva-section:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--60)); }
.temva-page-content .temva-steps { margin-top: 1.5rem; }
.temva-page-content > .temva-faq-list, .temva-page-content > .is-style-temva-checks { margin-top: 1.25rem; }
.temva-faq-list > .temva-faq__item:first-child { border-top: 1px solid var(--temva-border); }
.temva-section--surface .temva-card { background: #fff; }
.temva-section--surface .temva-step { background: #fff; }

.temva-note { font-size: .875rem; color: var(--temva-muted); }
.temva-mv { gap: clamp(1.5rem, 4vw, 3rem); }
.temva-mv > .wp-block-column { padding: 2rem; border-radius: var(--temva-radius); background: #fff; border: 1px solid var(--temva-border); }
.temva-mv h3 { margin-top: 0; }
.temva-project { padding: 1.75rem; gap: .5rem; }
.temva-project .temva-eyebrow { margin-bottom: 0; }
.temva-project h3 { font-size: 1.25rem; }
.temva-card a { font-weight: 600; }

.temva-table { margin: 0; overflow-x: auto; border-radius: var(--temva-radius); border: 1px solid var(--temva-border); background: #fff; }
.temva-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9688rem; }
.temva-table th, .temva-table td { border: 0; border-bottom: 1px solid var(--temva-border); padding: .95rem 1.25rem; text-align: left; }
.temva-table thead th {
	font-family: var(--wp--preset--font-family--heading); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
	color: #fff; background: var(--temva-navy); border-bottom: 0;
}
.temva-table tbody tr:last-child td { border-bottom: 0; }
.temva-table tbody td:nth-child(2) { font-weight: 600; color: var(--temva-primary); white-space: nowrap; }
.temva-table tbody tr:hover td { background: var(--temva-surface); }
.temva-section .alignwide.temva-table, .temva-section > .temva-table { max-width: var(--wp--style--global--wide-size); }

/* Entradas del blog */
.single .temva-page-content > p:not(.temva-lead) { margin-bottom: 1.1rem; }
.temva-page-content > .temva-steps:not(.alignwide) { --temva-col: 18rem; }
.temva-page-content > .temva-section { margin-top: 0; }
.temva-page-content > .temva-lead:first-child + .temva-section { margin-top: 1rem; }
.temva-section .wp-block-group.alignwide > .is-style-temva-checks { margin-left: 0 !important; max-width: none; }

/* ---------- Productos ---------- */
.temva-brands__list a { color: inherit; text-decoration: none; }
.temva-product-card { padding: 0 0 1.5rem; overflow: hidden; gap: .5rem; }
.temva-product-card > *:not(.temva-product-card__img) { padding-inline: 1.5rem; }
.temva-product-card__img { margin: 0 0 .75rem !important; }
.temva-product-card__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.temva-product-card .temva-eyebrow { margin: 0; font-size: .75rem; }
.temva-product-card h3 { font-size: 1.3rem; }
.temva-product-top { gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 1rem; }
.temva-product-img { margin: 0; }
.temva-product-img img { display: block; width: 100%; border-radius: var(--temva-radius); }
.temva-product-top .temva-lead { margin-top: 0; }
.temva-page-content > .temva-product-top { margin-top: 0; }
.temva-table--spec table { min-width: 640px; }
.temva-table--spec thead th { line-height: 1.35; }
.temva-table--spec tbody td:first-child { font-weight: 600; color: var(--temva-navy); }
.temva-table--spec tbody td:nth-child(2) { font-weight: 400; color: inherit; white-space: normal; }
.temva-page-content > .temva-table { margin-block: 1.5rem; }
.temva-section--surface .temva-brands__list li { color: var(--temva-navy); }
/* Checks: el texto (con <strong>) fluye en una sola columna junto al ícono */
.is-style-temva-checks li { display: block; position: relative; padding-left: 2.1rem; }
.is-style-temva-checks li::before { position: absolute; left: 0; top: .1rem; margin-top: 0; }
/* Fichas de producto: columna más ancha que la de lectura */
.temva-page-content:has(> .temva-product-top) > :not(.alignfull) { max-width: 1000px; }
.temva-main:has(.temva-product-top) .temva-page-hero > * { max-width: 1000px; }
.temva-lines { --temva-col: 11rem; }
.temva-products { --temva-col: 18rem; }

/* ---------- Logos de marca ---------- */
.temva-logos { gap: 1.25rem 2.75rem; }
.temva-brand-logo { margin: 0 !important; }
.temva-brand-logo img { display: block; height: 30px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.temva-brand-logo a:hover img, .temva-brand-logo a:focus-visible img { filter: none; opacity: 1; transform: translateY(-2px); }
.temva-logos--lg { justify-content: flex-start !important; gap: 1.5rem; margin-bottom: 2rem; }
.temva-logos--lg .temva-brand-logo a { display: grid; place-items: center; width: 200px; height: 104px; border-radius: var(--temva-radius); background: #fff; border: 1px solid var(--temva-border); transition: box-shadow .25s ease, border-color .25s ease; }
.temva-logos--lg .temva-brand-logo a:hover { box-shadow: var(--temva-shadow); border-color: transparent; }
.temva-logos--lg .temva-brand-logo img { height: 40px; filter: none; opacity: 1; }
.temva-card-logo { margin: 0 !important; padding-top: .25rem; }
.temva-card-logo img { height: 24px; width: auto; }
.temva-product-card__img a { display: block; }
.temva-brand-mark { margin: 0 0 .75rem !important; }
.temva-brand-mark img { height: 38px; width: auto; }

/* ---------- Galería de producto ---------- */
.temva-gallery { gap: .75rem; }
.temva-thumbs { gap: .6rem; }
.temva-thumb { margin: 0 !important; width: calc((100% - 1.8rem) / 4); cursor: pointer; }
.temva-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 2px solid transparent; opacity: .75; transition: opacity .2s ease, border-color .2s ease; }
.temva-thumb:hover img, .temva-thumb.is-active img { opacity: 1; border-color: var(--temva-primary); }
.temva-thumb:focus-visible { outline: 2px solid var(--temva-primary); outline-offset: 2px; border-radius: 12px; }
.temva-product-img img { transition: opacity .2s ease; }
.temva-logos--lg .temva-brand-logo img { max-width: 150px; height: auto; max-height: 40px; }
.temva-section > .temva-logos--lg, .temva-section > .temva-logos--lg + .wp-block-buttons { max-width: var(--wp--style--global--wide-size); }
.temva-section > .wp-block-buttons, .temva-section > p { max-width: var(--wp--style--global--wide-size); }
/* Texto suelto seguido de una sección gris: separarlos (Nosotros, Proyectos) */
.temva-page-content > :not(.temva-section) + .temva-section--surface { margin-top: var(--wp--preset--spacing--60) !important; }

/* ───────── Tienda (WooCommerce) ───────── */
.temva-shop__bar { align-items: center; margin-block: var(--wp--preset--spacing--40); color: var(--temva-muted); font-size: .9375rem; }
.temva-shop__bar .woocommerce-result-count, .temva-shop__bar .woocommerce-ordering { margin: 0; }
.temva-shop__bar select { border: 1px solid var(--wp--preset--color--border); border-radius: 10px; padding: .55rem .8rem; background: #fff; }
.temva-shop__crumbs { margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30); padding-top: .5rem; font-size: .875rem; color: var(--temva-muted); }
.temva-products { margin-block-end: var(--wp--preset--spacing--60); }
.temva-product-card { gap: .5rem; height: 100%; }
.temva-product-card .wc-block-components-product-image { margin: 0 0 .5rem; border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--surface); }
.temva-product-card .wc-block-components-product-image img { object-fit: contain; width: 100%; }
.temva-product-card .wp-block-post-title { margin: 0; line-height: 1.3; }
.temva-product-card .wp-block-post-title a { color: var(--wp--preset--color--navy); }
.temva-product-card .wc-block-components-product-price { margin: 0; }
.temva-product-card .wp-block-woocommerce-product-button { margin-top: auto; }
.temva-product-card .wp-block-button__link { width: 100%; text-align: center; }
.wc-block-components-product-price ins { text-decoration: none; }
.wc-block-components-product-price del { color: var(--temva-muted); font-weight: 400; }
.wc-block-components-product-sale-badge { background: var(--wp--preset--color--teal); color: #fff; border: 0; border-radius: 999px; font-weight: 600; }

/* Ficha de producto */
.temva-product { margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.temva-product .wp-block-post-title { margin-block-end: .25rem; }
.temva-product .woocommerce-product-gallery { border: 1px solid var(--wp--preset--color--border); border-radius: 16px; overflow: hidden; background: #fff; }
.temva-igv-note { margin-block-start: -.75rem; }
.temva-product .single_add_to_cart_button, .temva-product .wp-block-button__link { border-radius: 10px; }
.temva-product .quantity input { border: 1px solid var(--wp--preset--color--border); border-radius: 10px; padding: .7rem .5rem; width: 4.5rem; }
.wp-block-woocommerce-product-meta { border-top: 1px solid var(--wp--preset--color--border); padding-top: var(--wp--preset--spacing--30); color: var(--temva-muted); font-size: .9rem; }
.wp-block-woocommerce-related-products { margin-block: var(--wp--preset--spacing--60); }

/* Carrito y checkout */
.temva-shop__page { margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.temva-shop__page .wc-block-components-button:not(.is-link) { background: var(--wp--preset--color--primary); color: #fff; border-radius: 10px; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }
.temva-shop__page .wc-block-components-button:not(.is-link):hover { background: color-mix(in srgb, var(--wp--preset--color--primary) 82%, #000); }
.temva-shop__page .wc-block-components-text-input input, .temva-shop__page .wc-blocks-components-select select { border-radius: 10px; border-color: var(--wp--preset--color--border); }
.temva-shop__page .wc-block-components-checkout-step__title, .temva-shop__page .wc-block-cart__totals-title { font-family: var(--wp--preset--font-family--heading); }

/* Mini-carrito de la cabecera */
.temva-minicart .wc-block-mini-cart__button { padding: .5rem; color: var(--wp--preset--color--navy); }
.temva-minicart .wc-block-mini-cart__badge { background: var(--wp--preset--color--primary); color: #fff; }
@media (max-width: 781px) { .temva-product-card .wp-block-button__link { font-size: .875rem; padding-inline: .75rem; } }

/* ───────── Portada de la tienda ───────── */
.temva-shop-hero { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30); background: var(--temva-surface); }
.temva-shop-hero__grid { gap: 1rem; margin: 0; align-items: stretch; }
.temva-shop-hero__main, .temva-mini { border-radius: 16px; overflow: hidden; position: relative; }
.temva-shop-hero__main {
	height: 100%; min-height: 21rem; display: flex; flex-direction: column; justify-content: center; color: #fff;
	padding: clamp(1.75rem, 4vw, 3rem);
	background:
		radial-gradient(34rem 18rem at 88% 8%, rgba(0, 102, 255, .38), transparent 60%),
		radial-gradient(26rem 16rem at 8% 110%, rgba(0, 191, 166, .24), transparent 60%),
		linear-gradient(160deg, #0A1B2E 0%, #0d2440 100%);
}
.temva-shop-hero__main::after {
	/* isotipo de marca, discreto y a la derecha (no pisa el texto) */
	content: ""; position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: min(26%, 12rem); aspect-ratio: 484 / 330;
	background: url("../img/isotipo-blanco.svg") no-repeat center / contain; opacity: .2; pointer-events: none;
}
.temva-shop-hero__main > * { position: relative; z-index: 1; margin-inline: 0 !important; max-width: 34rem; }
.temva-shop-hero__main .temva-eyebrow { color: var(--temva-teal); margin: 0; }
.temva-shop-hero__title { color: #fff; margin: .5rem 0 .75rem; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.temva-shop-hero__lead { color: rgba(255, 255, 255, .8); font-size: 1.0625rem; margin: 0; }
.temva-shop-hero__main .temva-hero__actions { margin-top: 1.5rem; }
.temva-shop-hero__main .is-style-temva-ghost .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .4); }
.temva-shop-hero__side { height: 100%; gap: 1rem; align-items: stretch !important; }
.temva-mini > * { margin-inline: 0 !important; max-width: none; text-align: left; }
.temva-mini { flex: 1 1 0; width: 100%; text-align: left; padding: 1.35rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; transition: transform .25s ease, box-shadow .25s ease; }
.temva-mini:hover { transform: translateY(-3px); box-shadow: var(--temva-shadow); }
.temva-mini h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.temva-mini__tag { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.temva-mini__link { margin: 0; font-weight: 600; font-size: .9rem; }
.temva-mini__link a { text-decoration: none; }
.temva-mini__link a::before { content: ""; position: absolute; inset: 0; }
.temva-mini__link a::after { content: " →"; }
.temva-mini--teal { color: #fff; background: linear-gradient(135deg, var(--wp--preset--color--teal), #0a8f7e); }
.temva-mini--teal h3, .temva-mini--teal a { color: #fff; }
.temva-mini--light { background: #fff; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--navy); }
.temva-mini--light .temva-mini__tag { color: var(--wp--preset--color--primary); }
.temva-mini--light h3 { color: var(--wp--preset--color--navy); }
.temva-mini--light a { color: var(--wp--preset--color--primary); }

/* Franja de beneficios */
.temva-perks { margin-top: 1rem !important; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)) !important; }
.temva-perk { gap: .75rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--wp--preset--color--border); border-left: 4px solid var(--wp--preset--color--teal); border-radius: 12px; }
.temva-perk .temva-icon { flex: none; }
.temva-perk__title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: .9rem; line-height: 1.2; color: var(--wp--preset--color--navy); }
.temva-perk__sub { margin: 0; font-size: .78rem; color: var(--temva-muted); }

/* Catálogo */
.temva-catalog { margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.temva-catalog > * { max-width: none !important; margin-inline: 0 !important; }
.temva-catalog__head { margin-bottom: var(--wp--preset--spacing--30); gap: .75rem 1.5rem; }
.temva-catalog__title { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.temva-catalog__head .temva-shop__bar { margin: 0; gap: 1rem; }
.temva-catalog .wp-block-term-description { margin-bottom: 1rem; color: var(--temva-muted); }
.temva-cats ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 var(--wp--preset--spacing--30); }
.temva-cats li { margin: 0; }
.temva-cats li:has(> a[href*="sin-categorizar"]), .temva-cats li:has(> a[href*="uncategorized"]) { display: none; }
.temva-cats a { display: inline-block; padding: .4rem .95rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; background: #fff; color: var(--wp--preset--color--navy); font-size: .875rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.temva-cats a:hover, .temva-cats .current-cat > a { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); background: rgba(0, 102, 255, .06); }
.temva-product-card { padding: 1rem; gap: .4rem; }
.temva-product-card__cat { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.temva-product-card__cat a { color: var(--wp--preset--color--teal); text-decoration: none; }
.temva-product-card__cat:has(a[href*="sin-categorizar"]), .temva-product-card__cat:has(a[href*="uncategorized"]) { display: none; }
.temva-product-card .wp-block-post-title { min-height: 2.6em; }
.temva-product-card__igv { margin: -.25rem 0 .5rem !important; font-size: .75rem; color: var(--temva-muted); }
.temva-product-card .wc-block-components-product-image img { aspect-ratio: 4 / 3; }

/* Carrito vacío: tarjetas "Nuevo en la tienda" */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products { gap: 1.25rem; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { border: 1px solid var(--wp--preset--color--border); border-radius: var(--temva-radius); padding: 1rem; background: #fff; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { color: var(--wp--preset--color--navy); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { color: var(--wp--preset--color--navy); font-weight: 700; font-size: 1.125rem; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img { border-radius: 10px; background: var(--wp--preset--color--surface); }
.wp-block-woocommerce-empty-cart-block .wp-block-button__link { border-radius: 10px; width: 100%; }

@media (max-width: 781px) {
	.temva-shop-hero__main { min-height: 0; }
	.temva-shop-hero__main::after { top: 1.25rem; transform: none; width: 5.5rem; }
	.temva-shop-hero__side { flex-direction: row !important; }
	.temva-product-card .wp-block-post-title { min-height: 0; }
}
@media (max-width: 600px) { .temva-shop-hero__side { flex-direction: column !important; } }

/* Tienda: aire sobre la banda "¿Listo para tener el ambiente bajo control?" */
.temva-shop + .temva-cta-wrap { padding-top: var(--wp--preset--spacing--60); }
@media (max-width: 781px) { .temva-shop + .temva-cta-wrap { padding-top: var(--wp--preset--spacing--50); } }
