/*
Theme Name: ECOENDI (Twenty Twenty-Five)
Theme URI: https://ecoendi.com.ar
Author: ECOENDI S.R.L.
Description: Tema hijo de Twenty Twenty-Five para ecoendi.com.ar. Diseño sobrio industrial (navy y azul), encabezado y pie propios, portada con hero, bandas de clientes y certificaciones, y estilo de botón WhatsApp.
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecoendi-twentytwentyfive
*/

:root { --ecoendi-radius: 10px; }

/* ---------- etiquetas y textos de apoyo ---------- */
.eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--wp--preset--color--brand-blue); margin: 0 0 .75rem;
}
.ecoendi-band--dark .eyebrow, .ecoendi-hero .eyebrow, .ecoendi-footer .eyebrow { color: #7fb2ff; }

/* ---------- encabezado ---------- */
.ecoendi-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .ecoendi-header { top: var(--wp-admin--admin-bar--height, 0px); }
.ecoendi-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 1.25rem; max-width: 1280px; margin: 0 auto; }
.ecoendi-header__inner .wp-block-image { margin: 0; line-height: 0; }
.ecoendi-header .wp-block-navigation { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.ecoendi-header .wp-block-navigation a { color: var(--wp--preset--color--text-secondary); text-decoration: none; }
.ecoendi-header .wp-block-navigation a:hover { color: var(--wp--preset--color--brand-blue); }
.ecoendi-header .wp-block-button__link { padding: .55rem 1rem; font-size: .75rem; }

/* ---------- hero ---------- */
.ecoendi-hero { padding: 0 !important; border-bottom: 4px solid var(--wp--preset--color--brand-blue); }
.ecoendi-hero .wp-block-cover__background.has-background-dim { background-color: transparent !important; background-image: linear-gradient(95deg, rgba(10,22,40,.94) 0%, rgba(10,22,40,.82) 48%, rgba(10,22,40,.40) 100%); opacity: 1 !important; }
.ecoendi-hero .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 4rem 1.25rem; }
.ecoendi-hero__title, .ecoendi-hero__title a { color: #fff !important; font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1; margin: 0 0 1.25rem; max-width: 20ch; }
.ecoendi-hero__lead { color: #e6edf6; font-size: 1.25rem; max-width: 46rem; margin-bottom: 1.75rem; }
.ecoendi-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.ecoendi-chip { margin: 0; padding: .4rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }

/* ---------- bandas ---------- */
.ecoendi-band--dark { background: var(--wp--preset--color--brand-dark); color: #fff; }
.ecoendi-band--dark h1, .ecoendi-band--dark h2, .ecoendi-band--dark h1 a { color: #fff; }
.ecoendi-page-hero { padding: 3.5rem 1.25rem 3rem; }
.ecoendi-page-hero__inner { max-width: 1200px; margin: 0 auto; }
.ecoendi-page-hero .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; margin: 0; max-width: 24ch; }
.ecoendi-page-hero .wp-block-post-date, .ecoendi-page-hero .wp-block-post-terms { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb4d0; margin-top: 1rem; }
.ecoendi-section { padding: 3.5rem 1.25rem; }
.ecoendi-section--alt { background: var(--wp--preset--color--bg-secondary); }
.ecoendi-cta { padding: 3.5rem 1.25rem; text-align: center; }
.ecoendi-cta { background: linear-gradient(120deg, #003d99 0%, #0a1628 72%); }
.ecoendi-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
.ecoendi-cta p { color: #c3d0e2; max-width: 40rem; margin: 0 auto 1.5rem; }
.ecoendi-cta .wp-block-buttons { justify-content: center; }

/* ---------- contenido de páginas y artículos ---------- */
.wp-block-post-content > * + h2 { margin-top: 2.5rem; }
.wp-block-post-content ul.wp-block-list { padding-left: 1.25rem; }
.wp-block-post-content ul.wp-block-list li { margin-bottom: .45rem; }
.wp-block-post-content img { border-radius: var(--ecoendi-radius); height: auto; }
.wp-block-post-content .wp-block-image { margin: 1.5rem 0; }
.wp-block-post-content h3 { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1.3rem; margin-top: 1.75rem; }
.wp-block-post-content .wp-block-table { overflow-x: auto; }
.wp-block-post-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid var(--wp--preset--color--border); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.wp-block-post-content th { background: var(--wp--preset--color--bg-secondary); font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- botones ---------- */
.wp-block-button.is-style-whatsapp .wp-block-button__link { background: var(--wp--preset--color--wa); color: #fff; }
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background: var(--wp--preset--color--wa-hover); }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* ---------- tarjetas (servicios, sectores, guías) ---------- */
ul.wp-block-list.ecoendi-cards, .ecoendi-cards { list-style: none; padding: 0 !important; margin: 1.25rem auto 2.25rem; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.ecoendi-cards li { position: relative; margin: 0 !important; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-left: 3px solid var(--wp--preset--color--brand-blue); border-radius: 8px; padding: 1.15rem 1.3rem 1.2rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.ecoendi-cards li:hover { box-shadow: 0 10px 28px rgba(10,22,40,.10); transform: translateY(-2px); border-left-color: var(--wp--preset--color--accent-hover); }
.ecoendi-cards a.ecoendi-card__title { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; line-height: 1.08; letter-spacing: .02em; text-transform: uppercase; color: var(--wp--preset--color--text-primary); text-decoration: none; margin-bottom: .4rem; }
.ecoendi-cards a.ecoendi-card__title::after { content: ""; position: absolute; inset: 0; }
.ecoendi-cards a.ecoendi-card__title:hover { color: var(--wp--preset--color--brand-blue); }
.ecoendi-card__desc { display: block; font-size: 1rem; line-height: 1.45; color: var(--wp--preset--color--text-secondary); }
.ecoendi-section > h2:first-of-type, .ecoendi-section > .eyebrow + h2 { margin-top: 0; }
.ecoendi-section > h3 { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--text-muted); margin: 2rem 0 0; padding-bottom: .5rem; border-bottom: 1px solid var(--wp--preset--color--border); max-width: 1200px; margin-left: auto; margin-right: auto; }
.ecoendi-section > p { max-width: 1200px; }
.ecoendi-section .wp-block-buttons { margin-top: .5rem; }
.ecoendi-cards--posts a.ecoendi-card__title { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; text-transform: none; }
ul.wp-block-list.ecoendi-tags, .ecoendi-tags { list-style: none; padding: 0 !important; margin-top: 1.25rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.ecoendi-tags li { margin: 0 !important; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 999px; padding: .4rem 1rem; font-family: var(--wp--preset--font-family--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--text-secondary); }

/* ---------- accesibilidad ---------- */
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--cyan); outline-offset: 2px; }

/* ---------- logos ---------- */
.ecoendi-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.25rem; margin-top: 1.5rem; flex-wrap: nowrap; }
.ecoendi-logos .wp-block-image { margin: 0; }
.ecoendi-logos img { height: 40px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; border-radius: 0; }
.ecoendi-logos img:hover { filter: none; opacity: 1; }
@media (max-width: 900px) { .ecoendi-logos { flex-wrap: wrap; } }
.ecoendi-logos--certs img { height: 64px; max-width: 120px; }

/* ---------- blog ---------- */
.ecoendi-posts .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 1.5rem; transition: .2s; }
.ecoendi-posts .wp-block-post:hover { border-color: var(--wp--preset--color--brand-blue); transform: translateY(-3px); }
.ecoendi-posts .wp-block-post-title { font-size: 1.7rem; margin: 0 0 .5rem; }
.ecoendi-posts .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--text-primary); }
.ecoendi-posts .wp-block-post-date { font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--text-muted); }

/* ---------- pie ---------- */
.ecoendi-footer { background: var(--wp--preset--color--footer-bg); color: var(--wp--preset--color--footer-text); padding: 3.5rem 1.25rem 1.5rem; }
.ecoendi-footer__inner { max-width: 1200px; margin: 0 auto; }
.ecoendi-footer a { color: var(--wp--preset--color--footer-text); text-decoration: none; }
.ecoendi-footer a:hover { color: #7fb2ff; text-decoration: underline; }
.ecoendi-footer h2, .ecoendi-footer h3 { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--wp--preset--color--footer-text-muted); margin: 0 0 1rem; }
.ecoendi-footer ul { list-style: none; padding: 0; margin: 0; }
.ecoendi-footer li { margin-bottom: .5rem; font-size: 1rem; }
.ecoendi-footer p { color: var(--wp--preset--color--footer-text-muted); font-size: 1rem; }
.ecoendi-footer .wp-block-social-links { margin-top: 1rem; }
.ecoendi-footer__bottom { border-top: 1px solid rgba(0,82,204,.3); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; color: var(--wp--preset--color--footer-text-dim); }
.ecoendi-footer__bottom p { margin: 0; font-size: .85rem; color: inherit; }

@media (max-width: 781px) {
  .ecoendi-hero .wp-block-cover__inner-container { padding: 3rem 1rem; }
  .ecoendi-header__inner .wp-block-buttons { display: none; }
  .ecoendi-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .ecoendi-hero .wp-block-button__link { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
   CAPTACIÓN DE CONSULTAS
   ===================================================================== */

/* ---------- formulario ---------- */
.ecoendi-form fieldset { margin: 0 0 1.5rem; padding: 1.25rem 1.25rem 1.1rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 10px; }
.ecoendi-form legend { padding: 0 .5rem; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--brand-blue); }
.ecoendi-form label { display: block; margin-bottom: .9rem; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--text-secondary); }
.ecoendi-form input[type="text"], .ecoendi-form input[type="email"], .ecoendi-form input[type="tel"], .ecoendi-form select, .ecoendi-form textarea {
	display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; box-sizing: border-box;
	font: 400 1rem/1.4 var(--wp--preset--font-family--body); letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--text-primary);
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 6px;
}
.ecoendi-form textarea { resize: vertical; min-height: 7rem; }
.ecoendi-form input:focus, .ecoendi-form select:focus, .ecoendi-form textarea:focus { outline: 3px solid rgba(0,82,204,.25); border-color: var(--wp--preset--color--brand-blue); }
.ecoendi-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ecoendi-form__radios { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; margin-top: .25rem; }
.ecoendi-form__radios > span { flex-basis: 100%; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--text-secondary); }
.ecoendi-form__radios label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.ecoendi-form__radios input { margin: 0; }
.ecoendi-form__note { font-size: .92rem; color: var(--wp--preset--color--text-muted); margin: 0 0 1rem; }
.ecoendi-form__error { margin: 0 0 1rem; padding: .8rem 1rem; border-left: 4px solid var(--wp--preset--color--warning); background: #fff7ea; color: #7a4300; border-radius: 4px; }
.ecoendi-form button.wp-block-button__link { border: 0; cursor: pointer; }
.ecoendi-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
@media (max-width: 600px) { .ecoendi-form__row { grid-template-columns: 1fr; } }

/* ---------- página de cotización: formulario + datos útiles ---------- */
.ecoendi-rfq { gap: 2rem; }
.ecoendi-rfq h3 { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--text-muted); margin: 0 0 .75rem; }
.ecoendi-rfq .wp-block-column:last-child { padding: 1.4rem 1.4rem .6rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 3px solid var(--wp--preset--color--brand-blue); border-radius: 10px; align-self: flex-start; }
.ecoendi-rfq .wp-block-column:last-child ul, .ecoendi-rfq .wp-block-column:last-child ol { padding-left: 1.2rem; margin: 0 0 1.3rem; }
.ecoendi-rfq .wp-block-column:last-child li { margin-bottom: .4rem; font-size: 1rem; }
.ecoendi-rfq .wp-block-column:last-child p { font-size: 1rem; }

