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

  .ecotec-rutas-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }

  .ecotec-rutas-card {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
  }
  .ecotec-rutas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .ecotec-rutas-num {
    background: #0049a4;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 28px;
  }

  .ecotec-rutas-title {
    color: #0049a4;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px 0;
  }

  .ecotec-rutas-sub {
    /* Era el cian de marca: sobre la tarjeta blanca da 2,3:1 y no se lee.
       La propia norma del portal lo dice —el cian no se usa para texto
       sobre blanco— y aquí se le escapaba al componente de rutas. En el
       azul institucional da 8,4:1. Visto el 2026-09-10 en la portada. */
    color: #0049a4;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 24px 0;
  }

  .ecotec-rutas-divider {
    border-top: 1px solid #dde5ea;
    margin: auto 0 20px 0;
  }

  .ecotec-rutas-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ecotec-rutas-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #606060;
    font-size: 15px;
  }
  .ecotec-rutas-time svg { width: 18px; height: 18px; }

  .ecotec-rutas-link {
    color: #0049a4;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
  }

  /* Modal */
  .ecotec-rutas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 60, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
  }
  .ecotec-rutas-overlay.is-open { display: flex; }

  .ecotec-rutas-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }

  .ecotec-rutas-mhead {
    padding: 22px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 10px 16px 0 0;
  }

  .ecotec-rutas-mtitle {
    color: #0049a4;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
  }

  .ecotec-rutas-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #606060;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }
  .ecotec-rutas-close:hover { background: #f0f0f0; }

  .ecotec-rutas-mbody { padding: 24px 28px 28px; }

  .ecotec-rutas-vwrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 18px;
  }
  .ecotec-rutas-vwrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
  }

  .ecotec-rutas-cvtitle {
    color: #0049a4;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px 0;
  }

  .ecotec-rutas-phead {
    color: #34496b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
  }

  .ecotec-rutas-plist {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ecotec-rutas-pitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f0f0f0;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
    font-family: inherit;
  }
  .ecotec-rutas-pitem:hover {
    background: #eaf1f8;
    border-color: #dde5ea;
  }
  .ecotec-rutas-pitem.is-active {
    background: #eaf1f8;
    border-color: #2bbae2;
  }

  .ecotec-rutas-picon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0049a4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ecotec-rutas-pitem.is-active .ecotec-rutas-picon { background: #2bbae2; }
  .ecotec-rutas-picon svg { width: 14px; height: 14px; }

  .ecotec-rutas-pinfo { flex: 1; min-width: 0; }
  .ecotec-rutas-ptitle {
    display: block;
    color: #0049a4;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .ecotec-rutas-pdur {
    display: block;
    color: #606060;
    font-size: 12px;
  }

  body.ecotec-rutas-lock { overflow: hidden; }