/**
 * Contenido editorial unificado: páginas, noticias y editor Gutenberg.
 *
 * @package CCO_Oruro
 */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) {
  font-family: var(--cco-font-article);
  color: var(--cco-legacy-text-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > *:first-child {
  margin-top: 0;
}

/* Sin letra capital (drop cap) */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) p::first-letter,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .cco-lead::first-letter,
.cco-page-prose p::first-letter,
.cco-page-prose .cco-lead::first-letter {
  float: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > p:first-of-type {
  font-size: 1.125rem;
  color: var(--cco-text);
  line-height: 1.7;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) p {
  margin: 0 0 1.15rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h2,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h3,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h4,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h5,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h6 {
  font-family: var(--cco-font-display);
  color: var(--cco-text);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.25;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h2 {
  font-size: 1.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 2.75rem;
  height: 2px;
  background: var(--cco-legacy-orange);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h3 {
  font-size: 1.25rem;
  padding-left: 0.7rem;
  border-left: 3px solid rgba(189, 176, 70, 0.55);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h4 {
  font-size: 1.125rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h5 {
  font-size: 1rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) h6 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cco-legacy-orange);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) a {
  color: var(--cco-legacy-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) a:hover {
  color: var(--cco-vino-dk);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-button__link,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-file__button {
  text-decoration: none;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) strong,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) b {
  color: var(--cco-text);
  font-weight: 700;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ul:not(.vr-comment-list),
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-list {
  list-style: none;
  padding-left: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ol {
  list-style: none;
  padding-left: 0;
  counter-reset: vr-ol;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ul:not(.vr-comment-list),
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ol,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-list {
  margin: 0 0 1.15rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ul:not(.vr-comment-list) > li,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-list > li {
  position: relative;
  padding-left: 1.35rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ul:not(.vr-comment-list) > li::before,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cco-legacy-orange);
  transform: translateY(-50%);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ol > li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: vr-ol;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) ol > li::before {
  content: counter(vr-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cco-legacy-orange);
  border: 1px solid rgba(189, 176, 70, 0.45);
  border-radius: 50%;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) li {
  margin-bottom: 0.45rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) blockquote {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  border-left: 4px solid var(--cco-legacy-orange);
  background: var(--cco-legacy-orange-soft);
  border-radius: 0 var(--cco-legacy-radius) var(--cco-legacy-radius) 0;
  color: var(--cco-text);
  font-style: italic;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) blockquote cite,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--cco-legacy-text-muted);
  letter-spacing: 0.02em;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) img {
  border-radius: var(--cco-legacy-radius);
  margin: 1.25rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-post-source {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--cco-legacy-orange-soft);
  border: 1px solid var(--cco-legacy-border);
  border-radius: var(--cco-legacy-radius);
  border-top: none;
}

/* ---- Prose: tablas ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-table,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .table-scroll {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cco-legacy-border);
  border-radius: var(--cco-legacy-radius);
  background: var(--cco-white);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) thead {
  background: rgba(136, 20, 51, 0.06);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) th,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) td {
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--cco-legacy-border);
  text-align: left;
  vertical-align: top;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) th {
  color: var(--cco-text);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--cco-legacy-orange);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) tbody tr:hover {
  background: rgba(189, 176, 70, 0.08);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- Prose: galerias ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery {
  margin: 1.5rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-item {
  margin: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-icon {
  display: block;
  border-radius: var(--cco-legacy-radius);
  overflow: hidden;
  position: relative;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-item.vr-gallery-thumb {
  cursor: zoom-in;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-icon img {
  width: 100%;
  height: auto;
  margin: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-caption,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .blocks-gallery-caption,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery .wp-element-caption {
  margin-top: 0;
  font-size: 0.8125rem;
  color: var(--cco-legacy-text-soft);
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-left: 0;
  border-radius: 0 0 var(--cco-legacy-radius) var(--cco-legacy-radius);
  background: rgba(0, 0, 0, 0.04);
  line-height: 1.45;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images > figcaption,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images > .blocks-gallery-caption {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: var(--cco-legacy-radius);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images {
  display: grid !important;
  width: 100%;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images {
    gap: 1rem;
  }
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-default,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images:not([class*="columns-"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-1 {
  grid-template-columns: 1fr;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-4,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-5,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-6,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-7,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Anular anchos flex de WordPress: cada celda del grid al 100% */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images > figure.wp-block-image,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none !important;
  min-width: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image {
  margin: 0;
  border-radius: var(--cco-legacy-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.28);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image > a,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image > div {
  border-radius: var(--cco-legacy-radius);
  overflow: hidden;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images figure.wp-block-image .wp-element-caption {
  position: static;
  inset: auto;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-left: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--cco-legacy-text-soft);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: left;
  text-shadow: none;
  max-height: none;
  overflow: visible;
  pointer-events: auto;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  content: none;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-gallery-thumb {
  cursor: zoom-in;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-gallery-thumb:focus-visible {
  outline: 2px solid var(--cco-legacy-orange);
  outline-offset: 2px;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-gallery-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  z-index: 2;
  background: rgba(4, 26, 14, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 28px no-repeat;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: var(--cco-legacy-radius);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-gallery-thumb:hover::before,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .vr-gallery-thumb:focus-visible::before {
  opacity: 1;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: var(--cco-legacy-radius);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image:hover::after {
  opacity: 1;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  border-radius: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Galería: no recortar; mantener proporción natural en 2 columnas */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.is-cropped.has-nested-images .wp-block-image img {
  aspect-ratio: auto;
  height: auto !important;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images .wp-block-image:not(:has(figcaption)) img {
  border-radius: var(--cco-legacy-radius);
}

/* Imágenes sueltas a fila completa: mostrar enteras, sin recorte */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > .wp-block-image,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > figure.wp-block-image {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > .wp-block-image img,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) > figure.wp-block-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery .wp-block-image img,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-icon img {
  transition: transform 0.35s ease;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery .wp-block-image:hover img,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .gallery-icon:hover img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-2,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-3,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-4,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-5,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-6,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-7,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-8,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-default,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images:not([class*="columns-"]) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-3,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-4,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-5,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-6,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-7,
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-gallery.has-nested-images.columns-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Prose: figuras y captions ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) figure {
  margin: 1.5rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) figure img {
  margin: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) figcaption,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-caption-text {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--cco-legacy-text-muted);
  text-align: left;
  line-height: 1.45;
  padding-left: 0.75rem;
  border-left: 3px solid var(--cco-legacy-orange);
  max-width: 92%;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-caption {
  max-width: 100%;
  margin: 1.5rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-caption img {
  margin: 0;
}

/* ---- Prose: embeds y video ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-embed,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-video,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-audio {
  margin: 1.5rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-embed__wrapper,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-video video,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-audio audio {
  border-radius: var(--cco-legacy-radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--cco-legacy-border);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-embed iframe {
  border: 0;
  border-radius: var(--cco-legacy-radius);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-embed figcaption {
  margin-top: 0.65rem;
}

/* ---- Prose: codigo ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) pre,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-code {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: rgba(136, 20, 51, 0.06);
  border: 1px solid var(--cco-legacy-border);
  border-left: 4px solid var(--cco-legacy-orange);
  border-radius: 0 var(--cco-legacy-radius) var(--cco-legacy-radius) 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cco-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) code,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) kbd {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.875em;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) :not(pre) > code {
  padding: 0.12em 0.4em;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  color: var(--cco-text);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) pre code {
  padding: 0;
  background: none;
}

/* ---- Prose: separadores y bloques Gutenberg ---- */
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) hr,
:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-separator:not(.is-style-dots) {
  margin: 2rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cco-legacy-border) 15%, var(--cco-legacy-border) 85%, transparent);
  opacity: 1;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-separator.is-style-wide {
  height: 2px;
  background: linear-gradient(90deg, var(--cco-legacy-orange), rgba(189, 176, 70, 0.15), transparent);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
  background: none;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-separator.is-style-dots::before {
  content: "Â·Â·Â·";
  color: var(--cco-legacy-orange);
  font-size: 1.25rem;
  letter-spacing: 0.75em;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-columns {
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 782px) {
  :is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-columns:not(.cco-pillars) .wp-block-column:not(:first-child) {
    padding-left: 1.35rem;
    border-left: 1px solid var(--cco-legacy-border);
  }
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-group {
  margin: 1.5rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-group.has-background {
  padding: 1.25rem;
  border-radius: var(--cco-legacy-radius);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-quote {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  border-left: 4px solid var(--cco-legacy-orange);
  background: var(--cco-legacy-orange-soft);
  border-radius: 0 var(--cco-legacy-radius) var(--cco-legacy-radius) 0;
  color: var(--cco-text);
  font-style: italic;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-pullquote {
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  border: 0;
  border-top: 2px solid var(--cco-legacy-orange);
  border-bottom: 2px solid var(--cco-legacy-orange);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-style: italic;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-pullquote p {
  font-family: var(--cco-font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.45;
  color: var(--cco-text);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .alignwide {
  max-width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--cco-gold-lt);
  color: var(--cco-btn-text);
  padding: 0.65rem 1.5rem;
  transition: background var(--cco-legacy-transition), transform var(--cco-legacy-transition), color var(--cco-legacy-transition);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-button__link:hover {
  background: var(--cco-gold);
  color: var(--cco-btn-text);
  transform: translateY(-1px);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--cco-legacy-orange);
  color: var(--cco-legacy-orange);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--cco-gold-lt);
  color: var(--cco-btn-text);
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .cco-btn-icon {
  font-size: 0.92em;
  line-height: 1;
  flex-shrink: 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-file {
  margin: 1.25rem 0;
}

:is(.cco-prose, .editor-styles-wrapper, .vr-single-body.cco-prose) .wp-block-file__button {
  background: var(--cco-gold-lt);
  color: var(--cco-btn-text);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  text-decoration: none;
  font-weight: 700;
}