/* ---------- barra de contacto fija (solo móvil) ---------- */
.ecoendi-sticky { display: none; }
@media (max-width: 781px) {
	.ecoendi-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 1px; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--wp--preset--color--brand-dark); box-shadow: 0 -6px 24px rgba(10,22,40,.25); transition: transform .3s ease; }
	html:not(.ecoendi-scrolled) .ecoendi-sticky { transform: translateY(110%); }
	.ecoendi-sticky a { flex: 1; padding: .95rem .5rem; text-align: center; text-decoration: none; color: #fff; font: 500 .78rem/1 var(--wp--preset--font-family--mono); letter-spacing: .12em; text-transform: uppercase; }
	.ecoendi-sticky__wa { background: var(--wp--preset--color--wa); }
	.ecoendi-sticky__tel { background: var(--wp--preset--color--brand-dark); }
	.ecoendi-sticky__rfq { background: var(--wp--preset--color--brand-blue); }
	body { padding-bottom: 3.4rem; }
}

/* =====================================================================
   EFECTOS (wow)
   ===================================================================== */

/* ---------- barra de progreso y cabecera compacta ---------- */
.ecoendi-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--wp--preset--color--brand-blue), var(--wp--preset--color--cyan)); }
.admin-bar .ecoendi-progress { top: var(--wp-admin--admin-bar--height, 0px); }
.ecoendi-header { transition: box-shadow .3s ease; }
.ecoendi-header__inner { transition: padding .3s ease; }
.ecoendi-header__inner .wp-block-image img { transition: width .3s ease; }
.ecoendi-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 22, 40, .12); }
.ecoendi-header.is-scrolled .ecoendi-header__inner { padding-top: .3rem; padding-bottom: .3rem; }
.ecoendi-header.is-scrolled .wp-block-image img { width: 135px !important; }

