:root {
  --eco-primary: #119957;
  --eco-primary-strong: #087240;
  --eco-accent: #21df51;
  --eco-accent-soft: #dffbe8;
  --eco-ink: #10211a;
  --eco-muted: #5f6f67;
  --eco-surface: #ffffff;
  --eco-surface-soft: #f4f8f6;
  --eco-border: #dce8e1;
  --eco-shadow: 0 20px 60px rgba(14, 51, 34, .12);
  --eco-shadow-soft: 0 12px 36px rgba(14, 51, 34, .08);
  --eco-radius-sm: 14px;
  --eco-radius: 22px;
  --eco-radius-lg: 32px;
  --eco-container: 1180px;
}

html { scroll-behavior: smooth; }
body.eco-site {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--eco-ink);
  background: var(--eco-surface);
  line-height: 1.65;
  overflow-x: hidden;
}
body.eco-site a { text-decoration: none; }
body.eco-site img { max-width: 100%; height: auto; }
body.eco-site .container { max-width: var(--eco-container); }

.eco-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 99999;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--eco-ink);
  color: #fff;
  transition: top .2s ease;
}
.eco-skip-link:focus { top: 16px; }

.eco-navbar {
  padding: 14px 0;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,232,225,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, padding .25s ease;
}
.eco-navbar.is-scrolled { box-shadow: 0 8px 30px rgba(14,51,34,.08); padding: 10px 0; }
.eco-navbar .navbar-brand { display: inline-flex; align-items: center; }
.eco-navbar .logo { width: auto; height: 56px; object-fit: contain; }
.eco-navbar .nav-link {
  position: relative;
  color: #24372e !important;
  font-weight: 600;
  padding: 10px 12px !important;
  border-radius: 10px;
}
.eco-navbar .nav-link:hover,
.eco-navbar .nav-link.active,
.eco-navbar .nav-link[aria-current="page"] { color: var(--eco-primary-strong) !important; background: var(--eco-accent-soft); }
.eco-navbar .navbar-toggler {
  border: 1px solid var(--eco-border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: none !important;
}
.eco-header-actions { gap: 10px; align-items: center; }
.eco-shop-btn,
.eco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.eco-shop-btn,
.eco-btn-primary {
  color: #062615 !important;
  background: linear-gradient(135deg, var(--eco-accent), #8df0aa);
  box-shadow: 0 12px 30px rgba(33,223,81,.22);
}
.eco-shop-btn:hover,
.eco-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(33,223,81,.28); }
.eco-btn-outline {
  color: var(--eco-primary-strong) !important;
  border-color: #a6cdb7;
  background: rgba(255,255,255,.86);
}
.eco-btn-outline:hover { border-color: var(--eco-primary); background: var(--eco-accent-soft); transform: translateY(-2px); }
.eco-theme-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--eco-border);
  border-radius: 14px;
  background: #fff;
  color: var(--eco-primary-strong);
}

.eco-main { padding-top: 84px; }
.eco-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 88px 0 72px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(33,223,81,.18), transparent 28%),
    radial-gradient(circle at 12% 70%, rgba(17,153,87,.10), transparent 30%),
    linear-gradient(180deg, #fbfefc 0%, #f2f8f5 100%);
}
.eco-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image:
    linear-gradient(rgba(17,153,87,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,153,87,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.eco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #c7e8d4;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--eco-primary-strong);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.eco-kicker i { color: var(--eco-primary); }
.eco-hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}
.eco-hero .eco-highlight,
.eco-highlight { color: var(--eco-primary); }
.eco-hero-copy {
  max-width: 690px;
  color: var(--eco-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}
.eco-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eco-hero-notes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: #40554b; font-size: .96rem; }
.eco-hero-notes span { display: inline-flex; gap: 8px; align-items: center; }
.eco-hero-notes i { color: var(--eco-primary); }
.eco-hero-visual {
  position: relative;
  max-width: 620px;
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(169,203,183,.7);
  border-radius: 40px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--eco-shadow);
}
.eco-hero-visual img { width: 100%; min-height: 340px; object-fit: contain; filter: drop-shadow(0 22px 28px rgba(0,0,0,.16)); }
.eco-visual-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  max-width: 245px;
  padding: 14px 16px;
  border: 1px solid var(--eco-border);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--eco-shadow-soft);
  font-weight: 700;
}
.eco-visual-badge small { display: block; color: var(--eco-muted); font-weight: 500; margin-top: 2px; }

