/* =============================================
       CEV — EDICIONES ANTERIORES
       Componente autónomo, listo para incrustar.
       Requiere solo este fichero HTML (sin deps externas).
    ============================================= */

    .cev-ediciones {
      display: flex;
      gap: 2rem;
      min-height: 700px;
      margin-left: 2rem;
      margin-right: 2rem;
    }

    /* --- Lista de botones --- */
    .ced-list {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 220px;
      flex-shrink: 0;
    }

    .ced-list-title {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 11px;
      font-weight: bold;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #888;
      margin-bottom: 8px;
      padding-left: 4px;
    }

    .ced-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: 6px;
      border: 1px solid transparent;
      background: transparent;
      color: #333;
      cursor: pointer;
      text-align: left;
      font-size: 13px;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      line-height: 1.3;
    }

    .ced-btn:hover {
      background: #f3f3f3;
      border-color: #ddd;
    }

    .ced-btn.active {
      background: #f0f0f0;
      border-color: #bbb;
      color: #111;
      font-weight: bold;
    }

    .ced-btn-num {
      font-size: 10px;
      color: #aaa;
      min-width: 18px;
      text-align: right;
      flex-shrink: 0;
    }

    .ced-btn.active .ced-btn-num {
      color: #777;
    }

    /* --- Panel de detalle --- */
    .ced-panel {
      flex: 1;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
      min-height: 380px;
      background: #111;
    }

    .ced-panel-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      transition: opacity 0.4s ease;
    }

    .ced-panel-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.15) 100%
      );
      display: flex;
      align-items: flex-end;
      padding: 2rem 2.2rem;
    }

    .ced-panel-content {
      position: relative;
      z-index: 1;
    }

    .ced-panel-fecha {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.65);
      margin-bottom: 8px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .ced-panel-titulo {
      font-size: 20px;
      font-weight: normal;
      color: #fff;
      line-height: 1.35;
      margin-bottom: 6px;
    }

    .ced-panel-sub {
      font-size: 13px;
      font-style: italic;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 20px;
    }

    .ced-panel-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 20px;
      border-radius: 999px;
      border: 1.5px solid rgba(255, 255, 255, 0.75);
      color: #fff;
      font-size: 12px;
      text-decoration: none;
      letter-spacing: 0.04em;
      transition: background 0.2s;
    }

    .ced-panel-link:hover {
      background: rgba(255, 255, 255, 0.18);
    }

    .ced-panel-link svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    /* --- Sin imagen de fondo --- */
    .ced-panel-bg.no-image {
      background-color: #2a2a2a;
    }

    /* --- Responsive --- */
    @media (max-width: 640px) {
      .cosecivi-ediciones {
        flex-direction: column;
        gap: 1rem;
      }

      .ced-list {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        gap: 4px;
      }

      .ced-btn {
        font-size: 12px;
        padding: 7px 10px;
      }

      .ced-btn-num {
        display: none;
      }

      .ced-panel {
        min-height: 280px;
      }
    }