/* ---------- hero: parallax, video, escáner, engranaje ---------- */
.ecoendi-hero { isolation: isolate; }
.ecoendi-hero .wp-block-cover__image-background,
.ecoendi-hero__video { transform: translate3d(0, var(--py, 0px), 0) scale(1.15); will-change: transform; }
.ecoendi-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.ecoendi-hero__video.is-playing { opacity: 1; }
.ecoendi-hero .wp-block-cover__background { z-index: 1; }
.ecoendi-hero .wp-block-cover__inner-container { z-index: 3; }

.ecoendi-hero::before { /* línea de escaneo */
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,180,216,0) 0%, rgba(0,180,216,.10) 72%, rgba(0,180,216,.34) 99%, rgba(0,180,216,0) 100%) no-repeat;
	background-size: 100% 170px; background-position: 0 -170px;
	animation: ecoendiScan 7.5s linear infinite;
}
.ecoendi-hero::after { /* engranaje que gira */
	content: ""; position: absolute; right: -7%; bottom: -22%; width: min(48vw, 680px); aspect-ratio: 1; z-index: 2; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-110%20-110%20220%20220'%20fill='none'%20stroke='white'%20stroke-width='2.4'%3E%3Cpath%20d='M83.24,-11.28%20L99.71,-7.62%20L99.71,7.62%20L83.24,11.28%20L79.89,25.96%20L93.14,36.39%20L86.53,50.13%20L70.10,46.28%20L60.71,58.05%20L68.13,73.20%20L56.21,82.71%20L43.08,72.11%20L29.52,78.64%20L29.62,95.51%20L14.76,98.91%20L7.53,83.66%20L-7.53,83.66%20L-14.76,98.91%20L-29.62,95.51%20L-29.52,78.64%20L-43.08,72.11%20L-56.21,82.71%20L-68.13,73.20%20L-60.71,58.05%20L-70.10,46.28%20L-86.53,50.13%20L-93.14,36.39%20L-79.89,25.96%20L-83.24,11.28%20L-99.71,7.62%20L-99.71,-7.62%20L-83.24,-11.28%20L-79.89,-25.96%20L-93.14,-36.39%20L-86.53,-50.13%20L-70.10,-46.28%20L-60.71,-58.05%20L-68.13,-73.20%20L-56.21,-82.71%20L-43.08,-72.11%20L-29.52,-78.64%20L-29.62,-95.51%20L-14.76,-98.91%20L-7.53,-83.66%20L7.53,-83.66%20L14.76,-98.91%20L29.62,-95.51%20L29.52,-78.64%20L43.08,-72.11%20L56.21,-82.71%20L68.13,-73.20%20L60.71,-58.05%20L70.10,-46.28%20L86.53,-50.13%20L93.14,-36.39%20L79.89,-25.96%20Z'/%3E%3Ccircle%20r='62'/%3E%3Ccircle%20r='26'/%3E%3Cline%20x1='26.0'%20y1='0.0'%20x2='62.0'%20y2='0.0'/%3E%3Cline%20x1='13.0'%20y1='22.5'%20x2='31.0'%20y2='53.7'/%3E%3Cline%20x1='-13.0'%20y1='22.5'%20x2='-31.0'%20y2='53.7'/%3E%3Cline%20x1='-26.0'%20y1='0.0'%20x2='-62.0'%20y2='0.0'/%3E%3Cline%20x1='-13.0'%20y1='-22.5'%20x2='-31.0'%20y2='-53.7'/%3E%3Cline%20x1='13.0'%20y1='-22.5'%20x2='31.0'%20y2='-53.7'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .17;
	animation: ecoendiGear 90s linear infinite;
}
.ecoendi-hero .eyebrow::before { /* punto de estado parpadeante */
	content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .75rem; border-radius: 50%; vertical-align: 1px;
	background: var(--wp--preset--color--cyan); animation: ecoendiPing 2.2s ease-out infinite;
}
@keyframes ecoendiScan { to { background-position: 0 calc(100% + 170px); } }
@keyframes ecoendiGear { to { transform: rotate(360deg); } }
@keyframes ecoendiPing { 0% { box-shadow: 0 0 0 0 rgba(0,180,216,.7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(0,180,216,0); } }

/* ---------- aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .ecoendi-reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }
	.js .ecoendi-reveal { transition: opacity .75s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms), transform .75s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms); }
}

/* ---------- cifras ---------- */
.ecoendi-stats { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--border); padding: 0 1.25rem; }
.ecoendi-stats__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.ecoendi-stats__item { padding: 1.7rem 1rem; text-align: center; border-left: 1px solid var(--wp--preset--color--border); }
.ecoendi-stats__item:first-child { border-left: 0; }
.ecoendi-stats__num { display: block; font-family: var(--wp--preset--font-family--display); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--wp--preset--color--brand-blue); font-variant-numeric: tabular-nums; }
.ecoendi-stats__label { display: block; margin-top: .45rem; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--text-muted); }
@media (max-width: 781px) {
	.ecoendi-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.ecoendi-stats__item:nth-child(3) { border-left: 0; }
	.ecoendi-stats__item:nth-child(n+3) { border-top: 1px solid var(--wp--preset--color--border); }
}