.eco-section { padding: 92px 0; }
.eco-section-soft { background: var(--eco-surface-soft); }
.eco-section-dark { background: #0d2419; color: #fff; }
.eco-section-head { max-width: 760px; margin-bottom: 42px; }
.eco-section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eco-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eco-primary-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.eco-section-dark .eco-eyebrow { color: #8df0aa; }
.eco-section-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
}
.eco-section-copy { color: var(--eco-muted); font-size: 1.05rem; }
.eco-section-dark .eco-section-copy { color: #c8d9d0; }

.eco-service-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(14,51,34,.02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.eco-service-card:hover { transform: translateY(-6px); box-shadow: var(--eco-shadow-soft); border-color: #b9dcc8; }
.eco-service-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 16px;
  color: var(--eco-primary-strong);
  background: var(--eco-accent-soft);
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.eco-service-card h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 800; text-transform: none; }
.eco-service-card p { color: var(--eco-muted); margin: 12px 0 18px; }
.eco-inline-link { color: var(--eco-primary-strong); font-weight: 800; }
.eco-inline-link i { transition: transform .2s ease; }
.eco-inline-link:hover i { transform: translateX(4px); }

.eco-about-panel {
  padding: 34px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius-lg);
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
.eco-about-image {
  height: 100%;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: var(--eco-radius-lg);
  background:
    radial-gradient(circle at 75% 20%, rgba(33,223,81,.22), transparent 33%),
    linear-gradient(145deg,#eaf6ef,#f9fcfa);
  overflow: hidden;
}
.eco-about-image img { max-height: 470px; object-fit: contain; }
.eco-feature-list { display: grid; gap: 14px; margin: 26px 0 0; }
.eco-feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--eco-border);
  border-radius: 14px;
  background: #fff;
}
.eco-feature i { color: var(--eco-primary); margin-top: 2px; font-size: 1.1rem; }
.eco-feature strong { display: block; }
.eco-feature span { color: var(--eco-muted); font-size: .94rem; }

.eco-stat {
  height: 100%;
  padding: 26px 24px;
  border-radius: var(--eco-radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
}
.eco-stat strong { display: block; color: #8df0aa; font-size: clamp(2.2rem,4vw,3.5rem); line-height: 1; }
.eco-stat span { display: block; margin-top: 10px; color: #d8e7df; }

.eco-reason-card {
  height: 100%;
  padding: 26px;
  border-left: 3px solid var(--eco-accent);
  border-radius: 0 var(--eco-radius) var(--eco-radius) 0;
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
.eco-reason-card .num { color: #91bca4; font-weight: 800; font-size: .84rem; letter-spacing: .12em; }
.eco-reason-card h3 { margin: 12px 0 10px; font-size: 1.28rem; font-weight: 800; }
.eco-reason-card p { color: var(--eco-muted); margin: 0; }

.eco-project-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
.eco-project-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #ecf2ef; }
.eco-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.eco-project-card:hover .eco-project-media img { transform: scale(1.045); }
.eco-project-body { padding: 22px; }
.eco-project-body small { color: var(--eco-primary-strong); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.eco-project-body h3 { margin: 8px 0 4px; font-size: 1.26rem; font-weight: 800; }
.eco-project-body p { color: var(--eco-muted); margin: 0; }

.eco-cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px,5vw,58px);
  border-radius: var(--eco-radius-lg);
  background: linear-gradient(135deg,#0d2419 0%,#0c4b2d 100%);
  color: #fff;
  box-shadow: var(--eco-shadow);
}
.eco-cta-panel::after {
  content:""; position:absolute; width:280px; height:280px; border-radius:50%;
  right:-80px; top:-120px; background:rgba(33,223,81,.14);
}
.eco-cta-panel p { color: #cbdcd3; max-width: 700px; }

.eco-page-hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at 85% 20%, rgba(33,223,81,.15), transparent 27%),
    linear-gradient(180deg,#fbfefc,#f1f8f4);
  border-bottom: 1px solid var(--eco-border);
}
.eco-breadcrumb { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--eco-muted); font-size: .94rem; }
.eco-breadcrumb li+li::before { content: "/"; margin-right: 8px; color: #98a9a0; }
.eco-breadcrumb a { color: var(--eco-primary-strong); font-weight: 700; }
.eco-page-hero h1 { margin: 0 0 12px; font-size: clamp(2.4rem,5vw,4.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.eco-page-hero p { max-width: 760px; margin: 0; color: var(--eco-muted); font-size: 1.08rem; }

.eco-contact-grid { align-items: stretch; }
.eco-contact-info,
.eco-form-panel {
  height: 100%;
  padding: clamp(24px,4vw,38px);
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius-lg);
  background: #fff;
  box-shadow: var(--eco-shadow-soft);
}
.eco-contact-info { background: linear-gradient(160deg,#0e291c,#0d4930); color: #fff; }
.eco-contact-info p { color: #c8d8d0; }
.eco-contact-list { display: grid; gap: 12px; margin-top: 26px; }
.eco-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.eco-contact-item i { color: #8df0aa; font-size: 1.15rem; margin-top: 2px; }
.eco-contact-item a, .eco-contact-item span { color: #f3faf6; }
.eco-contact-item strong { display: block; color: #fff; font-size: .9rem; margin-bottom: 2px; }
.eco-form-panel label { display: block; margin: 0 0 7px; font-weight: 700; color: #2b4136; }
.eco-field {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ceddd4;
  border-radius: 13px;
  background: #fbfdfc;
  padding: 12px 14px;
  color: var(--eco-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea.eco-field { min-height: 150px; resize: vertical; }
.eco-field:focus { border-color: var(--eco-primary); box-shadow: 0 0 0 4px rgba(17,153,87,.11); background: #fff; }
.eco-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.eco-form-note { color: var(--eco-muted); font-size: .9rem; margin-top: 12px; }

.eco-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  font-size: 1.55rem;
  box-shadow: 0 14px 34px rgba(23,94,53,.26);
  transition: transform .2s ease;
}
.eco-whatsapp:hover { transform: translateY(-3px) scale(1.02); }

footer-component { display: block; }

.eco-404 {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 70px 0;
  background: linear-gradient(180deg,#fbfefc,#f0f7f3);
}
.eco-404-card {
  max-width: 780px;
  margin: auto;
  padding: clamp(28px,5vw,54px);
  text-align: center;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius-lg);
  background: #fff;
  box-shadow: var(--eco-shadow);
}
.eco-404-card img { max-height: 250px; object-fit: contain; margin-bottom: 18px; }
.eco-404-card h1 { font-size: clamp(2.4rem,5vw,4rem); font-weight: 800; letter-spacing: -.04em; }
.eco-404-card p { color: var(--eco-muted); }

@media (max-width: 991.98px) {
  .eco-main { padding-top: 76px; }
  .eco-navbar .logo { height: 48px; }
  .eco-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--eco-shadow-soft);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .eco-header-actions { margin-top: 10px; flex-wrap: wrap; }
  .eco-shop-btn { flex: 1; }
  .eco-hero { min-height: auto; padding: 72px 0 64px; }
  .eco-hero-visual { margin: 38px auto 0; }
  .eco-visual-badge { left: 12px; bottom: 12px; }
  .eco-section { padding: 72px 0; }
}
@media (max-width: 575.98px) {
  .eco-hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .eco-hero-actions .eco-btn { width: 100%; }
  .eco-hero-visual { padding: 12px; border-radius: 26px; }
  .eco-hero-visual img { min-height: 260px; }
  .eco-visual-badge { position: static; margin-top: 10px; max-width: none; }
  .eco-section { padding: 60px 0; }
  .eco-about-panel,
  .eco-contact-info,
  .eco-form-panel { padding: 22px; border-radius: 22px; }
  .eco-whatsapp { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Compatibilidad con main.js existente */
#particles-js { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
#progress { z-index: 8990; }

/* =========================================================
   BASE AUTONOMA / FALLBACK DE LAYOUT
   Permite que el sitio mantenga su estructura aunque
   Bootstrap o Bootstrap Icons no estén disponibles.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(100% - 32px, var(--eco-container));
  margin-inline: auto;
}
.row {
  --eco-gutter-x: 1.5rem;
  --eco-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--eco-gutter-y));
  margin-right: calc(-.5 * var(--eco-gutter-x));
  margin-left: calc(-.5 * var(--eco-gutter-x));
}
.row > * {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  padding-right: calc(.5 * var(--eco-gutter-x));
  padding-left: calc(.5 * var(--eco-gutter-x));
  margin-top: var(--eco-gutter-y);
}
.g-3 { --eco-gutter-x: 1rem; --eco-gutter-y: 1rem; }
.g-4 { --eco-gutter-x: 1.5rem; --eco-gutter-y: 1.5rem; }
.g-5 { --eco-gutter-x: 3rem; --eco-gutter-y: 3rem; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: .5rem !important; }
.ms-auto { margin-left: auto !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.position-relative { position: relative !important; }
.border-0 { border: 0 !important; }

/* Navegacion autonoma */
.eco-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
}
.eco-navbar > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 66px;
}
.navbar-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.navbar-toggler {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--eco-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.navbar-toggler-icon { position: relative; }
.navbar-toggler-icon::before,
.navbar-toggler-icon::after { content: ""; position: absolute; left: 0; }
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { top: 0; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { top: 0; transform: rotate(-45deg); }
.navbar-collapse {
  display: flex;
  flex-basis: auto;
  flex-grow: 1;
  align-items: center;
}
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.navbar-nav .nav-item { list-style: none; margin: 0; padding: 0; }
.eco-header-actions { flex-shrink: 0; }

/* Bootstrap Icons fallback: evita cuadros vacios si la fuente no carga */
.bi { display: inline-grid; place-items: center; font-style: normal; line-height: 1; font-family: inherit !important; }
.bi::before { font-family: inherit !important; font-weight: 800; }
.bi-arrow-right::before { content: "→"; }
.bi-arrow-up-short::before { content: "↑"; }
.bi-bag::before { content: "▢"; }
.bi-moon-fill::before { content: "◐"; }
.bi-sun::before, .bi-sun-fill::before { content: "☀"; }
.bi-shield-check::before, .bi-check-circle-fill::before, .bi-hand-thumbs-up-fill::before { content: "✓"; }
.bi-camera-video::before { content: "◉"; }
.bi-pc-display-horizontal::before { content: "▣"; }
.bi-keyboard::before { content: "⌨"; }
.bi-tools::before, .bi-gear::before { content: "⚙"; }
.bi-people-fill::before { content: "●●"; font-size: .72em; letter-spacing: -2px; }
.bi-star-fill::before { content: "★"; }
.bi-envelope-fill::before { content: "✉"; }
.bi-whatsapp::before { content: "☎"; }
.bi-geo-alt-fill::before { content: "●"; }
.bi-instagram::before { content: "◎"; }
.bi-send::before { content: "→"; }

/* Elementos que antes dependian del JS/CSS original */
#preloader { display: none !important; }
#progress {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--eco-border);
  border-radius: 50%;
  background: #fff;
  color: var(--eco-primary-strong);
  box-shadow: var(--eco-shadow-soft);
  cursor: pointer;
}
#progress.is-visible { display: grid; }

/* Footer propio: ya no depende de header.js */
.eco-footer {
  padding: 56px 0 26px;
  background: #0b2016;
  color: #d6e5dd;
}
.eco-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.eco-footer-brand img { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .96; }
.eco-footer h2, .eco-footer h3 { color: #fff; margin: 0 0 14px; }
.eco-footer h3 { font-size: 1rem; }
.eco-footer p { margin: 0; color: #bcd0c5; }
.eco-footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eco-footer a { color: #d6e5dd; }
.eco-footer a:hover { color: #8df0aa; }
.eco-footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #94ab9f;
  font-size: .9rem;
}

/* Modo oscuro ligero */
body.eco-dark { background: #08160f; color: #eef8f2; }
body.eco-dark .eco-navbar { background: rgba(8,22,15,.95); border-bottom-color: rgba(255,255,255,.08); }
body.eco-dark .eco-navbar .nav-link { color: #e8f4ed !important; }
body.eco-dark .eco-theme-button,
body.eco-dark .navbar-toggler { background: #10271b; color: #fff; border-color: rgba(255,255,255,.12); }
body.eco-dark .navbar-toggler-icon,
body.eco-dark .navbar-toggler-icon::before,
body.eco-dark .navbar-toggler-icon::after { background: #fff; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .align-items-lg-center { align-items: center !important; }
  .ms-lg-3 { margin-left: 1rem !important; }
  .text-lg-end { text-align: right !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}
@media (max-width: 991.98px) {
  .container { width: min(100% - 28px, var(--eco-container)); }
  .navbar-toggler { display: inline-flex; }
  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    flex-grow: 1;
    width: 100%;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    margin: 0;
  }
  .eco-navbar .nav-link { display: block; width: 100%; padding: 11px 12px !important; }
  .eco-header-actions { width: 100%; margin-left: 0 !important; }
  .eco-theme-button { flex: 0 0 46px; }
  .eco-footer-grid { grid-template-columns: 1fr 1fr; }
  .eco-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .container { width: min(100% - 24px, var(--eco-container)); }
  .eco-navbar { padding: 10px 0; }
  .eco-navbar .logo { height: 44px; max-width: 165px; }
  .eco-main { padding-top: 70px; }
  .eco-hero { padding-top: 56px; }
  .eco-footer-grid { grid-template-columns: 1fr; }
  .eco-footer-brand { grid-column: auto; }
}

/* =========================================================
   ECOPLAS BRAND V2 — PALETA DEL LOGO + INTERACCION
   ========================================================= */
:root {
  --brand-ink: #17191c;
  --brand-purple: #7b1cbb;
  --brand-magenta: #df078e;
  --brand-orange: #fba220;
  --brand-cyan: #3a9abd;
  --brand-green: #40c552;
  --brand-lime: #c2ed50;
  --brand-violet-soft: #f3eafb;
  --brand-pink-soft: #fdeaf5;
  --brand-cyan-soft: #eaf7fb;
  --brand-green-soft: #ecfaee;
  --brand-orange-soft: #fff5e6;

  /* Variables heredadas redirigidas a la identidad del logo */
  --eco-primary: var(--brand-purple);
  --eco-primary-strong: #5f1593;
  --eco-accent: var(--brand-magenta);
  --eco-accent-soft: var(--brand-violet-soft);
  --eco-ink: var(--brand-ink);
  --eco-muted: #646b73;
  --eco-surface: #ffffff;
  --eco-surface-soft: #f8f9fb;
  --eco-border: #e4e6eb;
  --eco-shadow: 0 24px 70px rgba(37, 28, 50, .14);
  --eco-shadow-soft: 0 14px 38px rgba(37, 28, 50, .09);
  --brand-gradient: linear-gradient(115deg, var(--brand-purple) 0%, var(--brand-magenta) 35%, var(--brand-orange) 66%, var(--brand-green) 100%);
  --brand-gradient-cool: linear-gradient(120deg, var(--brand-purple), var(--brand-magenta), var(--brand-cyan));
}

body.eco-site {
  background: #fff;
  color: var(--brand-ink);
}

/* Barra de espectro de marca */
body.eco-site::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 10050;
  background: linear-gradient(90deg,
    var(--brand-purple) 0 18%,
    var(--brand-magenta) 18% 38%,
    var(--brand-orange) 38% 58%,
    var(--brand-lime) 58% 78%,
    var(--brand-cyan) 78% 100%);
}

/* HEADER */
.eco-navbar {
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(27,28,31,.08);
  box-shadow: 0 1px 0 rgba(20,20,24,.02);
}
.eco-navbar.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 45px rgba(35,24,48,.10);
}
.eco-navbar .nav-link {
  color: #30333a !important;
  background: transparent !important;
  overflow: hidden;
}
.eco-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gradient-cool);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.eco-navbar .nav-link:hover,
.eco-navbar .nav-link.active,
.eco-navbar .nav-link[aria-current="page"] { color: var(--brand-purple) !important; }
.eco-navbar .nav-link:hover::after,
.eco-navbar .nav-link.active::after,
.eco-navbar .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.eco-shop-btn,
.eco-btn-primary {
  color: #fff !important;
  background: var(--brand-gradient);
  background-size: 180% 180%;
  box-shadow: 0 12px 32px rgba(123,28,187,.20), 0 8px 22px rgba(223,7,142,.11);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.eco-shop-btn::after,
.eco-btn-primary::after {
  content: "";
  position: absolute;
  inset: -3px auto -3px -70%;
  width: 45%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .55s ease;
  z-index: -1;
}
.eco-shop-btn:hover,
.eco-btn-primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 18px 38px rgba(123,28,187,.24), 0 10px 28px rgba(223,7,142,.16);
}
.eco-shop-btn:hover::after,
.eco-btn-primary:hover::after { left: 135%; }

.eco-btn-outline {
  color: var(--brand-purple) !important;
  border-color: #d6b9ea;
  background: rgba(255,255,255,.86);
}
.eco-btn-outline:hover {
  border-color: var(--brand-magenta);
  color: var(--brand-magenta) !important;
  background: var(--brand-pink-soft);
}
.eco-theme-button {
  color: var(--brand-purple);
  border-color: #dddfe5;
}
.eco-theme-button:hover { border-color: #cfb0e4; background: var(--brand-violet-soft); transform: rotate(7deg); }

/* HERO */
.eco-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(223,7,142,.14), transparent 26%),
    radial-gradient(circle at 70% 82%, rgba(58,154,189,.12), transparent 27%),
    radial-gradient(circle at 14% 72%, rgba(194,237,80,.13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfaff 55%, #f8fafc 100%);
}
.eco-hero::before {
  opacity: .44;
  background-image:
    linear-gradient(rgba(123,28,187,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,154,189,.05) 1px, transparent 1px);
}
.eco-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: 8%;
  border-radius: 50%;
  border: 1px solid rgba(123,28,187,.10);
  box-shadow:
    0 0 0 55px rgba(223,7,142,.035),
    0 0 0 110px rgba(58,154,189,.025);
  z-index: -1;
  animation: ecoOrbit 14s linear infinite;
}
.eco-kicker {
  color: #4d2868;
  border-color: #e2cdef;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(123,28,187,.07);
}
.eco-kicker i { color: var(--brand-magenta); }
.eco-highlight {
  color: transparent !important;
  background: var(--brand-gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
}
.eco-hero-notes i { color: var(--brand-green); }

.eco-hero-visual {
  border-color: rgba(123,28,187,.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.98), rgba(255,255,255,.78) 60%),
    linear-gradient(145deg, rgba(243,234,251,.88), rgba(234,247,251,.76));
  box-shadow: 0 30px 90px rgba(78,34,102,.16);
  transform-style: preserve-3d;
  transition: transform .2s ease, box-shadow .3s ease;
}
.eco-hero-visual::before,
.eco-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(.2px);
  pointer-events: none;
}
.eco-hero-visual::before {
  width: 82px; height: 82px;
  top: -24px; right: 28px;
  background: linear-gradient(145deg, var(--brand-magenta), var(--brand-orange));
  opacity: .22;
  animation: ecoFloat 5.5s ease-in-out infinite;
}
.eco-hero-visual::after {
  width: 54px; height: 54px;
  left: -18px; top: 30%;
  background: linear-gradient(145deg, var(--brand-cyan), var(--brand-green));
  opacity: .24;
  animation: ecoFloat 6.5s ease-in-out infinite reverse;
}
.eco-hero-visual img {
  transition: transform .35s ease, filter .35s ease;
}
.eco-hero-visual:hover img {
  transform: translateY(-5px) scale(1.018);
  filter: drop-shadow(0 28px 34px rgba(52,31,68,.22));
}
.eco-visual-badge {
  border-color: rgba(223,7,142,.16);
  box-shadow: 0 16px 42px rgba(65,30,82,.14);
}
.eco-visual-badge::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand-magenta);
  box-shadow: 0 0 0 5px rgba(223,7,142,.09);
}
.eco-float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid #e4e5ea;
  box-shadow: 0 14px 34px rgba(41,28,50,.12);
  font-size: .82rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: ecoFloat 5.8s ease-in-out infinite;
}
.eco-float-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.eco-float-chip--solar { right: -24px; top: 18%; }
.eco-float-chip--solar::before { background: var(--brand-orange); box-shadow: 0 0 0 5px rgba(251,162,32,.12); }
.eco-float-chip--tech { right: 18px; bottom: -18px; animation-delay: -2.2s; }
.eco-float-chip--tech::before { background: var(--brand-cyan); box-shadow: 0 0 0 5px rgba(58,154,189,.12); }

/* TITULOS / SECCIONES */
.eco-section-soft { background: #f8f9fc; }
.eco-eyebrow { color: var(--brand-purple); }
.eco-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-magenta), var(--brand-orange));
}
.eco-section-dark {
  background:
    radial-gradient(circle at 90% 15%, rgba(223,7,142,.15), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(58,154,189,.12), transparent 28%),
    #17161b;
}
.eco-section-dark .eco-eyebrow { color: #f2b9dc; }
.eco-section-dark .eco-eyebrow::before { background: linear-gradient(90deg, var(--brand-magenta), var(--brand-orange)); }

/* SERVICIOS: una identidad cromatica por categoria */
.eco-service-card {
  position: relative;
  overflow: hidden;
  border-color: #e8e8ed;
  box-shadow: 0 8px 28px rgba(33,27,39,.045);
  transform-style: preserve-3d;
  will-change: transform;
}
.eco-service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--card-accent, var(--brand-purple));
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .35s ease;
}
.eco-service-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -76px; bottom: -76px;
  border-radius: 50%;
  background: var(--card-soft, var(--brand-violet-soft));
  opacity: .7;
  transition: transform .4s ease;
  z-index: 0;
}
.eco-service-card > * { position: relative; z-index: 1; }
.eco-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(45,31,58,.12);
  border-color: #ddd9e1;
}
.eco-service-card:hover::before { transform: scaleX(1); }
.eco-service-card:hover::after { transform: scale(1.28); }
.eco-service-card:hover .eco-service-icon { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.eco-service-card:nth-child(1) { --card-accent: var(--brand-orange); --card-soft: var(--brand-orange-soft); }
.eco-service-card:nth-child(2) { --card-accent: var(--brand-magenta); --card-soft: var(--brand-pink-soft); }
/* when cards are wrapped by .col, use column position */
.eco-section #servicios .col-md-6:nth-child(1) .eco-service-card,
#servicios .col-md-6:nth-child(1) .eco-service-card { --card-accent: var(--brand-orange); --card-soft: var(--brand-orange-soft); }
#servicios .col-md-6:nth-child(2) .eco-service-card { --card-accent: var(--brand-magenta); --card-soft: var(--brand-pink-soft); }
#servicios .col-md-6:nth-child(3) .eco-service-card { --card-accent: var(--brand-cyan); --card-soft: var(--brand-cyan-soft); }
#servicios .col-md-6:nth-child(4) .eco-service-card { --card-accent: var(--brand-purple); --card-soft: var(--brand-violet-soft); }
#servicios .col-md-6:nth-child(5) .eco-service-card { --card-accent: var(--brand-green); --card-soft: var(--brand-green-soft); }
#servicios .col-md-6:nth-child(6) .eco-service-card { --card-accent: #b2d637; --card-soft: #f5fadf; }
.eco-service-icon {
  color: var(--card-accent, var(--brand-purple));
  background: var(--card-soft, var(--brand-violet-soft));
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.eco-inline-link { color: var(--brand-purple); }
.eco-inline-link:hover { color: var(--brand-magenta); }

/* QUIENES SOMOS */
.eco-about-image {
  position: relative;
  background:
    radial-gradient(circle at 74% 18%, rgba(223,7,142,.14), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(58,154,189,.13), transparent 35%),
    linear-gradient(145deg,#fbf8ff,#f6fbfc);
}
.eco-about-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(123,28,187,.16);
  border-radius: calc(var(--eco-radius-lg) - 10px);
  pointer-events: none;
}
.eco-about-image img { position: relative; z-index: 1; transition: transform .4s ease; }
.eco-about-image:hover img { transform: scale(1.025) rotate(-.4deg); }
.eco-feature { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.eco-feature:nth-child(1) i { color: var(--brand-purple); }
.eco-feature:nth-child(2) i { color: var(--brand-magenta); }
.eco-feature:nth-child(3) i { color: var(--brand-cyan); }
.eco-feature:hover { transform: translateX(5px); border-color: #d8c4e6; box-shadow: 0 10px 28px rgba(41,28,50,.07); }

/* CONTADORES */
.eco-stat {
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, background .28s ease, border-color .28s ease;
}
.eco-stat::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  right: -70px; top: -70px;
  border-radius: 50%;
  background: var(--stat-color, var(--brand-purple));
  opacity: .13;
  transition: transform .35s ease;
}
.eco-stat:hover { transform: translateY(-6px); background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.20); }
.eco-stat:hover::after { transform: scale(1.35); }
.eco-stat strong {
  color: var(--stat-color, #fff);
  text-shadow: 0 10px 30px color-mix(in srgb, var(--stat-color, #fff) 22%, transparent);
}
.eco-stat:nth-child(1) { --stat-color: #f05ab6; }
.eco-stat:nth-child(2) { --stat-color: #e9a33a; }
.eco-stat:nth-child(3) { --stat-color: #6ec6e0; }
.eco-stat:nth-child(4) { --stat-color: #8fdc61; }
/* actual structure wraps stats */
.eco-section-dark .col-6:nth-child(1) .eco-stat { --stat-color: #f05ab6; }
.eco-section-dark .col-6:nth-child(2) .eco-stat { --stat-color: #f7b447; }
.eco-section-dark .col-6:nth-child(3) .eco-stat { --stat-color: #66c6df; }
.eco-section-dark .col-6:nth-child(4) .eco-stat { --stat-color: #8ed95e; }

/* RAZONES */
.eco-reason-card {
  position: relative;
  overflow: hidden;
  border-left: 0;
  border-top: 4px solid var(--reason-color, var(--brand-purple));
  border-radius: var(--eco-radius);
  transition: transform .28s ease, box-shadow .28s ease;
}
.eco-reason-card::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  right: -72px; bottom: -72px;
  background: var(--reason-color, var(--brand-purple));
  opacity: .07;
}
.col-md-4:nth-child(1) .eco-reason-card { --reason-color: var(--brand-purple); }
.col-md-4:nth-child(2) .eco-reason-card { --reason-color: var(--brand-magenta); }
.col-md-4:nth-child(3) .eco-reason-card { --reason-color: var(--brand-cyan); }
.eco-reason-card .num { color: var(--reason-color, var(--brand-purple)); }
.eco-reason-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(45,31,58,.12); }

/* PORTAFOLIO */
.eco-project-card {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.eco-project-card:hover { transform: translateY(-8px); box-shadow: 0 26px 62px rgba(40,28,48,.14); border-color: #ded6e5; }
.eco-project-media { position: relative; }
.eco-project-media::after {
  content: "Ver proyecto  ↗";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-35%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23,25,28,.86);
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  backdrop-filter: blur(8px);
}
.eco-project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(20,18,24,.42));
  opacity: 0;
  transition: opacity .3s ease;
}
.eco-project-media::after { z-index: 2; }
.eco-project-card:hover .eco-project-media::before { opacity: 1; }
.eco-project-card:hover .eco-project-media::after { opacity: 1; transform: translate(-50%,-50%); }
.eco-project-card:hover .eco-project-media img { transform: scale(1.075); }
.eco-project-body small { color: var(--brand-purple); }

/* CONTACTO */
.eco-contact-info {
  background:
    radial-gradient(circle at 85% 10%, rgba(223,7,142,.25), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(58,154,189,.20), transparent 30%),
    linear-gradient(145deg,#211c27,#17161b);
}
.eco-contact-item { transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.eco-contact-item:hover { transform: translateX(5px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.20); }
.eco-contact-item:nth-child(1) i { color: #ef70bd; }
.eco-contact-item:nth-child(2) i { color: #72dc7e; }
.eco-contact-item:nth-child(3) i { color: #74c6dd; }
.eco-contact-item:nth-child(4) i { color: #f4b14b; }
.eco-field:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 4px rgba(123,28,187,.10); }

.eco-whatsapp {
  box-shadow: 0 14px 36px rgba(37,211,102,.28);
}
.eco-whatsapp::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(37,211,102,.34);
  animation: ecoPulse 2.2s ease-out infinite;
}

/* FOOTER: mantener colores reales del logo */
.eco-footer {
  background:
    radial-gradient(circle at 92% 15%, rgba(223,7,142,.12), transparent 24%),
    radial-gradient(circle at 15% 90%, rgba(58,154,189,.10), transparent 26%),
    #141318;
}
.eco-footer-brand img {
  height: 58px;
  filter: none;
  opacity: 1;
  background: #fff;
  padding: 7px 12px;
  border-radius: 14px;
}
.eco-footer a:hover { color: #ef70bd; }

/* PAGE HERO */
.eco-page-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(223,7,142,.12), transparent 27%),
    radial-gradient(circle at 72% 92%, rgba(58,154,189,.10), transparent 30%),
    linear-gradient(180deg,#fff,#faf8fd);
}
.eco-breadcrumb a { color: var(--brand-purple); }

/* Scroll-to-top con indicador de progreso */
#progress {
  --scroll: 0deg;
  background: conic-gradient(var(--brand-magenta) var(--scroll), #fff var(--scroll));
  border: 0;
  padding: 3px;
}
#progress::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
#progress span { position: relative; z-index: 1; color: var(--brand-purple); }

/* REVEAL ON SCROLL */
.eco-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .72s cubic-bezier(.2,.75,.25,1),
    transform .72s cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.eco-reveal.is-visible { opacity: 1; transform: translateY(0); }
.eco-reveal-left { transform: translateX(-28px); }
.eco-reveal-right { transform: translateX(28px); }
.eco-reveal-left.is-visible,
.eco-reveal-right.is-visible { transform: translateX(0); }

/* TILT: sombra dinamica definida desde JS */
[data-eco-tilt] {
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .3s ease;
}
[data-eco-tilt] > * { transform: translateZ(0); }

/* DARK MODE COMPLETO */
body.eco-dark {
  --eco-ink: #f4f2f6;
  --eco-muted: #b8b5bd;
  --eco-surface: #121116;
  --eco-surface-soft: #19171e;
  --eco-border: #2d2a33;
  background: #121116;
  color: #f4f2f6;
}
body.eco-dark .eco-navbar { background: rgba(18,17,22,.92); border-bottom-color: rgba(255,255,255,.08); }
body.eco-dark .eco-navbar.is-scrolled { background: rgba(18,17,22,.97); }
body.eco-dark .eco-navbar .nav-link { color: #ece9ef !important; }
body.eco-dark .eco-hero,
body.eco-dark .eco-page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(223,7,142,.14), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(58,154,189,.10), transparent 30%),
    #121116;
}
body.eco-dark .eco-section-soft { background: #19171e; }
body.eco-dark .eco-service-card,
body.eco-dark .eco-about-panel,
body.eco-dark .eco-feature,
body.eco-dark .eco-reason-card,
body.eco-dark .eco-project-card,
body.eco-dark .eco-form-panel,
body.eco-dark .eco-404-card { background: #1d1b22; border-color: #302d35; }
body.eco-dark .eco-about-image { background: linear-gradient(145deg,#211c27,#171b22); }
body.eco-dark .eco-section-copy,
body.eco-dark .eco-service-card p,
body.eco-dark .eco-feature span,
body.eco-dark .eco-reason-card p,
body.eco-dark .eco-project-body p,
body.eco-dark .eco-form-note { color: #b8b5bd; }
body.eco-dark .eco-field { background: #17161b; color: #fff; border-color: #34313a; }
body.eco-dark .eco-field:focus { background: #1d1b22; }
body.eco-dark .eco-btn-outline { background: #1d1b22; color: #e9c6fb !important; border-color: #614270; }
body.eco-dark .eco-kicker,
body.eco-dark .eco-visual-badge,
body.eco-dark .eco-float-chip { background: rgba(29,27,34,.92); border-color: #37313c; color: #f4f2f6; }
body.eco-dark .eco-hero-visual { background: linear-gradient(145deg,rgba(37,28,43,.9),rgba(25,29,35,.92)); border-color: #38313e; }
body.eco-dark .eco-theme-button,
body.eco-dark .navbar-toggler { background: #1d1b22; border-color: #39353f; }
body.eco-dark #progress::before { background: #18161c; }
body.eco-dark #progress { background: conic-gradient(var(--brand-magenta) var(--scroll), #332f38 var(--scroll)); }
body.eco-dark .eco-navbar .navbar-collapse { background: #18161c; }

/* ANIMACIONES */
@keyframes ecoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes ecoPulse {
  0% { transform: scale(.92); opacity: .8; }
  75%,100% { transform: scale(1.32); opacity: 0; }
}
@keyframes ecoOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
  .eco-float-chip--solar { right: 4px; top: 12%; }
  .eco-float-chip--tech { right: 12px; bottom: -10px; }
  .eco-navbar .nav-link::after { left: 12px; right: auto; width: 44px; }
}
@media (max-width: 575.98px) {
  .eco-float-chip { display: none; }
  .eco-hero::after { width: 280px; height: 280px; right: -150px; }
}

@media (prefers-reduced-motion: reduce) {
  .eco-reveal { opacity: 1 !important; transform: none !important; }
  .eco-whatsapp::after,
  .eco-hero::after,
  .eco-hero-visual::before,
  .eco-hero-visual::after,
  .eco-float-chip { animation: none !important; }
  [data-eco-tilt] { transform: none !important; }
}


/* =========================================================
   Formulario de contacto: estados sin salir del sitio
   ========================================================= */
.eco-form-status {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #ded6e5;
  background: #fff;
  box-shadow: 0 14px 36px rgba(40,28,48,.08);
  animation: ecoStatusIn .35s ease both;
}
.eco-form-status[hidden] { display: none !important; }
.eco-form-status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.25rem;
}
.eco-form-status strong { display: block; margin: 1px 0 2px; font-size: 1.02rem; }
.eco-form-status p { margin: 0; color: var(--eco-muted); }
.eco-form-status.is-success { border-color: rgba(83,188,80,.32); background: linear-gradient(135deg, rgba(142,217,94,.09), #fff 55%); }
.eco-form-status.is-success .eco-form-status-icon { background: rgba(142,217,94,.18); color: #2c8b3f; }
.eco-form-status.is-error { border-color: rgba(240,90,182,.3); background: linear-gradient(135deg, rgba(240,90,182,.08), #fff 55%); }
.eco-form-status.is-error .eco-form-status-icon { background: rgba(240,90,182,.14); color: #b42880; }
.eco-form-status.is-warning { border-color: rgba(247,180,71,.4); background: linear-gradient(135deg, rgba(247,180,71,.10), #fff 55%); }
.eco-form-status.is-warning .eco-form-status-icon { background: rgba(247,180,71,.16); color: #9b6715; }
.eco-btn.is-loading { cursor: wait; opacity: .82; transform: none !important; }
.eco-btn.is-loading i { animation: ecoSpin 1s linear infinite; }
@keyframes ecoSpin { to { transform: rotate(360deg); } }
@keyframes ecoStatusIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   Blog
   ========================================================= */
.eco-blog-hero { overflow: hidden; }
.eco-blog-hero .row { position: relative; z-index: 1; }
.eco-blog-orbit {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid rgba(123,28,187,.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(240,90,182,.10), transparent 60%);
}
.eco-blog-orbit::before,
.eco-blog-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(102,198,223,.38);
  border-radius: 50%;
}
.eco-blog-orbit::after { inset: 29%; border-color: rgba(247,180,71,.4); }
.eco-blog-orbit > i { font-size: 3rem; color: var(--brand-purple); filter: drop-shadow(0 12px 22px rgba(123,28,187,.18)); }
.eco-blog-orbit > span { position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.eco-blog-orbit > span:nth-child(1) { background: var(--brand-magenta); top: 12%; left: 48%; animation: ecoFloatDot 4s ease-in-out infinite; }
.eco-blog-orbit > span:nth-child(2) { background: var(--brand-cyan); right: 10%; bottom: 28%; animation: ecoFloatDot 4.6s ease-in-out infinite .25s; }
.eco-blog-orbit > span:nth-child(3) { background: var(--brand-orange); left: 12%; bottom: 22%; animation: ecoFloatDot 5.1s ease-in-out infinite .5s; }
@keyframes ecoFloatDot { 50% { transform: translateY(-10px) scale(1.08); } }

.eco-blog-card {
  --blog-accent: var(--brand-purple);
  position: relative;
  height: 100%;
  padding: 28px;
  border: 1px solid #e5dfea;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(40,28,48,.07);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.eco-blog-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blog-accent) 12%, transparent);
  transition: transform .35s ease;
}
.eco-blog-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(40,28,48,.13); border-color: color-mix(in srgb, var(--blog-accent) 30%, #e5dfea); }
.eco-blog-card:hover::after { transform: scale(1.45); }
.eco-blog-card-security { --blog-accent: var(--brand-magenta); }
.eco-blog-card-energy { --blog-accent: var(--brand-orange); }
.eco-blog-card-tech { --blog-accent: var(--brand-cyan); }
.eco-blog-card-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 22px; background: color-mix(in srgb, var(--blog-accent) 13%, #fff); color: var(--blog-accent); font-size: 1.5rem; position: relative; z-index: 1; }
.eco-blog-tag { display: inline-flex; margin-bottom: 10px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blog-accent); }
.eco-blog-card h3 { font-size: 1.45rem; line-height: 1.16; margin: 0 0 12px; font-weight: 800; }
.eco-blog-card p { color: var(--eco-muted); margin: 0 0 22px; }
.eco-blog-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blog-accent) !important; font-weight: 800; }
.eco-blog-link i { transition: transform .2s ease; }
.eco-blog-link:hover i { transform: translateX(5px); }

.eco-blog-feature { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: clamp(30px,6vw,80px); align-items: start; max-width: 1040px; margin: 0 auto; }
.eco-blog-feature-number { font-size: clamp(5rem,10vw,9rem); line-height: .8; letter-spacing: -.07em; font-weight: 800; color: transparent; -webkit-text-stroke: 2px rgba(123,28,187,.24); user-select: none; }
.eco-blog-feature-reverse .eco-blog-feature-number { -webkit-text-stroke-color: rgba(240,90,182,.25); }
.eco-blog-checks { display: grid; gap: 13px; margin-top: 26px; }
.eco-blog-checks > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #e8e3eb; border-radius: 16px; background: rgba(255,255,255,.76); }
.eco-blog-checks i { color: var(--brand-purple); margin-top: 3px; }
.eco-blog-callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(247,180,71,.13), rgba(240,90,182,.08)); border: 1px solid rgba(247,180,71,.28); }
.eco-blog-callout i { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(247,180,71,.18); color: #a96f13; font-size: 1.2rem; }
.eco-blog-callout p { margin: 0; color: var(--eco-muted); }
.eco-blog-cta { position: relative; overflow: hidden; }
.eco-blog-cta::before { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(240,90,182,.28), transparent 70%); }
.eco-btn-on-dark { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.24) !important; }

body.eco-dark .eco-form-status,
body.eco-dark .eco-blog-card,
body.eco-dark .eco-blog-checks > div { background: #1c1920; border-color: #343039; }
body.eco-dark .eco-form-status p,
body.eco-dark .eco-blog-card p,
body.eco-dark .eco-blog-callout p { color: #b8b5bd; }
body.eco-dark .eco-form-status.is-success { background: linear-gradient(135deg, rgba(142,217,94,.08), #1c1920 58%); }
body.eco-dark .eco-form-status.is-error { background: linear-gradient(135deg, rgba(240,90,182,.08), #1c1920 58%); }
body.eco-dark .eco-form-status.is-warning { background: linear-gradient(135deg, rgba(247,180,71,.08), #1c1920 58%); }
body.eco-dark .eco-blog-card h3,
body.eco-dark .eco-blog-feature strong { color: #f3f0f5; }
body.eco-dark .eco-blog-callout { background: linear-gradient(135deg, rgba(247,180,71,.08), rgba(240,90,182,.06)); border-color: #40373b; }

@media (max-width: 991.98px) {
  .eco-blog-orbit { margin: 10px auto 0 0; width: 190px; }
  .eco-blog-feature { grid-template-columns: 100px minmax(0,1fr); gap: 28px; }
}
@media (max-width: 575.98px) {
  .eco-blog-orbit { display: none; }
  .eco-blog-feature { grid-template-columns: 1fr; gap: 14px; }
  .eco-blog-feature-number { font-size: 4.5rem; }
  .eco-blog-card { padding: 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .eco-blog-orbit > span, .eco-form-status, .eco-btn.is-loading i { animation: none !important; }
}
/* =========================================================
   Refuerzo visual - Misión y Visión
   ========================================================= */
.eco-purpose-section {
  padding-top: clamp(88px, 9vw, 120px);
  padding-bottom: clamp(88px, 9vw, 120px);
  background:
    radial-gradient(circle at 8% 14%, rgba(0, 210, 255, .08), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(255, 79, 171, .08), transparent 22%),
    radial-gradient(circle at 88% 85%, rgba(122, 78, 255, .10), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,253,.98));
}
.eco-purpose-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  z-index: 1;
}
.eco-purpose-intro {
  position: relative;
  padding: clamp(28px, 3vw, 38px);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 20, 27, .97), rgba(31, 23, 43, .96));
  color: #fff;
  box-shadow: 0 30px 70px rgba(14, 20, 27, .18);
}
.eco-purpose-intro::before,
.eco-purpose-intro::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.eco-purpose-intro::before {
  width: 260px;
  height: 260px;
  right: -100px;
  top: -80px;
  background: radial-gradient(circle, rgba(0, 210, 255, .24), transparent 70%);
}
.eco-purpose-intro::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 133, 48, .24), transparent 70%);
}
.eco-purpose-intro .eco-section-title,
.eco-purpose-intro .eco-section-copy,
.eco-purpose-intro .eco-eyebrow,
.eco-purpose-panel strong,
.eco-purpose-panel p,
.eco-purpose-pill {
  position: relative;
  z-index: 1;
}
.eco-purpose-intro .eco-section-title {
  color: #fff;
  margin-bottom: 18px;
}
.eco-purpose-intro .eco-section-copy {
  color: rgba(255,255,255,.82);
  max-width: 42ch;
}
.eco-purpose-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}
.eco-purpose-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
}
.eco-purpose-pill i { color: var(--brand-lime); }
.eco-purpose-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  margin-top: 8px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
}
.eco-purpose-panel-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--brand-magenta), var(--brand-orange));
  box-shadow: 0 14px 28px rgba(255, 79, 171, .22);
}
.eco-purpose-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.eco-purpose-panel p {
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.68;
}
.eco-purpose-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}
.eco-purpose-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  box-shadow: 0 24px 60px rgba(18, 30, 35, .10);
}
.eco-purpose-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.eco-purpose-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--purpose-a);
  background: color-mix(in srgb, var(--purpose-a) 12%, white);
  border: 1px solid color-mix(in srgb, var(--purpose-a) 18%, rgba(20,45,38,.08));
}
.eco-purpose-card h3 {
  margin-bottom: 16px;
}
.eco-purpose-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.eco-purpose-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 248, 251, .92);
  color: #183029;
  font-weight: 700;
}
.eco-purpose-points i {
  color: var(--purpose-a);
  font-size: 1.05rem;
}
.eco-purpose-card:hover {
  transform: translateY(-10px) rotateX(1deg);
}
.eco-purpose-card:hover .eco-purpose-number {
  transform: translateY(-2px);
}
body.eco-dark .eco-purpose-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 210, 255, .10), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(255, 79, 171, .10), transparent 22%),
    radial-gradient(circle at 88% 85%, rgba(122, 78, 255, .12), transparent 20%),
    linear-gradient(180deg, rgba(11,14,19,.98), rgba(16,19,26,.98));
}
body.eco-dark .eco-purpose-intro {
  background: linear-gradient(145deg, rgba(21, 27, 34, .96), rgba(34, 22, 48, .96));
  border: 1px solid rgba(255,255,255,.06);
}
body.eco-dark .eco-purpose-card {
  background: linear-gradient(145deg, rgba(28, 31, 39, .96), rgba(20, 24, 30, .96));
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
body.eco-dark .eco-purpose-points li {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
}
@media (max-width: 991px) {
  .eco-purpose-shell {
    grid-template-columns: 1fr;
  }
  .eco-purpose-intro {
    padding: 28px 24px;
  }
}
@media (max-width: 767px) {
  .eco-purpose-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .eco-purpose-card {
    padding: 24px 22px;
    border-radius: 24px;
  }
  .eco-purpose-panel {
    grid-template-columns: 1fr;
  }
  .eco-purpose-panel-icon {
    width: 52px;
    height: 52px;
  }
  .eco-purpose-pill {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Blog editorial premium
   ========================================================= */
.eco-blog-hero-premium {
  position: relative;
  overflow: hidden;
  padding-top: clamp(68px, 8vw, 108px);
  padding-bottom: clamp(76px, 8vw, 112px);
  background:
    radial-gradient(circle at 85% 18%, rgba(223, 7, 142, .12), transparent 22%),
    radial-gradient(circle at 12% 74%, rgba(58, 154, 189, .10), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbf8fc 100%);
}
.eco-blog-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123,28,187,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,28,187,.06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}
.eco-blog-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  margin-top: 34px;
}
.eco-blog-hero-copy h1 {
  max-width: 880px;
  font-size: clamp(3.1rem, 6vw, 6.3rem);
  line-height: .94;
  letter-spacing: -.055em;
  margin-bottom: 26px;
}
.eco-blog-hero-copy > p {
  max-width: 690px;
  color: var(--eco-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}
.eco-blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.eco-blog-hero-panel {
  position: relative;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(58,154,189,.26), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(251,162,32,.22), transparent 30%),
    linear-gradient(145deg, #16131b, #26172d 58%, #172029);
  box-shadow: 0 34px 80px rgba(35, 22, 43, .23);
  border: 1px solid rgba(255,255,255,.08);
}
.eco-blog-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,.045) 48%, transparent 80%);
  translate: -70% 0;
  transition: translate .8s ease;
}
.eco-blog-hero-panel:hover::after { translate: 70% 0; }
.eco-blog-hero-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 18px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.eco-blog-hero-panel-head i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  color: var(--brand-lime);
  font-size: 1.15rem;
}
.eco-blog-route {
  --route-accent: var(--brand-purple);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  gap: 14px;
  align-items: center;
  padding: 16px 14px;
  margin-top: 10px;
  border-radius: 20px;
  color: #fff !important;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.eco-blog-route:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,.11);
  border-color: color-mix(in srgb, var(--route-accent) 55%, transparent);
}
.eco-blog-route-security { --route-accent: var(--brand-magenta); }
.eco-blog-route-energy { --route-accent: var(--brand-orange); }
.eco-blog-route-tech { --route-accent: var(--brand-cyan); }
.eco-blog-route-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  color: var(--route-accent);
  background: color-mix(in srgb, var(--route-accent) 16%, rgba(255,255,255,.04));
}
.eco-blog-route strong,
.eco-blog-route small { display: block; }
.eco-blog-route strong { font-size: 1rem; margin-bottom: 2px; }
.eco-blog-route small { color: rgba(255,255,255,.62); line-height: 1.4; }
.eco-blog-route > i { color: var(--route-accent); font-size: 1.05rem; transition: transform .25s ease; }
.eco-blog-route:hover > i { transform: translate(3px,-3px); }

.eco-blog-topics-section {
  position: relative;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.eco-blog-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.eco-blog-section-heading .eco-section-copy { margin: 0; max-width: 650px; justify-self: end; }
.eco-blog-topic-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.eco-blog-topic-grid-premium .eco-blog-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
  border-top: 4px solid var(--blog-accent);
}
.eco-blog-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eco-blog-card-number {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--blog-accent);
  padding: 9px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blog-accent) 10%, #fff);
}
.eco-blog-topic-grid-premium .eco-blog-card p { flex: 1; }
.eco-blog-topic-grid-premium .eco-blog-link { margin-top: auto; }

.eco-blog-editorial-section {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(223,7,142,.08), transparent 20%),
    linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.eco-blog-editorial {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(44, 32, 50, .08);
  box-shadow: 0 34px 82px rgba(31, 22, 38, .09);
  overflow: hidden;
}
.eco-blog-editorial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eco-blog-editorial-number,
.eco-blog-story-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-magenta), var(--brand-purple));
}
.eco-blog-editorial-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-magenta);
  font-weight: 800;
  font-size: .9rem;
}
.eco-blog-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--brand-purple) !important;
  font-weight: 800;
}
.eco-blog-inline-cta i { transition: transform .2s ease; }
.eco-blog-inline-cta:hover i { transform: translateX(5px); }
.eco-blog-editorial-visual {
  position: relative;
  min-height: 560px;
  padding: 26px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(223,7,142,.15), transparent 32%),
    linear-gradient(145deg, #17131c, #231827 60%, #17232a);
}
.eco-blog-radar {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  margin: 4px auto 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  background: radial-gradient(circle, rgba(223,7,142,.17), rgba(255,255,255,.02) 48%, transparent 50%);
}
.eco-blog-radar::before,
.eco-blog-radar::after,
.eco-blog-radar span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}
.eco-blog-radar::before { inset: 22%; }
.eco-blog-radar::after { inset: 38%; }
.eco-blog-radar span:nth-child(1) { width: 12px; height: 12px; top: 15%; left: 34%; background: var(--brand-orange); border: 0; box-shadow: 0 0 0 8px rgba(251,162,32,.08); }
.eco-blog-radar span:nth-child(2) { width: 10px; height: 10px; right: 15%; top: 46%; background: var(--brand-cyan); border: 0; box-shadow: 0 0 0 8px rgba(58,154,189,.08); }
.eco-blog-radar span:nth-child(3) { width: 9px; height: 9px; bottom: 18%; left: 24%; background: var(--brand-lime); border: 0; box-shadow: 0 0 0 8px rgba(194,237,80,.08); }
.eco-blog-radar > i { color: #fff; font-size: 2rem; filter: drop-shadow(0 8px 20px rgba(223,7,142,.3)); }
.eco-blog-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.eco-blog-check-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, background .25s ease;
}
.eco-blog-check-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.eco-blog-check-card > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-lime);
  background: rgba(255,255,255,.08);
}
.eco-blog-check-card strong,
.eco-blog-check-card span { display: block; }
.eco-blog-check-card strong { margin-bottom: 4px; font-size: .95rem; }
.eco-blog-check-card span { color: rgba(255,255,255,.65); font-size: .86rem; line-height: 1.45; }

.eco-blog-story-section { background: #fff; }
.eco-blog-story-section-alt { background: linear-gradient(180deg, #fbfcfe, #fff); }
.eco-blog-story {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}
.eco-blog-story-tech { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.eco-blog-story-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255,255,255,.22), transparent 18%),
    linear-gradient(145deg, #f3a21f, #df078e 70%, #7b1cbb);
  box-shadow: 0 28px 70px rgba(223,7,142,.16);
}
.eco-blog-story-visual::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  right: -80px;
  top: -70px;
}
.eco-blog-story-visual-tech {
  background:
    radial-gradient(circle at 18% 14%, rgba(194,237,80,.16), transparent 22%),
    linear-gradient(145deg, #111921, #1e3040 58%, #3a9abd);
  box-shadow: 0 28px 70px rgba(58,154,189,.15);
}
.eco-blog-story-icon {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-size: 1.8rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(9px);
}
.eco-blog-story-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: rgba(255,255,255,.72);
}
.eco-blog-story-visual > strong {
  position: relative;
  z-index: 1;
  max-width: 440px;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.eco-blog-energy-lines,
.eco-blog-tech-grid { position: absolute; inset: 0; pointer-events: none; opacity: .28; }
.eco-blog-energy-lines span { position: absolute; height: 1px; background: rgba(255,255,255,.6); transform-origin: left center; }
.eco-blog-energy-lines span:nth-child(1) { width: 78%; left: 14%; top: 28%; rotate: -16deg; }
.eco-blog-energy-lines span:nth-child(2) { width: 62%; left: 28%; top: 42%; rotate: 18deg; }
.eco-blog-energy-lines span:nth-child(3) { width: 50%; left: 10%; top: 58%; rotate: -30deg; }
.eco-blog-tech-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 34px 34px;
}
.eco-blog-story-number { margin-bottom: 20px; background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta)); }
.eco-blog-story-tech .eco-blog-story-number { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple)); }
.eco-blog-checks-premium > div {
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28, 42, 49, .06);
}
.eco-blog-checks-premium i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 12px;
  color: var(--brand-cyan);
  background: var(--brand-cyan-soft);
}

.eco-blog-principles-section {
  background: linear-gradient(180deg, #fff, #fbf8fc);
}
.eco-blog-principles {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  border: 1px solid rgba(44,32,50,.08);
  background: rgba(255,255,255,.86);
  box-shadow: 0 28px 70px rgba(31,22,38,.07);
}
.eco-blog-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.eco-blog-principles-grid > div {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f7f7fa);
  border: 1px solid rgba(44,32,50,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.eco-blog-principles-grid > div:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(31,22,38,.08); }
.eco-blog-principles-grid span {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(123,28,187,.08);
}
.eco-blog-principles-grid strong { font-size: 1.2rem; margin-bottom: 8px; }
.eco-blog-principles-grid p { margin: 0; color: var(--eco-muted); font-size: .92rem; line-height: 1.55; }

.eco-blog-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
}

body.eco-dark .eco-blog-hero-premium,
body.eco-dark .eco-blog-topics-section,
body.eco-dark .eco-blog-editorial-section,
body.eco-dark .eco-blog-story-section,
body.eco-dark .eco-blog-story-section-alt,
body.eco-dark .eco-blog-principles-section {
  background: #111319;
}
body.eco-dark .eco-blog-editorial,
body.eco-dark .eco-blog-principles,
body.eco-dark .eco-blog-principles-grid > div,
body.eco-dark .eco-blog-checks-premium > div {
  background: #1b1d24;
  border-color: rgba(255,255,255,.07);
}
body.eco-dark .eco-blog-card-number { background: rgba(255,255,255,.06); }
body.eco-dark .eco-blog-principles-grid p,
body.eco-dark .eco-blog-hero-copy > p { color: rgba(255,255,255,.66); }

@media (max-width: 991px) {
  .eco-blog-hero-layout,
  .eco-blog-editorial,
  .eco-blog-story,
  .eco-blog-story-tech,
  .eco-blog-principles {
    grid-template-columns: 1fr;
  }
  .eco-blog-hero-panel { max-width: 720px; }
  .eco-blog-section-heading { grid-template-columns: 1fr; gap: 10px; }
  .eco-blog-section-heading .eco-section-copy { justify-self: start; }
  .eco-blog-topic-grid-premium { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eco-blog-editorial-visual { min-height: auto; }
  .eco-blog-story-tech .eco-blog-story-copy { order: 2; }
  .eco-blog-story-tech .eco-blog-story-visual { order: 1; }
  .eco-blog-cta { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .eco-blog-hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4.25rem); }
  .eco-blog-hero-panel { padding: 18px; border-radius: 24px; }
  .eco-blog-route { grid-template-columns: 40px 1fr 24px; padding: 14px 12px; }
  .eco-blog-route-index { width: 40px; height: 40px; }
  .eco-blog-topic-grid-premium,
  .eco-blog-check-grid,
  .eco-blog-principles-grid { grid-template-columns: 1fr; }
  .eco-blog-editorial { padding: 22px; border-radius: 26px; }
  .eco-blog-editorial-visual { padding: 18px; border-radius: 24px; }
  .eco-blog-radar { width: 165px; height: 165px; }
  .eco-blog-story-visual { min-height: 360px; padding: 24px; border-radius: 26px; }
  .eco-blog-principles { padding: 22px; border-radius: 26px; }
  .eco-blog-principles-grid > div { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-blog-hero-panel::after,
  .eco-blog-route,
  .eco-blog-route > i,
  .eco-blog-check-card,
  .eco-blog-principles-grid > div {
    transition: none !important;
  }
}

/* =========================================================
   HEADER TRANSPARENTE + FOOTER GLOBAL ROBUSTO
   ========================================================= */
.eco-navbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, padding .28s ease, backdrop-filter .28s ease;
}
.eco-navbar.is-scrolled {
  background: rgba(255,255,255,.90) !important;
  border-bottom-color: rgba(27,28,31,.07) !important;
  box-shadow: 0 14px 38px rgba(32,24,39,.10) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
}
body.eco-dark .eco-navbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.eco-dark .eco-navbar.is-scrolled {
  background: rgba(18,17,22,.88) !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}

/* El contenido comienza detrás del header para que la transparencia sea visible. */
.eco-main { padding-top: 0 !important; }
.eco-hero { padding-top: 150px !important; min-height: 100vh; }
.eco-page-hero { padding-top: 140px !important; }
.eco-404 { padding-top: 140px !important; }

/* Footer único presente en todas las páginas. */
.eco-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 26px;
  background:
    radial-gradient(circle at 92% 12%, rgba(223,7,142,.15), transparent 25%),
    radial-gradient(circle at 8% 95%, rgba(58,154,189,.12), transparent 28%),
    linear-gradient(145deg, #121116, #18151d 62%, #141318);
  color: #d8d3dc;
}
.eco-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-magenta), var(--brand-orange), var(--brand-lime), var(--brand-cyan));
}
.eco-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr .9fr;
  gap: 38px;
  align-items: start;
}
.eco-footer-brand img {
  height: 58px;
  width: auto;
  margin-bottom: 16px;
  filter: none !important;
  opacity: 1 !important;
  background: #fff;
  padding: 7px 12px;
  border-radius: 14px;
}
.eco-footer-brand p { max-width: 340px; color: #bdb7c2; line-height: 1.7; }
.eco-footer h3 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
.eco-footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.eco-footer-links li { color: #aaa4af; line-height: 1.55; overflow-wrap: anywhere; }
.eco-footer a { color: #d8d3dc; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.eco-footer a:hover { color: #ef70bd; }
.eco-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #96909b;
  font-size: .9rem;
}
.eco-footer-bottom a { color: #bdb7c2; }

@media (max-width: 991.98px) {
  .eco-navbar:not(.is-scrolled) .navbar-collapse.show {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(27,28,31,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 45px rgba(32,24,39,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  body.eco-dark .eco-navbar:not(.is-scrolled) .navbar-collapse.show {
    background: rgba(24,22,28,.95);
    border-color: rgba(255,255,255,.08);
  }
  .eco-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .eco-hero { padding-top: 118px !important; }
  .eco-page-hero { padding-top: 112px !important; }
  .eco-404 { padding-top: 112px !important; }
  .eco-footer { padding-top: 52px; }
  .eco-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .eco-footer-brand { grid-column: auto; }
  .eco-footer-bottom { flex-direction: column; }
}

/* Servicio de climatización */
.eco-service-card-climate{--card-accent:var(--brand-cyan);--card-soft:linear-gradient(145deg,var(--brand-cyan-soft),var(--brand-green-soft));}
.eco-service-card-climate .eco-service-icon{background:linear-gradient(145deg,var(--brand-cyan-soft),var(--brand-green-soft));color:var(--brand-cyan);}
.eco-service-card-climate:hover::before{background:linear-gradient(90deg,var(--brand-cyan),var(--brand-green));}

/* =========================================================
   HERO INTERACTIVO DE SERVICIOS
   ========================================================= */
.eco-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.eco-hero-carousel {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 13%, rgba(223,7,142,.13), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(58,154,189,.11), transparent 28%),
    radial-gradient(circle at 10% 76%, rgba(159,203,58,.10), transparent 24%),
    linear-gradient(180deg,#fff 0%,#fbfaff 54%,#f7fafc 100%);
}
.eco-hero-carousel .row { min-height: min(730px, calc(100vh - 150px)); }
.eco-hero-carousel-copy { position: relative; z-index: 2; max-width: 720px; }
.eco-hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 690px;
}
.eco-hero-carousel .eco-kicker { transition: color .28s ease, border-color .28s ease, background .28s ease; }
.eco-hero-kicker-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hero-accent, var(--brand-magenta));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--hero-accent, var(--brand-magenta)) 12%, transparent);
  transition: background .28s ease, box-shadow .28s ease;
}
.eco-hero-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 72px;
  justify-content: flex-end;
  color: #86808a;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.eco-hero-counter strong { color: var(--hero-accent, var(--brand-magenta)); font-size: 1.03rem; }
.eco-hero-carousel h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5.7vw, 5.65rem);
  transition: opacity .18s ease, transform .18s ease;
}
.eco-hero-carousel .eco-hero-copy {
  max-width: 660px;
  min-height: 3.5em;
  transition: opacity .18s ease, transform .18s ease;
}
.eco-hero-carousel-copy.is-changing h1,
.eco-hero-carousel-copy.is-changing .eco-hero-copy,
.eco-hero-carousel-copy.is-changing .eco-kicker {
  opacity: 0;
  transform: translateY(10px);
}
.eco-hero-carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
  max-width: 720px;
}
.eco-hero-tab {
  appearance: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(45,35,54,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #504957;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(44,30,54,.045);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.eco-hero-tab:hover { transform: translateY(-2px); border-color: rgba(123,28,187,.20); box-shadow: 0 12px 28px rgba(44,30,54,.08); }
.eco-hero-tab:focus-visible { outline: 3px solid rgba(123,28,187,.22); outline-offset: 3px; }
.eco-hero-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg,var(--hero-accent,var(--brand-purple)),color-mix(in srgb,var(--hero-accent,var(--brand-purple)) 74%,#141016));
  box-shadow: 0 14px 32px color-mix(in srgb,var(--hero-accent,var(--brand-purple)) 23%,transparent);
}
.eco-hero-tab-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.eco-tab-security { background: var(--brand-magenta); }
.eco-tab-solar { background: var(--brand-orange); }
.eco-tab-tech { background: var(--brand-cyan); }
.eco-tab-computing { background: var(--brand-purple); }
.eco-tab-climate { background: var(--brand-green); }
.eco-hero-tab.is-active .eco-hero-tab-dot { background: #fff; }

.eco-hero-carousel-visual {
  --hero-accent: var(--brand-magenta);
  max-width: 690px;
  padding: 18px;
  border-radius: 42px;
  overflow: visible;
}
.eco-hero-media-frame {
  position: relative;
  overflow: hidden;
  min-height: 485px;
  border-radius: 31px;
  background: linear-gradient(145deg,#fff,#f5f2fa);
}
.eco-hero-media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb,var(--hero-accent) 18%,transparent), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(58,154,189,.08), transparent 26%);
  pointer-events: none;
}
.eco-hero-carousel-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 485px;
  min-height: 0;
  object-fit: contain;
  filter: none;
  transition: opacity .24s ease, transform .35s ease;
}
.eco-hero-carousel-visual.is-changing img { opacity: .08; transform: scale(.975); }
.eco-hero-carousel-visual:hover img { transform: scale(1.015); filter: none; }
.eco-hero-carousel-visual .eco-visual-badge {
  left: -22px;
  bottom: 74px;
  width: min(285px, 48%);
  max-width: none;
  padding: 17px 18px;
  border-color: color-mix(in srgb,var(--hero-accent) 22%,#e7e0eb);
  transition: opacity .18s ease, transform .18s ease, border-color .28s ease;
}
.eco-hero-carousel-visual .eco-visual-badge::before { background: var(--hero-accent); box-shadow: 0 0 0 5px color-mix(in srgb,var(--hero-accent) 12%,transparent); }
.eco-hero-carousel-visual .eco-visual-badge strong { display: inline; font-weight: 800; }
.eco-hero-carousel-visual .eco-visual-badge small { margin-top: 7px; line-height: 1.45; }
.eco-hero-carousel-visual.is-changing .eco-visual-badge { opacity: 0; transform: translateY(8px); }
.eco-hero-carousel-controls {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(45,35,54,.09);
  box-shadow: 0 12px 30px rgba(39,25,48,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eco-hero-arrow {
  appearance: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #231d27;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(36,25,43,.08);
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.eco-hero-arrow:hover { color: #fff; background: var(--hero-accent); transform: translateY(-1px); }
.eco-hero-arrow:focus-visible { outline: 3px solid color-mix(in srgb,var(--hero-accent) 24%,transparent); outline-offset: 2px; }
.eco-hero-progress {
  position: relative;
  width: 78px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e5eb;
}
.eco-hero-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--hero-accent);
  transform-origin: left center;
  transition: width .35s ease, background .25s ease;
}
.eco-hero-carousel[data-hero-theme="solar"] { --hero-accent: var(--brand-orange); }
.eco-hero-carousel[data-hero-theme="technology"] { --hero-accent: var(--brand-cyan); }
.eco-hero-carousel[data-hero-theme="computing"] { --hero-accent: var(--brand-purple); }
.eco-hero-carousel[data-hero-theme="climate"] { --hero-accent: var(--brand-green); }
.eco-hero-carousel[data-hero-theme="security"] { --hero-accent: var(--brand-magenta); }
.eco-hero-carousel[data-hero-theme] .eco-highlight {
  background-image: linear-gradient(90deg,var(--hero-accent),color-mix(in srgb,var(--hero-accent) 60%,var(--brand-purple)));
}
.eco-hero-carousel[data-hero-theme] .eco-btn-primary {
  background: linear-gradient(135deg,var(--hero-accent),color-mix(in srgb,var(--hero-accent) 70%,#62158f));
  border-color: transparent;
  box-shadow: 0 14px 32px color-mix(in srgb,var(--hero-accent) 20%,transparent);
}
body.eco-dark .eco-hero-carousel {
  background:
    radial-gradient(circle at 86% 13%, rgba(223,7,142,.10), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(58,154,189,.10), transparent 28%),
    linear-gradient(180deg,#121116 0%,#17151b 100%);
}
body.eco-dark .eco-hero-tab { background: rgba(255,255,255,.055); color: #d3ced7; border-color: rgba(255,255,255,.09); }
body.eco-dark .eco-hero-media-frame { background: linear-gradient(145deg,#211d25,#17191d); }
body.eco-dark .eco-hero-counter { color: #a9a2ae; }
body.eco-dark .eco-hero-carousel-controls { background: rgba(24,22,28,.88); border-color: rgba(255,255,255,.08); }
body.eco-dark .eco-hero-arrow { background: rgba(255,255,255,.08); color: #fff; }
body.eco-dark .eco-hero-progress { background: rgba(255,255,255,.12); }

@media (max-width: 991.98px) {
  .eco-hero-carousel { min-height: auto; }
  .eco-hero-carousel .row { min-height: auto; }
  .eco-hero-carousel-copy { max-width: none; }
  .eco-hero-carousel h1 { font-size: clamp(2.9rem, 9vw, 5rem); }
  .eco-hero-carousel-visual { margin: 46px auto 0; }
  .eco-hero-media-frame { min-height: 430px; }
  .eco-hero-carousel-visual img { height: 430px; }
}
@media (max-width: 767.98px) {
  .eco-hero-meta-row { align-items: flex-start; }
  .eco-hero-carousel h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .eco-hero-carousel-tabs { gap: 8px; }
  .eco-hero-tab { padding: 9px 11px; font-size: .78rem; }
  .eco-hero-media-frame { min-height: 330px; border-radius: 24px; }
  .eco-hero-carousel-visual { padding: 11px; border-radius: 30px; }
  .eco-hero-carousel-visual img { height: 330px; }
  .eco-hero-carousel-visual .eco-visual-badge { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 12px; }
  .eco-hero-carousel-controls { position: relative; right: auto; bottom: auto; width: max-content; margin: 13px 0 0 auto; }
}
@media (max-width: 480px) {
  .eco-hero-counter { min-width: auto; }
  .eco-hero-carousel-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eco-hero-tab { justify-content: center; width: 100%; }
  .eco-hero-tab:last-child { grid-column: 1 / -1; }
  .eco-hero-media-frame { min-height: 285px; }
  .eco-hero-carousel-visual img { height: 285px; }
  .eco-hero-progress { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-hero-carousel-copy *,
  .eco-hero-carousel-visual *,
  .eco-hero-tab,
  .eco-hero-arrow { transition: none !important; animation: none !important; }
}

/* =========================================================
   Portafolio real interactivo
   ========================================================= */
.eco-portfolio-real{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fbf9fe 100%)}
.eco-portfolio-real::before{content:"";position:absolute;width:480px;height:480px;right:-220px;top:120px;border-radius:50%;background:radial-gradient(circle,rgba(223,7,142,.08),transparent 70%);pointer-events:none}
.eco-portfolio-head{max-width:780px}
.eco-portfolio-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:36px 0 32px}
.eco-portfolio-project{position:relative;min-height:370px;border-radius:28px;overflow:hidden;background:#161319;box-shadow:0 24px 60px rgba(18,17,22,.13);isolation:isolate}
.eco-portfolio-project img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.eco-portfolio-project-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,12,16,.05) 20%,rgba(13,12,16,.9) 100%);z-index:1}
.eco-portfolio-project-content{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:28px;color:#fff}
.eco-portfolio-project-content span{display:inline-flex;margin-bottom:10px;padding:7px 11px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.eco-portfolio-project-content h3{color:#fff;font-size:clamp(1.3rem,2vw,1.65rem);margin:0 0 8px}
.eco-portfolio-project-content p{color:rgba(255,255,255,.78);margin:0 0 17px;line-height:1.55}
.eco-project-filter-link{border:0;background:transparent;color:#fff;font:inherit;font-weight:800;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:5px}
.eco-portfolio-project:hover img{transform:scale(1.055)}
.eco-portfolio-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px;padding:8px;border:1px solid rgba(27,23,32,.08);border-radius:20px;background:rgba(255,255,255,.78);backdrop-filter:blur(14px);width:max-content;max-width:100%}
.eco-portfolio-filter{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 15px;border:0;border-radius:14px;background:transparent;color:#5f5964;font:inherit;font-weight:800;cursor:pointer;transition:.25s ease}
.eco-portfolio-filter:hover,.eco-portfolio-filter.is-active{color:#fff;background:linear-gradient(135deg,var(--brand-purple),var(--brand-magenta));box-shadow:0 10px 24px rgba(123,28,187,.18)}
.eco-portfolio-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.eco-portfolio-media{display:flex;flex-direction:column;text-align:left;border:1px solid rgba(25,22,29,.08);border-radius:20px;padding:0;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(26,22,30,.07);cursor:pointer;transition:transform .28s ease,box-shadow .28s ease,opacity .25s ease}
.eco-portfolio-media[hidden]{display:none!important}
.eco-portfolio-media:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(26,22,30,.12)}
.eco-portfolio-thumb{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#eee}
.eco-portfolio-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.eco-portfolio-media:hover .eco-portfolio-thumb img{transform:scale(1.045)}
.eco-media-action{position:absolute;right:12px;bottom:12px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(18,17,22,.78);color:#fff;backdrop-filter:blur(8px);font-size:1rem}
.eco-media-play{width:50px;height:50px;font-size:1.35rem;background:linear-gradient(135deg,var(--brand-purple),var(--brand-magenta))}
.eco-video-badge{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:999px;background:rgba(18,17,22,.78);color:#fff;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.eco-portfolio-meta{display:grid;gap:4px;padding:15px 16px 17px}
.eco-portfolio-meta small{color:var(--brand-purple);font-weight:800;text-transform:uppercase;letter-spacing:.07em;font-size:.7rem}
.eco-portfolio-meta strong{color:#1b181d;line-height:1.35}
.eco-media-dialog{width:min(1000px,calc(100% - 28px));max-width:none;border:0;padding:0;border-radius:24px;background:#111;color:#fff;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.eco-media-dialog::backdrop{background:rgba(8,7,10,.82);backdrop-filter:blur(6px)}
.eco-media-dialog-shell{position:relative;padding:18px}
.eco-media-dialog-close{position:absolute;right:26px;top:26px;z-index:5;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.58);color:#fff;display:grid;place-items:center;cursor:pointer}
.eco-media-dialog-stage{display:grid;place-items:center;min-height:220px;max-height:72vh;overflow:hidden;border-radius:16px;background:#050505}
.eco-media-dialog-stage img,.eco-media-dialog-stage video{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;object-fit:contain}
.eco-media-dialog-stage video{width:100%}
.eco-media-dialog-caption{padding:15px 4px 7px;font-weight:800;font-size:1rem}
.eco-media-dialog-nav{display:flex;align-items:center;justify-content:center;gap:16px;padding-top:8px}
.eco-media-dialog-nav button{width:44px;height:44px;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer}
.eco-media-dialog-nav span{min-width:58px;text-align:center;color:rgba(255,255,255,.7);font-size:.88rem}
body.eco-dark .eco-portfolio-real{background:linear-gradient(180deg,#111319,#17131b)}
body.eco-dark .eco-portfolio-toolbar,body.eco-dark .eco-portfolio-media{background:#1c1b20;border-color:rgba(255,255,255,.08)}
body.eco-dark .eco-portfolio-meta strong{color:#fff}
@media(max-width:991px){.eco-portfolio-projects{grid-template-columns:1fr 1fr}.eco-portfolio-project:last-child{grid-column:1/-1;min-height:320px}.eco-portfolio-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.eco-portfolio-projects{grid-template-columns:1fr}.eco-portfolio-project:last-child{grid-column:auto}.eco-portfolio-project{min-height:330px}.eco-portfolio-toolbar{width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start}.eco-portfolio-filter{white-space:nowrap}.eco-portfolio-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eco-media-dialog-shell{padding:10px}.eco-media-dialog-close{right:16px;top:16px}}
@media(max-width:480px){.eco-portfolio-media-grid{grid-template-columns:1fr}.eco-portfolio-thumb{aspect-ratio:16/10}}
@media(prefers-reduced-motion:reduce){.eco-portfolio-project img,.eco-portfolio-media,.eco-portfolio-thumb img{transition:none!important}}

/* Ecoplas Tools: acceso desde inicio */
.eco-tools-feature {padding-top:16px!important;}
.eco-tools-promo {display:grid;grid-template-columns:minmax(0,1.02fr) minmax(320px,.98fr);align-items:center;gap:28px;background:linear-gradient(125deg,#17131f,#24172f 58%,#1e2538);color:#fff;border-radius:34px;padding:clamp(28px,5vw,54px);overflow:hidden;position:relative;box-shadow:0 26px 62px rgba(27,17,43,.18);}
.eco-tools-promo::before {content:"";position:absolute;width:320px;height:320px;right:-110px;top:-170px;border-radius:50%;background:radial-gradient(circle,rgba(223,7,142,.28),transparent 70%);pointer-events:none;}
.eco-tools-promo::after {content:"";position:absolute;width:260px;height:260px;left:-100px;bottom:-140px;border-radius:50%;background:radial-gradient(circle,rgba(58,154,189,.18),transparent 70%);pointer-events:none;}
.eco-tools-promo > * {position:relative;z-index:1;}
.eco-tools-promo-copy {max-width:640px;}
.eco-tools-promo-kicker {display:inline-flex;align-items:center;gap:10px;color:#f6bce8;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:800;}
.eco-tools-promo-kicker::before {content:"";width:9px;height:9px;border-radius:50%;background:#f6bce8;box-shadow:0 0 0 7px rgba(246,188,232,.14);}
.eco-tools-promo h2 {color:#fff;font-size:clamp(1.95rem,3.7vw,3rem);line-height:1.12;max-width:16ch;margin:16px 0 14px;}
.eco-tools-promo p {color:#ddd4e5;max-width:60ch;margin:0 0 22px;line-height:1.72;}
.eco-tools-promo-pills {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px;}
.eco-tools-promo-pills span {display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:.85rem;font-weight:700;color:#f3eef7;backdrop-filter:blur(8px);}
.eco-tools-promo-actions {display:flex;flex-wrap:wrap;gap:12px;}
.eco-tools-promo-panel {padding:22px;border-radius:28px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);}
.eco-tools-promo-panel-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;color:#ece5f2;}
.eco-tools-promo-panel-head strong {font-size:1rem;}
.eco-tools-promo-panel-head span {font-size:.85rem;color:#cbbfd7;}
.eco-tools-promo-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.eco-tools-promo-grid article {padding:16px 16px 15px;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);min-height:126px;display:flex;flex-direction:column;gap:8px;}
.eco-tools-promo-grid small {font-size:.78rem;font-weight:800;letter-spacing:.08em;color:#f3c567;}
.eco-tools-promo-grid strong {font-size:1rem;line-height:1.3;color:#fff;}
.eco-tools-promo-grid span {font-size:.88rem;line-height:1.55;color:#d8cfdf;}
.eco-tools-promo-panel-foot {display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.eco-tools-promo-panel-foot span {display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);font-size:.78rem;font-weight:700;color:#efe9f4;}
.eco-tools-promo-panel-foot span::before {content:"";width:7px;height:7px;border-radius:50%;background:#9dca55;}
@media (max-width:991.98px){.eco-tools-promo{grid-template-columns:1fr}.eco-tools-promo-panel{max-width:760px}}
@media (max-width:700px){.eco-tools-promo{padding:26px 22px;border-radius:26px}.eco-tools-promo-grid{grid-template-columns:1fr}.eco-tools-promo-panel-head{flex-direction:column;align-items:flex-start}.eco-tools-promo-actions{flex-direction:column;align-items:stretch}.eco-tools-promo-actions .eco-btn{justify-content:center;width:100%}}
