/* Bloques del editor */

.editor-styles-wrapper,
.edit-post-visual-editor__content-area {
  --brand-accent: #17a2b8;
  --brand-accent-rgb: 23, 162, 184;
  --brand-accent-hover: #0e7f91;
  --brand-indigo: #1d3c71;
  --text: #39485c;
  --text-soft: #5c6b7d;
  --surface-strong: #ffffff;
  --border-subtle: #d9e0e8;
  --shadow-soft: 0 12px 24px rgba(18, 33, 73, 0.06);
}

.editor-cta { margin: 2rem 0; }
.editor-cta__inner { padding: clamp(1.5rem, 3vw, 2.35rem); border: 1px solid var(--border-default); border-radius: var(--radius-medium); background: linear-gradient(135deg, rgba(216, 224, 234, 0.96) 0%, rgba(202, 214, 228, 0.96) 100%); }
.editor-cta__layout { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(180px, 0.75fr); gap: clamp(0.8rem, 1.8vw, 1.2rem); align-items: center; }
.editor-cta__content { display: grid; gap: 0.2rem; min-width: 0; }
.editor-cta__title { margin: 0 !important; font-family: var(--font-display) !important; font-size: clamp(1.36rem, 2.1vw, 1.8rem) !important; line-height: 1.03 !important; font-weight: 700 !important; text-transform: uppercase !important; color: var(--brand-indigo) !important; }
.editor-cta__text { margin: 0; font-size: clamp(1rem, 1.45vw, 1.06rem); line-height: 1.65; color: var(--text-soft); }
.editor-cta__text p { margin: 0 !important; margin-bottom: 0 !important; }
.editor-cta__actions { display: flex; align-items: center; justify-content: flex-end; }
.editor-cta__button { min-width: 170px !important; justify-content: center !important; width: auto !important; text-align: center !important; color: #ffffff !important; }
.editor-cta__button,
.editor-cta__button * { color: #ffffff !important; text-decoration: none !important; }
.editor-cta__button::before { display: none !important; }
.editor-cta__button i { margin-left: 0.1rem !important; color: inherit !important; }
.editor-cta__button--placeholder { opacity: 0.72 !important; cursor: default !important; pointer-events: none !important; }
html[data-theme="dark"] .editor-cta__inner { border-color: rgba(255, 255, 255, 0.08); background: linear-gradient(135deg, rgba(12, 22, 38, 0.96) 0%, rgba(20, 34, 56, 0.96) 100%); }
html[data-theme="dark"] .editor-cta__title { color: var(--text) !important; }
html[data-theme="dark"] .editor-cta__text { color: var(--text-soft); }
html[data-theme="dark"] .editor-cta__button,
html[data-theme="dark"] .editor-cta__button *,
html[data-theme="dark"] .editor-cta__button:link,
html[data-theme="dark"] .editor-cta__button:visited { color: #ffffff !important; text-decoration: none !important; }
html[data-theme="dark"] .editor-cta__button { background: linear-gradient(135deg, #1f4a83 0%, #153564 100%) !important; }
html[data-theme="dark"] .editor-cta__button:hover,
html[data-theme="dark"] .editor-cta__button:focus-visible { background: linear-gradient(135deg, #173b6f 0%, #10284d 100%) !important; }

/* =========================================================
   Separador
   ========================================================= */
.core-ubb-separator { --separator-width: min(100%, 520px); --separator-height: 3px; display: flex; align-items: center; width: 100%; margin: clamp(2.6rem, 5vw, 4.2rem) 0; }
.core-ubb-separator__line { position: relative; display: block; width: var(--separator-width); height: var(--separator-height); border-radius: 999px; background: var(--brand-accent); overflow: hidden; }
.core-ubb-separator__line::before { content: ""; position: absolute; inset: 0; width: 34%; min-width: 72px; border-radius: inherit; background: var(--brand-indigo); }
.core-ubb-separator--width-short { --separator-width: min(100%, 220px); }
.core-ubb-separator--width-medium { --separator-width: min(100%, 520px); }
.core-ubb-separator--width-wide { --separator-width: min(100%, 860px); }
.core-ubb-separator--width-full { --separator-width: 100%; }
.core-ubb-separator--thickness-thin { --separator-height: 2px; }
.core-ubb-separator--thickness-medium { --separator-height: 3px; }
.core-ubb-separator--thickness-strong { --separator-height: 5px; }
.core-ubb-separator--gradient .core-ubb-separator__line { background: linear-gradient(90deg, var(--brand-indigo) 0%, var(--brand-accent) 52%, rgba(var(--brand-accent-rgb), 0.18) 100%); }
.core-ubb-separator--gradient .core-ubb-separator__line::before { display: none; }
.core-ubb-separator--double .core-ubb-separator__line { height: calc(var(--separator-height) + 8px); border-top: var(--separator-height) solid var(--brand-indigo); border-bottom: var(--separator-height) solid var(--brand-accent); background: transparent; border-radius: 0; }
.core-ubb-separator--double .core-ubb-separator__line::before { display: none; }
.core-ubb-separator--editor { padding: 0.45rem 0; }
html[data-theme="dark"] .core-ubb-separator__line::before { background: var(--text); }
html[data-theme="dark"] .core-ubb-separator--gradient .core-ubb-separator__line { background: linear-gradient(90deg, var(--text) 0%, var(--brand-accent) 52%, rgba(var(--brand-accent-rgb), 0.18) 100%); }
html[data-theme="dark"] .core-ubb-separator--double .core-ubb-separator__line { border-top-color: var(--text); border-bottom-color: var(--brand-accent); }

/* =========================================================
   Firma de persona
   ========================================================= */
.core-ubb-signature { margin: 2rem 0; max-width: 640px; }
.core-ubb-signature__inner { display: grid; grid-template-columns: clamp(100px, 20vw, 138px) minmax(0, 1fr); gap: 0.9rem; align-items: center; justify-items: start; padding: 1rem 1.1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-medium); background: var(--surface-strong); box-shadow: var(--shadow-soft); text-align: left; }
.core-ubb-signature__media { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.core-ubb-signature__photo,
.core-ubb-signature__placeholder { width: clamp(92px, 18vw, 132px); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--brand-accent); background: var(--surface); box-shadow: 0 14px 28px rgba(18, 33, 73, 0.1); object-fit: cover; }
.core-ubb-signature__placeholder { display: grid; place-items: center; color: var(--brand-accent); background: rgba(var(--brand-accent-rgb), 0.08); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; }
.core-ubb-signature__media-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.core-ubb-signature__media-actions .components-button { min-height: 2.2rem; }
.core-ubb-signature__content { display: grid; justify-items: start; gap: 0; min-width: 0; }
.core-ubb-signature__content .components-base-control { width: 100%; }
.core-ubb-signature__content .components-base-control__field { width: 100%; }
.core-ubb-signature__name { margin: 0 !important; font-family: var(--font-display) !important; font-size: clamp(1.22rem, 2vw, 1.7rem) !important; line-height: 1.04 !important; font-weight: 900 !important; text-transform: uppercase !important; color: var(--brand-indigo) !important; }
.core-ubb-signature__role { margin: 0.18rem 0 0 !important; font-family: var(--font-display) !important; font-size: 1.2rem !important; line-height: 1.05 !important; font-weight: 700 !important; letter-spacing: 0.01em !important; text-transform: uppercase !important; color: var(--brand-accent) !important; }
.core-ubb-signature__text { margin: 0.2rem 0 0; font-size: 1.04rem; line-height: 1.7; color: var(--text-soft); }
.core-ubb-signature__text p { margin: 0; }
.core-ubb-signature__text p:last-child { margin-bottom: 0; }
.core-ubb-signature__text p + p { margin-top: 0.85rem; }
html[data-theme="dark"] .core-ubb-signature__inner { border-color: rgba(255, 255, 255, 0.08); background: rgba(16, 28, 48, 0.96); }
html[data-theme="dark"] .core-ubb-signature__photo { background: rgba(8, 14, 24, 0.9); }
html[data-theme="dark"] .core-ubb-signature__placeholder { background: rgba(var(--brand-accent-rgb), 0.14); color: var(--brand-accent-hover); }
html[data-theme="dark"] .core-ubb-signature__name { color: var(--text) !important; }
html[data-theme="dark"] .core-ubb-signature__text { color: var(--text-soft); }

@media (max-width: 768px) {
  .core-ubb-signature__inner { grid-template-columns: clamp(84px, 24vw, 112px) minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 0.95rem; justify-items: start; text-align: left; }
  .core-ubb-signature__photo,
  .core-ubb-signature__placeholder { width: clamp(84px, 24vw, 112px); }
  .core-ubb-signature__content { justify-items: start; max-width: 100%; }
  .core-ubb-signature__role { font-size: clamp(0.88rem, 3.4vw, 1rem) !important; }
  .editor-cta__inner { padding: clamp(2rem, 6vw, 2.75rem) clamp(1.5rem, 5vw, 2rem); }
  .editor-cta__layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .editor-cta__content { justify-items: center; }
  .editor-cta__actions { justify-content: center; width: 100%; }
  .editor-cta__button { min-width: 0; width: auto; }
}

/* =========================================================
   Lista editorial
   ========================================================= */
.core-ubb-editorial-list { width: 100%; max-width: 100%; margin: 2rem 0; }
.core-ubb-editorial-list--editor { width: min(860px, 100%); }
.core-ubb-editorial-list--editor { justify-self: start; }
.core-ubb-editorial-list__grid { list-style: none; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.core-ubb-editorial-list--columns-2 .core-ubb-editorial-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.core-ubb-editorial-list--columns-1 .core-ubb-editorial-list__grid { grid-template-columns: minmax(0, 1fr); }
.core-ubb-editorial-list__item { width: 100%; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; margin: 0; padding: 1rem 1.05rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-medium); background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.98) 100%); box-shadow: var(--shadow-soft); }
.core-ubb-editorial-list__icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%; color: var(--brand-accent); font-size: 1.34rem; line-height: 1; }
.core-ubb-editorial-list__content { min-width: 0; }
.core-ubb-editorial-list__text { margin: 0 !important; font-family: var(--font-display) !important; font-size: 1.02rem !important; font-weight: 700 !important; line-height: 1.28 !important; letter-spacing: 0.01em !important; color: var(--text) !important; text-transform: uppercase !important; }
.core-ubb-editorial-list__remove { justify-self: end; }
.core-ubb-editorial-list__add { justify-self: start; }
.core-ubb-editorial-list__icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.core-ubb-editorial-list__icon-option { display: grid; gap: 0.35rem; justify-items: center; width: 100%; padding: 0.65rem 0.45rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-small); background: var(--surface); color: var(--text-soft); text-align: center; cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.core-ubb-editorial-list__icon-option.is-selected { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), 0.12); transform: translateY(-1px); }
.core-ubb-editorial-list__icon-swatch { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(var(--brand-accent-rgb), 0.08); color: var(--brand-accent); font-size: 1.15rem; }
.core-ubb-editorial-list__icon-label { font-size: 0.78rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
html[data-theme="dark"] .core-ubb-editorial-list__item { border-color: rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(18, 30, 49, 0.98) 0%, rgba(12, 21, 36, 0.98) 100%); }
html[data-theme="dark"] .core-ubb-editorial-list__icon-option { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--text-soft); }
html[data-theme="dark"] .core-ubb-editorial-list__icon-option.is-selected { border-color: var(--brand-accent); }
html[data-theme="dark"] .core-ubb-editorial-list__icon-swatch { background: rgba(var(--brand-accent-rgb), 0.14); color: var(--brand-accent-hover); }

