/* ── SECTION CARD ── */

#banner{
    display:flex;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.30);
}
.banner{
    width:100%;
}

    .section-card {
      background: var(--bg-white);
      border-radius: 16px;
      padding: 48px 56px;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--border-light);
    }

    .section-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 26px;
      color: var(--text-dark);
      text-align: center;
      margin-bottom: 40px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* ── YEAR TABS ── */
    .year-tabs {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 48px;
      flex-wrap: wrap;
    }

    .year-tab {
      padding: 12px 28px;
      border: none;
      background: var(--purple-light);
      color: var(--bg-white);
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 16px;
      letter-spacing: 0.5px;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.3s ease;
      min-width: 90px;
    }

    .year-tab:hover {
      background: var(--purple-mid);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(123,47,190,0.3);
    }

    .year-tab.active {
      background: var(--purple-dark);
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(74,18,118,0.4);
    }

    .year-tab.inactive {
      background: var(--bg-light);
      color: var(--text-gray);
      cursor: default;
    }

    .year-tab.inactive:hover {
      transform: none;
      box-shadow: none;
    }

    /* ── CONTENT AREA ── */
    .content-area {
      
      border: 1px solid var(--border-light);
      border-radius: 12px;
      padding: 40px;
      background: #fafafa;
      min-height: 100dvh;
    }

    .selected-year {
      text-align: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      font-size: 28px;
      color: var(--text-dark);
      margin-bottom: 36px;
      letter-spacing: 1px;
    }

    .quarter-label {
      text-align: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 500;
      font-size: 18px;
      color: var(--text-mid);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 32px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
    }

    /* ── DOCUMENT SECTIONS ── */
    .doc-section {
      margin-bottom: 40px;

    }

    .doc-section:last-child {
      margin-bottom: 0;
    }

    .doc-section-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 16px;
      color: var(--text-dark);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .doc-section-title::before {
      content: '';
      width: 4px;
      height: 20px;
      background: var(--purple-mid);
      border-radius: 2px;
    }

    .doc-list {
      list-style: none;
      display: flex;
      flex-wrap:wrap;
      flex-direction: column;
      gap: 8px;
      padding-left: 12px;
    }

    .doc-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      background: var(--bg-white);
      border-radius: 8px;
      border: 1px solid #ddd;
      transition: all 0.2s ease;
      cursor: pointer;
      transform: translateX(5px);
      color: #007bff;
      padding: 1rem;
      transition: transform 0.2s;
    }
        .is-hidden { display: none; }
        .year-tab { cursor: pointer; padding: 10px 20px; border: 1px solid #ccc; background: #fff; }
        .year-tab.active { background: #007bff; color: white; border-color: #007bff; }
        .doc-section { margin: 15px 0; padding-left: 20px; }
        .doc-list { list-style: none; }

    .doc-item:hover {
      border-color: var(--purple-light);
      background: #fefeff;
      box-shadow: 0 2px 8px rgba(123,47,190,0.1);
      transform: translateX(4px);
    }

    .doc-number {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 14px;
      color: var(--purple-mid);
      min-width: 28px;
      flex-shrink: 0;
    }

    .doc-title{
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items:
        center;
        gap: 10px;

    }
    .doc-name {
      font-family: 'Barlow', sans-serif;
      font-weight: 500;
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.5;
      flex: 1;
      flex: 1;
    }

    .doc-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      margin-left: auto;
      opacity: 0;
      transition: opacity 0.2s;
    }

    .doc-item:hover .doc-icon {
      opacity: 1;
    }

    .doc-icon svg {
      width: 100%;
      height: 100%;
      stroke: var(--purple-mid);
    }

    /* Sub-items */
    .sub-list {
      list-style: none;
      margin-top: 8px;
      padding-left: 24px;
    }

    .sub-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 8px 12px;
      margin-bottom: 4px;
    }

    .sub-letter {
      font-family: 'Barlow', sans-serif;
      font-weight: 600;
      font-size: 13px;
      color: var(--text-gray);
      min-width: 20px;
    }

    .sub-name {
      font-family: 'Barlow', sans-serif;
      font-weight: 400;
      font-size: 14px;
      color: var(--text-mid);
      line-height: 1.5;
    }



    /* ── RESPONSIVE ── */
    /* ... (Tu CSS anterior se mantiene igual arriba) ... */

/* ── OPTIMIZACIONES GENERALES RESPONSIVAS ── */

@media (max-width: 1024px) {
  .section-card {
    padding: 30px; /* Reducción de padding en tablets */
    margin: 10px;
  }
}

@media (max-width: 1000px) {
  /* Banner ajustable */
  #banner {
    height: auto;
  }

  /* Título más pequeño para que no ocupe 3 líneas */
  .section-title {
    font-size: 20px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  /* Tarjeta principal */
  .section-card {
    padding: 20px 15px; /* Padding mínimo para aprovechar el ancho */
    border-radius: 12px;
    margin: 5px;
  }

  /* Tabs de años: más fáciles de tocar */
  .year-tabs {
    gap: 8px;
    margin-bottom: 30px;
  }

  .year-tab {
    padding: 10px 15px;
    font-size: 14px;
    min-width: 70px;
    flex: 1 1 calc(30% - 10px); /* Hace que quepan 3 por fila aproximadamente */
    text-align: center;
  }

  /* Área de contenido */
  .content-area {
    padding: 20px 10px;
    min-height: auto; /* En móviles no forzamos el 100vh para evitar scroll infinito vacío */
  }

  /* Etiquetas de trimestre */
  .quarter-label {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Secciones de documentos: Quitamos el display flex horizontal si lo tenías */
  .quarter-group {
    display: block !important; /* Fuerza cascada vertical */
    margin-bottom: 40px; display:flex;justify-content: space-between;
  }

  /* Ajuste de los items de documentos */
  .doc-section {
    padding-left: 0; /* Quitamos sangría para ganar espacio horizontal */
  }

  .doc-list {
    padding-left: 0;
  }

  .doc-item {
    transform: none !important; /* Quitamos el desplazamiento lateral para evitar desbordamiento */
    padding: 12px;
    margin-bottom: 10px;
  }

  .doc-name {
    font-size: 13px; /* Texto un poco más pequeño para nombres largos */
  }

  .doc-icon {
    opacity: 1; /* En móviles siempre visible ya que no hay 'hover' con mouse */
  }

  .doc-number {
    min-width: 20px;
    font-size: 12px;
  }
}

/* Para celulares muy pequeños (iPhone SE, etc.) */
@media (max-width: 380px) {
  .year-tab {
    flex: 1 1 calc(45% - 10px); /* 2 botones por fila */
  }

  .section-title {
    font-size: 18px;
  }
}

    /* ── ANIMATIONS ── */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .content-area {
      animation: fadeIn 0.4s ease;
    }