/* Capital G50 — Programa del evento (shortcode [capital_g50_programa]) */

.cg50-programa {
  --cg50-accent: #ffdb45;
  --cg50-border: #e2e8f0;
  --cg50-muted: #64748b;
  --cg50-row-a: #ffffff;
  --cg50-row-b: #eaeaea;
  max-width: 52rem;
  margin: 0 auto;
  font-family: inherit;
}

.cg50-programa__updated {
  font-size: 0.875rem;
  color: #ffdb4554;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.cg50-programa__day {
  margin-bottom: 2.5rem;
}

.cg50-programa__day-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  color: var(--cg50-accent);
}

.cg50-programa__notes {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 1rem;
  margin: 0 0 0.65rem;
  background: #efe3d2;
  border: 1px solid #d8c4ab;
  box-shadow: inset 0 0 0 1px rgba(107, 62, 38, 0.06);
}

.cg50-programa__note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cg50-programa__note-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: #6b3e26;
  color: #ffdb45;
  border-radius: 50px;
}

.cg50-programa__note-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cg50-programa__note-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3d2918;
}

.cg50-programa__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cg50-programa__item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--cg50-border);
  border-radius: 0;
}

.cg50-programa__item--alt-a {
  background: var(--cg50-row-a);
}

.cg50-programa__item--alt-b {
  background: var(--cg50-row-b);
}

.cg50-programa__item--break {
  border-style: dashed;
}

.cg50-programa__time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--accent-2, #1a4d8c);
  white-space: nowrap;
}

.cg50-programa__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #221f1b;
}

.cg50-programa__speaker {
  margin: 0 0 0.15rem;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--accent-5, #64748b);
}

.cg50-programa__role,
.cg50-programa__origin {
  margin: 0 0 0.15rem;
  font-size: 0.875rem;
  color: var(--cg50-muted);
}

.cg50-programa__country {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.875rem;
  color: #221f1b;
}

.cg50-programa__flag {
  flex-shrink: 0;
  width: 20px;
  height: auto;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.cg50-programa__flag--fallback {
  font-size: 0.875rem;
  line-height: 1;
}

.cg50-programa__country-name {
  line-height: 1.3;
}

.cg50-programa__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.cg50-programa__room {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ffdb446b;
  color: #3730a3;
}

.cg50-programa--empty {
  text-align: center;
  padding: 2rem;
  color: var(--cg50-muted);
}

.cg50-programa__toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 1.25rem 0 0;
}

.cg50-programa__print {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #6b3e26;
  color: #ffdb45;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}

.cg50-programa__print:hover,
.cg50-programa__print:focus-visible {
  background: #543018;
}

.cg50-programa__print-title {
  display: none;
}

@media (max-width: 640px) {
  .cg50-programa__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cg50-programa__notes {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 10mm;
}

@media print {
  html,
  body,
  body.cg50-has-programa,
  .wp-site-blocks,
  main,
  .entry-content,
  .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  #wpadminbar,
  header,
  footer,
  nav,
  aside,
  .skip-link,
  .site-header,
  .site-footer,
  .site-branding,
  .site-title,
  .wp-block-template-part,
  .wp-block-site-title,
  .wp-block-site-tagline,
  .entry-header,
  .page-header,
  .entry-title,
  .wp-block-post-title,
  h1.wp-block-post-title {
    display: none !important;
  }

  .wp-block-cover {
    min-height: 80px !important;
    height: auto !important;
    padding: 0 !important;
  }

  .cg50-programa {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #1c1c1c;
  }

  .cg50-programa__toolbar,
  .cg50-programa__print,
  .cg50-programa__updated {
    display: none !important;
  }

  .cg50-programa__print-title {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0 0 0.3rem;
    border-bottom: 2px solid #6b3e26;
    color: #1c1c1c;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
  }

  .cg50-programa__day {
    margin-bottom: 1.1rem;
  }

  .cg50-programa__day-title {
    color: #1c1c1c;
    border-bottom: 1px solid #6b3e26;
    margin-bottom: 0.45rem;
  }

  .cg50-programa__notes {
    background: #fff;
    border: 1px solid #6b3e26;
    box-shadow: none;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cg50-programa__note-icon {
    background: #fff;
    color: #6b3e26;
    border: 1.5px solid #6b3e26;
  }

  .cg50-programa__note-text,
  .cg50-programa__title,
  .cg50-programa__speaker,
  .cg50-programa__role,
  .cg50-programa__origin,
  .cg50-programa__country,
  .cg50-programa__time {
    color: #1c1c1c;
  }

  .cg50-programa__item {
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: #d0d0d0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cg50-programa__item--alt-a {
    background: #fff;
  }

  .cg50-programa__item--alt-b {
    background: #f3f3f3;
  }

  .cg50-programa__room {
    background: transparent;
    color: #1c1c1c;
    border: 1px solid #6b3e26;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
