 
:root {
  --bg:           #ffffff;
  --bg-panel:     #120d30;
  --bg-card:      #ffffff;
  --accent:       #8b5cf6;
  --accent-dark:  #6d28d9;
  --accent-glow:  rgba(139, 92, 246, 0.35);
  --text-light:   #ffffff;
  --text-muted:   rgba(255,255,255,0.55);
  --text-dark:    #1e1b3a;
  --border:       rgba(255,255,255,0.10);
  --filter-active-bg: #7c3aed;
  --radius-card:  14px;
  --radius-tag:   6px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.18);
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --sidebar-w:    270px;
}

/*
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-light);
  min-height: 100vh;
}*/

 
.hero {
  text-align: center;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, #0f0825 0%, var(--bg) 100%);
  position: relative;
  overflow: visible;
  min-height: clamp(160px, 25vw, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

 
 

.hero::before {
  content: 'ECOSISTEMA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 5rem) !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  line-height: 1;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  margin-top: 0;
}
 
.search-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 1.8rem;
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 640px;
}
.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 50px;
  border: none;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.search-box input::placeholder { color: #9ca3af; }
.search-box input:focus { box-shadow: 0 0 0 3px var(--accent-glow); }

 
.layout {
  display: flex;
  gap: 0;
  padding: 0 1.5rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
  align-items: flex-start;
}

 
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 1.2rem 0.9rem;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0.5rem 0.4rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font);
  transition: background 0.15s;
  gap: 8px;
  text-align: left;
}
.filter-btn:hover { background: rgba(255,255,255,0.07); }
.filter-btn.active { background: var(--filter-active-bg); }

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-icon {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  flex-shrink: 0;
}
.filter-count {
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.3); }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.8rem 0;
}

/* Direccion select */
.dir-select-wrap { padding: 0 0.3rem; }
.dir-select-wrap label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-top: 4px;
}
.dir-select-wrap select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  padding: 9px 32px 9px 12px;
  font-size: 0.85rem;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
}
.dir-select-wrap select:focus { border-color: var(--accent); }
.dir-select-wrap select option { background: #1e1b3a; color: #fff; }

/* Resultado count y limpiar */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.5rem 0.2rem;
  font-size: 0.8rem;
}
.result-count { color: var(--text-muted); }
.clear-btn {
  background: none;
  border: none;
  color: #a78bfa;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.clear-btn:hover { color: #c4b5fd; }

/* ── MOBILE TOGGLE ───────────────────────────────────────── */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-light);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
}
.mobile-filter-toggle svg { width: 18px; height: 18px; }

/* ── CARDS AREA ──────────────────────────────────────────── */
.cards-area { flex: 1; padding-left: 1.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.2rem;
}

/* ── CARD ────────────────────────────────────────────────── */