/* ---------- tarjetas de servicio con foto ---------- */
.ecoendi-cards li { overflow: hidden; }
.ecoendi-card__media { display: block; margin: -1.15rem -1.3rem 1rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--bg-secondary); }
.ecoendi-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; margin: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ecoendi-cards li:hover .ecoendi-card__media img { transform: scale(1.07); }

/* ---------- carrusel infinito de logos ---------- */
.ecoendi-marquee { overflow: hidden; margin-top: 1.75rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ecoendi-marquee__track { display: flex; width: max-content; animation: ecoendiMarquee 46s linear infinite; }
.ecoendi-marquee:hover .ecoendi-marquee__track { animation-play-state: paused; }
.ecoendi-marquee__set { display: flex; align-items: center; gap: 4rem; padding-right: 4rem; }
.ecoendi-marquee img { height: 42px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.ecoendi-marquee img:hover { filter: none; opacity: 1; }
@keyframes ecoendiMarquee { to { transform: translateX(-50%); } }

/* ---------- galería ---------- */
.wp-block-gallery.ecoendi-gallery { display: block !important; column-count: 3; column-gap: 1rem; padding: 0; }
.ecoendi-gallery figure.wp-block-image { display: block !important; width: 100% !important; flex: none !important; margin: 0 0 1rem !important; break-inside: avoid; position: relative; overflow: hidden; border-radius: 10px; background: var(--wp--preset--color--bg-secondary); }
.ecoendi-gallery a { display: block; cursor: zoom-in; }
.ecoendi-gallery img { display: block; width: 100% !important; height: auto !important; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ecoendi-gallery figure:hover img { transform: scale(1.05); }
.ecoendi-gallery figure::after { content: "+"; position: absolute; right: .75rem; bottom: .75rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--wp--preset--color--brand-blue); color: #fff; font: 500 1.3rem/1 var(--wp--preset--font-family--mono); opacity: 0; transform: scale(.7); transition: .25s; pointer-events: none; }
.ecoendi-gallery figure:hover::after { opacity: 1; transform: none; }
@media (max-width: 900px) { .wp-block-gallery.ecoendi-gallery { column-count: 2; } }
@media (max-width: 560px) { .wp-block-gallery.ecoendi-gallery { column-count: 1; } }

/* ---------- visor ---------- */
.ecoendi-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 2rem 4.5rem; background: rgba(5, 12, 24, .95); animation: ecoendiFade .25s ease; }
.ecoendi-lightbox[hidden] { display: none; }
.ecoendi-lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.ecoendi-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ecoendi-lightbox figcaption { color: #cbd6e6; font: 400 .8rem/1.4 var(--wp--preset--font-family--mono); letter-spacing: .06em; text-align: center; }
.ecoendi-lightbox button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s; }
.ecoendi-lightbox button:hover { background: var(--wp--preset--color--brand-blue); }
.ecoendi-lightbox__close { top: 1rem; right: 1rem; }
.ecoendi-lightbox__nav { top: 50%; margin-top: -1.5rem; }
.ecoendi-lightbox__nav.is-prev { left: 1rem; }
.ecoendi-lightbox__nav.is-next { right: 1rem; }
html.ecoendi-lb-open { overflow: hidden; }
@keyframes ecoendiFade { from { opacity: 0; } }
@media (max-width: 781px) { .ecoendi-lightbox { padding: 4rem .75rem 2rem; } }

/* ---------- llamado a la acción con foto ---------- */
.ecoendi-cta { background: linear-gradient(120deg, rgba(0,61,153,.93) 0%, rgba(10,22,40,.96) 75%), url("assets/images/fondoherobanner.webp") center / cover; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ecoendi-hero::before { display: none; }
	.ecoendi-hero::after, .ecoendi-hero .eyebrow::before { animation: none; }
	.ecoendi-hero .wp-block-cover__image-background { transform: none; }
	.ecoendi-marquee { -webkit-mask-image: none; mask-image: none; }
	.ecoendi-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.ecoendi-marquee__set { flex-wrap: wrap; justify-content: center; padding: 0; gap: 1.5rem 2.5rem; }
	.ecoendi-marquee__set[aria-hidden="true"] { display: none; }
}
