/* ==========================================================================
   CL Compliance Suite — Sellos Ley 21.363 (look moderno, paleta del sitio)
   ==========================================================================
   Variables CSS: el admin puede sobreescribir los colores con el filtro
   `clcs_labelling_colors` o desde un child theme.
   ========================================================================== */

:root {
  --clcs-wine:       #7c1d2e;  /* Vino tinto / borgoña */
  --clcs-wine-soft:  #9b3a4a;
  --clcs-gold:       #b08968;  /* Dorado tipo okpyme.cl */
  --clcs-ink:        #1a1a1a;
  --clcs-paper:      #faf7f2;  /* Off-white cálido */
  --clcs-line:       #e8e0d0;  /* Línea crema muy clara */
  --clcs-muted:      #6b6b6b;
}

.clcs-labelling {
  /* Layout */
  max-width: 920px;
  margin: 48px auto;
  padding: 28px 32px 24px;
  background: var(--clcs-paper);
  border: 1px solid var(--clcs-line);
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--clcs-ink);
  position: relative;
  box-sizing: border-box;
}

/* Acento lateral: línea vertical vino */
.clcs-labelling::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--clcs-wine) 0%, var(--clcs-gold) 100%);
  border-radius: 0 2px 2px 0;
}

/* Header */
.clcs-labelling__header {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--clcs-line);
}

.clcs-labelling__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--clcs-ink);
  letter-spacing: 0;
}

.clcs-labelling__lead {
  margin: 0;
  font-size: 13px;
  color: var(--clcs-muted);
}

.clcs-labelling__chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clcs-wine);
  background: rgba(124, 29, 46, 0.07);
  border: 1px solid rgba(124, 29, 46, 0.18);
  border-radius: 12px;
  letter-spacing: 0.02em;
}

/* Lista de advertencias — 3 columnas en desktop */
.clcs-labelling__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.clcs-labelling__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--clcs-ink);
  line-height: 1.45;
}

.clcs-labelling__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clcs-wine);
  background: rgba(124, 29, 46, 0.06);
  border-radius: 50%;
  margin-top: 1px;
}

.clcs-labelling__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.clcs-labelling__text {
  flex: 1;
  min-width: 0;
}

/* Footer legal */
.clcs-labelling__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--clcs-line);
}

.clcs-labelling__legal {
  font-size: 11.5px;
  color: var(--clcs-muted);
  letter-spacing: 0.01em;
}

.clcs-labelling__legal strong {
  color: var(--clcs-ink);
  font-weight: 600;
}

/* ===== Responsive ===== */

/* Tablet: 2 columnas */
@media (max-width: 720px) {
  .clcs-labelling {
    margin: 32px 16px;
    padding: 22px 22px 18px;
  }
  .clcs-labelling__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .clcs-labelling__title {
    font-size: 16px;
  }
}

/* Mobile: 1 columna */
@media (max-width: 480px) {
  .clcs-labelling__items {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .clcs-labelling__item {
    padding: 8px 0;
    border-bottom: 1px solid var(--clcs-line);
  }
  .clcs-labelling__item:last-child {
    border-bottom: 0;
  }
  .clcs-labelling__icon {
    width: 32px;
    height: 32px;
  }
  .clcs-labelling__icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Estilo cuando se imprime (ej. factura o ficha técnica) */
@media print {
  .clcs-labelling {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
