
/* ==========================================
   APPINITDEV — SECCIÓN ECOSISTEMA
   ========================================== */

.aid-ecosystem,
.aid-ecosystem * {
  box-sizing: border-box;
}

.aid-ecosystem {
  --aid-primary: #2563eb;
  --aid-text: #172033;
  --aid-muted: #64748b;
  --aid-line: #e2e8f0;

  background: #f8fafc;
  color: var(--aid-text);
  padding: 72px 20px;
  font-family: inherit;
}

.aid-ecosystem__container {
  max-width: 1240px;
  margin: 0 auto;
}

.aid-ecosystem__heading {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}

.aid-ecosystem__eyebrow {
  display: inline-block;
  color: var(--aid-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin-bottom: 12px;
}

.aid-ecosystem__heading h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.7px;
  margin: 0 0 14px;
  color: var(--aid-text);
}

.aid-ecosystem__heading p {
  color: var(--aid-muted);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
}

.aid-ecosystem__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

/* BUSCADOR */

.aid-ecosystem__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 580px;
  background: #fff;
  border: 1px solid var(--aid-line);
  border-radius: 14px;
  padding: 0 16px;
  transition: border-color .2s, box-shadow .2s;
}

.aid-ecosystem__search:focus-within {
  border-color: var(--aid-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.aid-ecosystem__search-icon {
  font-size: 26px;
  color: var(--aid-muted);
}

.aid-ecosystem__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 0;
  font: inherit;
  font-size: 14px;
  color: var(--aid-text);
}

/* FILTROS */

.aid-ecosystem__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.aid-filter {
  border: 1px solid var(--aid-line);
  border-radius: 100px;
  padding: 9px 16px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.aid-filter:hover,
.aid-filter:focus-visible {
  border-color: var(--aid-primary);
  color: var(--aid-primary);
}

.aid-filter.active {
  background: var(--aid-primary);
  color: #fff;
  border-color: var(--aid-primary);
}

/* TARJETAS */

.aid-ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.aid-resource {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--aid-line);
  border-radius: 16px;
  text-decoration: none !important;
  color: var(--aid-text) !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.aid-resource:hover,
.aid-resource:focus-visible {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.aid-resource__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eff6ff;
  font-size: 23px;
}

.aid-resource__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aid-resource__body strong {
  color: var(--aid-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.aid-resource__body small {
  color: var(--aid-muted);
  font-size: 13px;
  line-height: 1.55;
}

.aid-resource__arrow {
  font-size: 17px;
  line-height: 1;
  color: #94a3b8;
  transition: color .2s;
}

.aid-resource:hover .aid-resource__arrow {
  color: var(--aid-primary);
}

/* MENSAJES */

.aid-ecosystem__empty {
  text-align: center;
  padding: 32px;
  color: var(--aid-muted);
}

.aid-ecosystem__count {
  margin: 24px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--aid-muted);
}

.aid-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.aid-resource[hidden],
.aid-ecosystem__empty[hidden] {
  display: none !important;
}

/* TABLETS */

@media (max-width: 1000px) {
  .aid-ecosystem__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MÓVILES */

@media (max-width: 640px) {
  .aid-ecosystem {
    padding: 48px 16px;
  }

  .aid-ecosystem__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .aid-resource {
    padding: 17px 15px;
  }

  .aid-ecosystem__filters {
    gap: 6px;
  }

  .aid-filter {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .aid-ecosystem *,
  .aid-ecosystem *::before,
  .aid-ecosystem *::after {
    transition: none !important;
  }
}



.ie-panel { display: none; background: #212121; padding: 10px 0; box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3); clear: both; text-align:center; position: relative; z-index: 1; } 
        html.ie-10 .ie-panel, html.lt-ie-10 .ie-panel { display: block; }
        
        .rd-navbar-inner {
          display: flex !important;
          flex-direction: row !important;
          justify-content: space-between !important;
          align-items: center !important;
        }
        .rd-navbar-panel {
          width: auto !important;
        }
        .rd-navbar-nav-wrap {
          margin-top: 0 !important;
        }
        #ui-to-top {
          display: none !important;
        }
        .ie-panel { display: none; background: #212121; padding: 10px 0; box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3); clear: both; text-align:center; position: relative; z-index: 1; } 
        html.ie-10 .ie-panel, html.lt-ie-10 .ie-panel { display: block; }

        /* Estilos profesionales para las tarjetas de aplicaciones */
        .app-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            border: 1px solid #f0f0f0;
        }
        .app-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }
        .app-badge-container {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 6px;
        }
        .app-badge {
            display: inline-block;
            background-color: #f1f5f9;
            color: #0f172a;
            font-weight: 600;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 20px;
        }
        .app-title {
            font-size: 18px;
            font-weight: 700;
            color: #1e293b;
            margin: 0 0 4px 0;
            line-height: 1.3;
        }
        .app-desc {
            color: #64748b;
            font-size: 14px;
            line-height: 1.5;
            margin-top: 15px;
            margin-bottom: 20px;
        }
        .btn-playstore {
            display: inline-block;
            width: 100%;
            text-align: center;
            background-color: #01875f; /* Color oficial Google Play */
            color: #ffffff !important;
            font-weight: 600;
            padding: 10px 16px;
            border-radius: 8px;
            text-decoration: none;
            transition: background-color 0.2s ease;
        }
        .btn-playstore:hover {
          background-color: #fff;
          border: 2px solid #01875f;
          color: #01875f !important;
        }
        .app-card img {
            transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .app-card:hover img {
            transform: scale(1.12);
        }
        .rd-navbar-inner {
          display: flex !important;
          flex-direction: row !important;
          justify-content: space-between !important;
          align-items: center !important;
        }
        .rd-navbar-panel {
          width: auto !important;
        }
        .rd-navbar-nav-wrap {
          margin-top: 0 !important;
        }
        .btn-details {
          display: inline-block;
          width: 100%;
          text-align: center;
          background-color: #f1f5f9;
          color: #0f172a !important;
          font-weight: 600;
          padding: 10px 16px;
          border-radius: 8px;
          text-decoration: none;
          transition: background-color 0.2s ease;
          margin-top: 10px;
        }
        .btn-details:hover {
            background-color: #e2e8f0;
        }
        .app-genre-badge {
            background-color: #e0f2fe;
            color: #0369a1;
        }

        /* Estilos para el Menú Desplegable de Filtro (Opción 1) */
        .filter-select {
            background-color: #f1f5f9;
            color: #334155;
            border: 1px solid #e2e8f0;
            padding: 10px 24px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            outline: none;
            transition: all 0.2s ease;
            max-width: 100%;
        }
        .filter-select:focus {
            border-color: #01875f;
            box-shadow: 0 0 0 3px rgba(1, 135, 95, 0.15);
        }
        /* Estilos para el Menú Desplegable Llamativo */
        .filter-select-wrapper {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Alineado a la izquierda */
            gap: 12px;
            margin-bottom: 35px;
            flex-wrap: wrap;
        }

        .filter-select-label {
            font-weight: 700;
            font-size: 15px;
            color: #1e293b;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .select-custom-container {
            position: relative;
            display: inline-block;
        }

        .filter-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-color: #ffffff;
            color: #01875f;
            border: 2px solid #01875f;
            padding: 10px 42px 10px 20px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            outline: none;
            transition: all 0.25s ease;
            box-shadow: 0 4px 14px rgba(1, 135, 95, 0.15);
            /* Flecha verde personalizada */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2301875f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
        }

        /* Efecto Hover: Invierte colores al pasar el cursor */
        .filter-select:hover {
            background-color: #01875f;
            color: #ffffff;
            box-shadow: 0 6px 18px rgba(1, 135, 95, 0.3);
            /* Flecha blanca al hacer hover */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        }

        .filter-select:focus {
            box-shadow: 0 0 0 4px rgba(1, 135, 95, 0.25);
        }
        /* Estilos modernos y profesionales para los botones del Hero */
        .hero-buttons-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }

        .hero-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.05) !important;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            color: #ffffff !important;
            font-weight: 600;
            font-size: 13px;
            padding: 10px 18px;
            border-radius: 50px; /* Estilo píldora */
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .hero-btn:hover {
            background-color: #01875f !important; /* Color verde oficial de la marca */
            border-color: #01875f !important;
            color: #ffffff !important;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(1, 135, 95, 0.4);
        }

        .hero-btn i {
            margin-right: 8px;
            font-size: 14px;
        }