/* ============================================================
   CATÁLOGO 2 — Estilo ENXI réplica exacta
   Sidebar acordeón: header verde + subitems blancos
   ============================================================ */

.page-catalogo { background: #f0f0f0; color: #111; overflow: auto; }

/* ── Layout ──────────────────────────────────────────────── */
.c2-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 68px;
  align-items: flex-start;
}

/* ══ SIDEBAR ════════════════════════════════════════════════ */
.c2-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,.05);
}
.c2-sidebar::-webkit-scrollbar { width: 4px; }
.c2-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.c2-sidebar-brand {
  padding: .85rem 1.1rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.4);
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Grupo acordeón ──────────────────────────────────────── */
.c2-group { border-bottom: 1px solid #e0e0e0; }

/* Header del grupo — verde igual que ENXI */
.c2-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  background: var(--green);    /* #207800 */
  cursor: pointer;
  transition: background .15s;
  user-select: none;
  gap: .5rem;
}
.c2-group-header:hover { background: #1a6200; }
.c2-group-header.open  { background: #145000; }

.c2-group-name {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  flex: 1;
}
.c2-group-arrow {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .25s, background .15s;
}
.c2-group-header.open .c2-group-arrow {
  transform: rotate(90deg);
  background: rgba(255,255,255,.15);
}

/* ── Sublista ────────────────────────────────────────────── */
.c2-sublist {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #fff;
}
.c2-sublist.open { max-height: 900px; }

.c2-sublist li { border-bottom: 1px solid #f2f2f2; }
.c2-sublist li:last-child { border-bottom: none; }

.c2-sublist li a {
  display: block;
  padding: .55rem 1.1rem .55rem 1.6rem;
  font-size: .78rem;
  color: #555;
  line-height: 1.4;
  transition: background .12s, color .12s, padding-left .12s;
}
.c2-sublist li a:hover {
  background: #f0faf4;
  color: var(--green);
  padding-left: 1.9rem;
}
.c2-sublist li.active a {
  background: #e8f5ee;
  color: var(--green);
  font-weight: 600;
  border-left: 3px solid var(--green);
  padding-left: calc(1.6rem - 3px);
}

/* ══ MAIN ════════════════════════════════════════════════════ */
.c2-main {
  flex: 1;
  padding: 2rem 2.5rem 4rem;
  min-width: 0;
  background: #f0f0f0;
}

/* Breadcrumb */
.c2-breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .72rem; color: rgba(0,0,0,.35);
  margin-bottom: 1.25rem;
}
.c2-breadcrumb a { color: var(--green); }
.c2-breadcrumb a:hover { text-decoration: underline; }

/* Header de sección */
.c2-header { margin-bottom: 1.75rem; }
.c2-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  color: var(--blue-dark);
  margin-bottom: .35rem;
}
.c2-desc {
  font-size: .83rem;
  color: rgba(0,0,0,.42);
  line-height: 1.6;
  max-width: 580px;
}

/* ══ GRID DE CARDS ════════════════════════════════════════════ */
.c2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  transition: opacity .25s ease, transform .25s ease;
}
.c2-grid.fading { opacity: 0; transform: translateY(8px); }

/* Card — verde sólido CNP */
.c2-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--green);
  text-decoration: none;
  color: #fff;
  transition: transform .25s, box-shadow .25s, background .2s;
}
.c2-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(32,120,0,.3);
  background: #186000;
}

/* Imagen */
.c2-card-img {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  overflow: hidden; padding: 1.25rem;
  transition: background .2s;
}
.c2-card:hover .c2-card-img { background: rgba(255,255,255,.22); }
.c2-card-img img {
  max-width: 100%; max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.2));
  transition: transform .3s;
}
.c2-card:hover .c2-card-img img { transform: scale(1.06); }

/* Body */
.c2-card-body {
  padding: .9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex: 1; display: flex; flex-direction: column;
}
.c2-card-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: rgba(255,255,255,.2); line-height: 1;
  margin-bottom: .25rem;
}
.c2-card-name {
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 400;
  color: rgba(255,255,255,.92); line-height: 1.35;
  margin: 0 0 .65rem; flex: 1;
}
.c2-card-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.55); letter-spacing: .06em;
  transition: color .2s, gap .2s;
}
.c2-card:hover .c2-card-cta { color: #fff; gap: .7rem; }

/* ── Navbar override ─────────────────────────────────────── */
.page-catalogo #navbar { background: var(--green); }
.page-catalogo #navbar.scrolled { background: rgba(0,0,0,.92); }
.page-catalogo .nav-active {
  border-bottom: 2px solid rgba(255,255,255,.6);
  padding-bottom: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .c2-grid { grid-template-columns: repeat(2, 1fr); }
  .c2-main { padding: 1.75rem 1.75rem 3rem; }
}
@media (max-width: 900px) {
  .c2-sidebar { width: 250px; }
}
@media (max-width: 768px) {
  .c2-layout { flex-direction: column; }
  .c2-sidebar {
    width: 100%; height: auto; position: static;
    max-height: 45vh; overflow-y: auto;
  }
  .c2-sidebar-brand { display: none; }
  .c2-main { padding: 1.25rem 1rem 3rem; }
  .c2-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
}
@media (max-width: 480px) {
  .c2-grid { grid-template-columns: 1fr; }
  .c2-card-img { aspect-ratio: 3/2; }
}


/* ULTRAWIDE — catálogo 2 */
@media (min-width: 1920px) {
  .c2-layout  { max-width: 1500px; margin: 0 auto; }
  .c2-grid    { grid-template-columns: repeat(4, 1fr); }
  .c2-card    { max-width: 320px; }
}
@media (min-width: 2560px) {
  .c2-grid    { grid-template-columns: repeat(5, 1fr); }
  .c2-layout  { max-width: 1800px; }
}