@media (max-width: 768px) {
  .core-ubb-editorial-list__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .core-ubb-editorial-list__item { grid-template-columns: 2rem minmax(0, 1fr) auto; padding: 0.8rem 0.9rem; }
  .core-ubb-editorial-list__icon { width: 2.15rem; height: 2.15rem; font-size: 1.18rem; }
}

/* =========================================================
   Estadística
   ========================================================= */
.core-ubb-stat { width: min(760px, 100%); max-width: 100%; }
.core-ubb-stat--editor { justify-self: start; width: min(800px, 100%); }
.core-ubb-stat__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; justify-items: center; align-items: center; width: 100%; padding: 1.2rem 1.3rem; border-radius: var(--radius-medium); box-shadow: var(--shadow-soft); text-align: center; }
.core-ubb-stat--horizontal .core-ubb-stat__inner { grid-template-columns: clamp(4.2rem, 8vw, 5.8rem) minmax(0, 1fr); gap: 0.85rem; justify-items: stretch; text-align: left; }
.core-ubb-stat--editor.core-ubb-stat--white .core-ubb-stat__inner { background: var(--surface-strong); }
.core-ubb-stat--accent .core-ubb-stat__inner { background: var(--brand-accent); }
.core-ubb-stat--full-height { height: 100%; }
.core-ubb-stat--full-height .core-ubb-stat__inner { height: 100%; }
.core-ubb-stat--accent .core-ubb-stat__number,
.core-ubb-stat--accent .core-ubb-stat__title,
.core-ubb-stat--accent .core-ubb-stat__description { color: #fff !important; }
.core-ubb-stat__number { font-family: var(--font-display); font-size: clamp(1.45rem, 3.2vw, 2.35rem); font-weight: 900; line-height: 0.94; letter-spacing: -0.03em; color: var(--brand-accent); text-align: center; white-space: nowrap; }
.core-ubb-stat--editor .core-ubb-stat__number { font-size: clamp(1.28rem, 2.8vw, 2rem); line-height: 0.96; }
.core-ubb-stat--horizontal .core-ubb-stat__number { align-self: center; }
.core-ubb-stat__content { display: grid; gap: 0.15rem; justify-items: center; min-width: 0; max-width: 42ch; }
.core-ubb-stat--horizontal .core-ubb-stat__content { justify-items: start; max-width: none; text-align: left; }
.core-ubb-stat--horizontal .core-ubb-stat__title,
.core-ubb-stat--horizontal .core-ubb-stat__description { text-align: left; }
.core-ubb-stat__title { margin: 0 !important; font-family: var(--font-display) !important; font-size: clamp(0.98rem, 1.55vw, 1.2rem) !important; font-weight: 700 !important; line-height: 1.12 !important; letter-spacing: 0.01em !important; text-transform: uppercase !important; color: var(--text) !important; }
.core-ubb-stat__description { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-soft); }
.core-ubb-stat__description p { margin: 0; }
html[data-theme="dark"] .core-ubb-stat--white .core-ubb-stat__inner { background: rgba(16, 28, 48, 0.96); }
html[data-theme="dark"] .core-ubb-stat--white .core-ubb-stat__number { color: var(--brand-accent-hover); }
html[data-theme="dark"] .core-ubb-stat--white .core-ubb-stat__title { color: var(--text) !important; }
html[data-theme="dark"] .core-ubb-stat--white .core-ubb-stat__description { color: var(--text-soft); }
html[data-theme="dark"] .core-ubb-stat--accent .core-ubb-stat__inner { background: var(--brand-accent); }
.core-ubb-stat__description .block-editor-rich-text__editable { min-height: 0; }
@media (max-width: 768px) {
  .core-ubb-stat { width: min(100%, 620px); }
  .core-ubb-stat__inner { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.05rem; }
  .core-ubb-stat__number { font-size: clamp(1.35rem, 6.4vw, 1.9rem); }
  .core-ubb-stat--editor .core-ubb-stat__number { font-size: clamp(1.22rem, 5.8vw, 1.75rem); }
}