/* ── CARD ────────────────────────────────────────────────── */
.cards-grid .card {
  border-radius: var(--radius-card) !important;
  background: #ffffff !important;
  border: none !important;
  border-top: 4px solid var(--card-color, #8b5cf6) !important;
  box-shadow: var(--shadow-card);
  padding: 1.3rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  min-height: 300px;
}

/* Resplandor sutil de esquina — capa propia, no depende de bordes */
.cards-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 60%;
  background: radial-gradient(
    circle at top right,
    var(--card-color, #8b5cf6),
    transparent 70%
  );
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

/* Contenido por encima del resplandor */
.cards-grid .card > * {
  position: relative;
  z-index: 1;
}

.cards-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}



.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.card-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--card-color, #8b5cf6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
h2.card-title {
  font-size: 20px;
   
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

/*.card-desc {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  height: 220px;      
  overflow-y: auto; 
}*/

.card-desc {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
  flex: 1;                /* ocupa el espacio disponible */
  margin-bottom: 14px;
  max-height: 99px;     
  overflow-y: auto;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.card-tag {
  background: rgba(139,92,246,0.10);
  color: #6d28d9;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-status {
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 10px;
} 
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-color, #8b5cf6);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: auto;       /* empuja el boton al fondo — alinea todas las cards */
  transition: opacity 0.15s, transform 0.15s;
}
.card-link:hover { opacity: 0.88; transform: translateX(2px); }
.card-link svg { width: 14px; height: 14px; }
.card-link.disabled {
  background: #d1d5db;
  color: #9ca3af;
  pointer-events: none;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state svg { width: 56px; height: 56px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 1rem; }

/* ── LOADING ─────────────────────────────────────────────── */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 12px;
  color: var(--text-muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR BANNER ────────────────────────────────────────── */
.error-banner {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

 



/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .layout { flex-direction: column; padding: 0 1rem 2.5rem; }
  .cards-area { padding-left: 0; }
  .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  .sidebar.collapsed .sidebar-content { display: none; }
  .mobile-filter-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .card { padding: 1rem; }
  h2.card-title { font-size: 0.92rem; }



.cards-grid .card {
  min-height: auto;
}

}

@media (max-width: 480px) {

  .cards-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .search-box input { font-size: 0.88rem; }
  .card { 
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .layout {
    padding: 0 0.75rem 2rem;
  }
  .cards-area {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  #sidebar.collapsed {
    display: none;
  }

}
 
html, body {
  max-width: 100%;
  overflow-x: hidden;
}


.cards-area { position: relative; }



.cards-area button.carousel-arrow {
  -webkit-appearance: none !important;   /* mata la forma nativa de SharePoint */
  appearance: none !important;
  position: absolute !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18) !important;
  color: #4c1d95 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
/*
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  color: #4c1d95;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}*/


.carousel-arrow{
    position: absolute;
   
    width: 54px;
    height: 54px;
    border-radius: 50%;
    z-index: 50;
}

.carousel-arrow.prev{
    left: calc(35%);
    bottom: -30px;
}

.carousel-arrow.next{
    right: calc(35%);
    bottom: -30px;
}



.carousel-arrow svg { width: 22px; height: 22px; } 
.carousel-arrow:disabled { opacity: .4; cursor: default; }
.carousel-arrow:not(:disabled):hover { background: #f5f3ff; }

.carousel-arrow svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}



/*
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  color: #4c1d95;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.carousel-arrow svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow:disabled { opacity: .4; cursor: default; }
.carousel-arrow:not(:disabled):hover { background: #f5f3ff; }
*/



/* Contenedor: evita que los dots se estiren */


.cards-area #carouselFooter,
.cards-area .carousel-footer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 32px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
  float: none !important;
  clear: both !important;
}



.cards-area #carouselFooter.is-hidden,
.cards-area .carousel-footer.is-hidden {
  display: none !important;
}

.cards-area button.carousel-arrow.is-hidden {
  display: none !important;
}



.cards-area #carouselDots button.carousel-dot {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  flex: 0 0 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(124,58,237,.30) !important;
  cursor: pointer;
  box-sizing: border-box !important;
}
.cards-area #carouselDots button.carousel-dot.active {
  width: 26px !important;
  max-width: 26px !important;
  flex: 0 0 26px !important;
  border-radius: 999px !important;
  background: #7c3aed !important;
}

#carouselDots.carousel-dots {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  width: auto !important;
}

/* Cada dot: circulo real, no barra */
#carouselDots .carousel-dot {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  flex: 0 0 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(124, 58, 237, 0.30) !important;
  cursor: pointer;
  box-sizing: border-box !important;
  transition: width .2s, background .2s, flex-basis .2s;
}

/* Dot activo: pildora 
#carouselDots .carousel-dot.active {
  width: 26px !important;
  max-width: 26px !important;
  flex: 0 0 26px !important;
  background: #7c3aed !important;
}*/

#carouselFooter .carousel-page-label {
  color: #4c1d95 !important;
  font-weight: 600;
  font-size: 14px;
}


@media (max-width:1024px){

.carousel-arrow.prev{
    left:10px;
}

.carousel-arrow.next{
    right:10px;
}

}


@media (max-width:768px){

.cards-area{
    position:relative;
    padding-bottom:90px;
}

.carousel-arrow{
    position:absolute;
    top:auto;
    bottom:25px;
    transform:none;
    width:48px;
    height:48px;
}

@media (max-width:768px){

.card-desc {
    display: none;
}



h2.card-title {
  font-size: 16px !important;
}

.cards-area{
    position:relative;
    padding-bottom:40px;
}

/* Contenedor del contador */
.carousel-footer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:25px;
    position:relative;
}

/* Flechas dejan de ser absolutas */
.carousel-arrow{
    position:static;
    transform:none;
    width:46px;
    height:46px;
    flex-shrink:0;
}

/* Contenedor de navegación */
.carousel-nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
}
}

.carousel-arrow.prev {
    left: calc(5%);
    bottom: 10px;
}

.carousel-arrow.next {
    right: calc(5%);
    bottom: 10px;
}

.carousel-footer{
    margin-bottom:65px;
}

} 

