/* ============================================================
   Ecosistema – estilos compartidos para todas las sub-páginas
   Diseño "liquid glass": nav isla flotante + card flotante con
   sub-cards azul claro translúcido, fiel a la referencia visual.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy:        #0A1330;
  --navy-deep:   #060B1D;
  --blue:        #2B4CE0;
  --blue-dark:   #1633A8;
  --cyan:        #00C8FF;
  --pink:        #FF1A6B;
  --white:       #FFFFFF;
  --card-sub-bg: #CDD4F380;               /* --gradients-primary-10050 */
  --card-sub-bg-solid: #CDD4F3;
  --border:      rgba(255,255,255,.14);
  --glass-bg:    rgba(18,28,64,.55);
  --glass-border:rgba(255,255,255,.16);

  /* Anchos WIDE: el layout abarca casi todo el viewport (fiel al diseño en 2K).
     El cap alto evita que en 4K se estire sin control. */
  --w-nav:    2160px;   /* isla de navegación  ~95% */
  --w-panel:  2280px;   /* contenedores/paneles ~97% */
  --w-metrics:1560px;   /* barra de métricas    ~80% */
  --pad-nav:   2.5%;
  --pad-panel: 1.5%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(60% 45% at 50% 0%, #123A8F 0%, transparent 60%),
    linear-gradient(180deg, #060B1D 0%, #0A1330 45%, #0A1330 100%);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── NAV: isla flotante liquid-glass ── */
.eco-nav-wrap {
  position: sticky; top: 16px; z-index: 100;
  padding: 0 var(--pad-nav);
}
.eco-nav {
  max-width: var(--w-nav);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 12px 0 20px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.eco-nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.eco-nav-brand svg { width: 34px; height: 15px; display: block; color: #fff; }
.eco-nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.eco-nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.62); transition: color .2s; white-space: nowrap; }
.eco-nav-links a:hover, .eco-nav-links a.is-active { color: #fff; font-weight: 700; }
.eco-nav-links .has-chevron { display: flex; align-items: center; gap: 5px; }
.eco-nav-links .mk-chevron { width: 9px; height: 6px; }
.eco-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 13px; font-weight: 700;
  transition: opacity .2s; flex-shrink: 0;
}
.eco-nav-cta:hover { opacity: .88; }

/* ── BACK LINK ── */
.eco-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65);
  padding: 20px 40px 0;
  transition: color .2s;
}
.eco-back:hover { color: #fff; }

/* ── HERO ── */
.eco-hero {
  text-align: center;
  padding: 56px 40px 44px;
}
.eco-hero-title {
  font-size: clamp(36px,6vw,72px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: 1;
}
.eco-hero-subtitle {
  margin-top: 18px;
  font-size: clamp(15px,2vw,22px);
  font-weight: 500;
  color: rgba(255,255,255,.75);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.4;
}
.eco-hero-subtitle strong { color: #fff; }

/* ── SOLUTIONS CARD: contenedor flotante, más ancho que el nav ── */
.eco-solutions-wrap {
  margin: 0 auto 72px;
  max-width: var(--w-panel);   /* más ancho que el nav → "flota" sobresaliendo */
  padding: 0 var(--pad-panel);
}
.eco-solutions-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 52px 56px 56px;
  color: #1a2035;
  box-shadow: 0 30px 70px rgba(6,15,50,.35), 0 4px 14px rgba(6,15,50,.15);
}
.eco-solutions-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: end;
}
.eco-solutions-header h2 {
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.08;
}
.eco-solutions-header p {
  font-size: clamp(17px,1.9vw,26px);
  font-weight: 400;
  color: #55607A;
  line-height: 1.32;
}
.eco-solutions-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}
.eco-sol-card {
  background: var(--card-sub-bg);   /* #CDD4F380 — azul claro translúcido exacto */
  border-radius: 18px;
  padding: 26px 22px 26px;
  display: flex; flex-direction: column; gap: 24px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  color: inherit;
}
.eco-sol-card:hover {
  transform: translateY(-4px);
  background: #BFC9F2A6;
  box-shadow: 0 14px 30px rgba(43,76,224,.2);
}
.eco-sol-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.eco-sol-icon img { width: 40px; height: 40px; display: block; }
.eco-sol-label {
  font-size: 14px; font-weight: 800;
  letter-spacing: .01em; text-transform: uppercase;
  color: #12172B;
}

/* ── FOOTER ── */
.eco-footer {
  background: var(--navy-deep);
  padding: 56px 80px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.eco-footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.eco-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.eco-footer-brand img { display: block; height: 31px; width: auto; }
.eco-footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing:.05em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.eco-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.eco-footer-col li a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.eco-footer-col li a:hover { color: #fff; }
.eco-footer-social { display: flex; flex-direction: column; gap: 10px; }
.eco-footer-social a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.eco-footer-social a:hover { color: #fff; }
.eco-footer-social svg { width: 18px; height: 18px; }
.eco-footer-bottom { border-top: 1px solid var(--border); padding-top: 8px; }
.eco-footer-marquee {
  width: 100%; height: auto; display: block;
  margin-bottom: -6%;             /* recorta el vector para que se vea "cortado" abajo, como la referencia */
}
.eco-footer-marquee img { width: 100%; height: auto; display: block; }

/* ── MÉTRICAS BAR ── */
.eco-metrics-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 18px 34px;
  max-width: var(--w-metrics);
  width: calc(100% - 2 * var(--pad-panel));
  margin: 0 auto 48px;
}
.eco-metric-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.eco-metric-item:last-child { border-right: none; }
.eco-metric-icon { width: 22px; height: 22px; flex-shrink: 0; }
.eco-metric-value { font-size: 18px; font-weight: 900; color: #fff; }
.eco-metric-label { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; }

/* ── LOADING/ERROR ── */
.eco-loading { text-align:center; padding: 60px; opacity:.6; font-size:15px; }
.eco-error   { text-align:center; padding: 60px; color: #ff6b6b; font-size:15px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .eco-solutions-header { grid-template-columns: 1fr; gap: 12px; }
  .eco-solutions-grid   { grid-template-columns: repeat(2,1fr); }
  .eco-footer-inner     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .eco-hero { padding: 40px 20px 32px; }
  .eco-solutions-card { padding: 32px 24px 36px; border-radius: 22px; }
  .eco-nav { padding: 0 10px 0 16px; }
  .eco-nav-links { gap: 18px; }
  .eco-back { padding: 16px 20px 0; }
}
@media (max-width: 640px) {
  .eco-nav-links { display: none; }
  .eco-solutions-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .eco-footer-inner   { grid-template-columns: 1fr; }
  .eco-metrics-bar    { border-radius: 16px; }
  .eco-metric-item    { border-right: none; padding: 4px 12px; }
  .eco-nav-wrap { top: 10px; padding: 0 10px; }
  .eco-solutions-wrap { padding: 0 10px; }
}
