/* ================================================
   CECCE Blocks — Frontend Styles
   Primary: #003570 | Secondary: #199B2D
   ================================================ */

:root {
  --cecce-primary:        #003570;
  --cecce-primary-dark:   #002a5a;
  --cecce-secondary:      #199B2D;
  --cecce-secondary-dark: #157a24;
  --cecce-white:          #FFFFFF;
  --cecce-light:          #F4F6FA;
  --cecce-dark:           #1A1A2E;
  --cecce-muted:          #6B7280;
  --cecce-border:         rgba(0, 53, 112, 0.10);
  --cecce-font:           'Manrope', sans-serif;
  --cecce-radius:         10px;
  --cecce-transition:     0.3s ease;
}

/* ── Block wrapper defaults (transparent, no dark bleed) ── */
.wp-block-cecce-banner-header,
.wp-block-cecce-titulo-banner,
.wp-block-cecce-titular,
.wp-block-cecce-revista-virtual,
.wp-block-cecce-dropdown-cecce,
.wp-block-cecce-lector-pdf,
.wp-block-cecce-tabs-cecce,
.wp-block-cecce-tab-item,
.wp-block-cecce-ubicacion-cecce,
.wp-block-cecce-contacto-cecce,
.wp-block-cecce-contacto-fields,
.wp-block-cecce-qr-cecce {
  background: transparent;
  display: block;
  text-align: left;
}

.wp-block-cecce-qr-cecce.aligncenter {
  text-align: center;
}

.wp-block-cecce-qr-cecce.alignright {
  text-align: right;
}

/* ── Lucide icons (SVG injected by lucide.createIcons) ── */
.cecce-icon,
[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

[data-lucide] svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Shared Button ─────────────────────────────── */
.cecce-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cecce-font);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--cecce-primary);
  background: var(--cecce-white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--cecce-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.cecce-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--cecce-primary);
}

.cecce-btn--primary {
  color: var(--cecce-secondary);
  background: var(--cecce-white);
}

.cecce-btn--primary:hover {
  color: var(--cecce-secondary-dark);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.cecce-btn--outline {
  background: transparent;
  color: var(--cecce-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.cecce-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cecce-white);
  text-decoration: none;
  color: var(--cecce-white);
}

.cecce-btn .cecce-icon,
.cecce-btn [data-lucide] {
  width: 16px;
  height: 16px;
}

/* ── 1. BANNER-HEADER ─────────────────────────── */
.cecce-banner-header {
  position: relative;
  width: 100%;
  min-height: var(--cecce-banner-min-h, 100vh);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #003570 0%, #1C2128 50%, #003570 100%);
  background-size: cover;
  background-position: center;
}

.cecce-banner-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cecce-banner-header__content {
  position: relative;
  z-index: 2;
  padding: 140px 48px 100px;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cecce-banner-header__content h1 {
  font-family: var(--cecce-font);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cecce-white);
  margin: 0;
  text-align: center;
}

.cecce-banner-header__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.cecce-banner-header__wave svg {
  display: block;
  width: 100%;
  height: 180px;
}

/* ── 2. TITULO-BANNER ─────────────────────────── */

/* Outer block wrapper handles text-align (set by WP textAlign support) */
.wp-block-cecce-titulo-banner {
  display: block;
}

/* Pill — inline so it respects the parent text-align */
.cecce-titulo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 50px;
  position: relative;
}

/* Blue blur variant (default) */
.cecce-titulo-banner--blur {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Green variant */
.cecce-titulo-banner--green {
  background: rgba(25, 128, 45, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(25, 128, 45, 0.2);
}

.cecce-titulo-banner--green .cecce-titulo-banner__text {
  color: rgb(13, 92, 28);
}

.cecce-titulo-banner--green .cecce-titulo-banner__dot {
  background: rgb(25, 128, 45);
  box-shadow: 0 0 8px rgba(25, 128, 45, 0.5);
}

.cecce-titulo-banner__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cecce-secondary);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(25, 155, 45, 0.6);
}

.cecce-titulo-banner__text {
  font-family: var(--cecce-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* ── 3. TITULAR ───────────────────────────────── */
.cecce-titular {
  font-family: var(--cecce-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cecce-muted);
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1.4;
}

/* ── 4. REVISTA-VIRTUAL ───────────────────────── */

/* ── Cover grid (listado) ── */
.cecce-rv {
  padding: 0;
}

/* ── Filter buttons ── */
.cecce-rv__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.cecce-rv__filter {
  appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  line-height: 1;
}

.cecce-rv__filter:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #e2e8f0;
}

.cecce-rv__filter.is-active {
  background: #2db84b;
  border-color: #2db84b;
  color: #ffffff;
}

.cecce-rv__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cecce-rv__item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  background: #1a2a3a;
}

.cecce-rv__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}

.cecce-rv__portada {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  flex: 1;
}

.cecce-rv__meta {
  background: rgba(0,0,0,0.6);
  padding: 8px 12px;
  text-align: center;
}

.cecce-rv__meta span {
  color: #94a3b8;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cecce-rv__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #003570 0%, #1165a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.cecce-rv__placeholder span {
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

/* ── Single revista viewer ── */
.cecce-rv-viewer {
  font-family: Manrope, sans-serif;
  color: #f1f5f9;
}

.cecce-rv-viewer__header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #003570 0%, #091e3a 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 100px 60px;
  margin-bottom: 0;
}

.cecce-rv-viewer__header-bg {
  position: absolute;
  inset: 0;
  background-image: var(--portada);
  background-size: cover;
  background-position: center top;
  filter: blur(16px) brightness(0.22);
  transform: scale(1.1);
}

.cecce-rv-viewer__header-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.cecce-rv-viewer__label {
  display: inline-block;
  background: rgba(45,184,75,0.18);
  border: 1px solid rgba(45,184,75,0.4);
  color: #2db84b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.cecce-rv-viewer__title {
  color: #ffffff;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cecce-rv-viewer__edicion {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cecce-rv-viewer__flipbook {
  background: #0a0a0a;
  line-height: 0;
}

.cecce-rv-viewer__flipbook iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

.cecce-rv-viewer__no-iframe {
  padding: 60px 40px;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
}

/* ── Recent section ── */
.cecce-rv-viewer__recent {
  background: #0f172a;
  padding: 64px 60px;
}

.cecce-rv-viewer__recent-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cecce-rv-viewer__recent-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(45,184,75,0.3);
}

.cecce-rv-viewer__recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cecce-rv-viewer__recent-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cecce-rv-viewer__recent-item:hover {
  transform: translateY(-3px);
}

.cecce-rv-viewer__recent-cover {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.cecce-rv-viewer__recent-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  background: linear-gradient(135deg, #003570 0%, #1165a8 100%);
}

.cecce-rv-viewer__recent-name {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  font-family: Manrope, sans-serif;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cecce-rv__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .cecce-rv-viewer__recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cecce-rv__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cecce-rv-viewer__header {
    min-height: 300px;
    padding: 64px 32px;
  }

  .cecce-rv-viewer__recent {
    padding: 48px 32px;
  }

  .cecce-rv-viewer__recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .cecce-rv__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cecce-rv-viewer__header {
    min-height: 240px;
    padding: 48px 24px;
  }

  .cecce-rv-viewer__recent {
    padding: 40px 20px;
  }

  .cecce-rv-viewer__recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cecce-rv-viewer__flipbook iframe {
    min-height: 400px;
  }
}

/* ── 5. DROPDOWN-CECCE ────────────────────────── */

/* Container: column of cards with gap */
.cecce-dropdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each item: white card with left primary accent border */
.cecce-dropdown__item {
  background: #ffffff;
  border-radius: var(--cecce-radius);
  border-left: 4px solid var(--cecce-primary);
  box-shadow: 0 2px 8px rgba(0, 53, 112, 0.06);
  overflow: hidden;
  transition: box-shadow var(--cecce-transition);
}

.cecce-dropdown__item.is-open {
  box-shadow: 0 4px 20px rgba(0, 53, 112, 0.12);
}

.cecce-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--cecce-dark);
  font-family: var(--cecce-font);
  font-weight: 700;
  font-size: 15px;
  transition: background var(--cecce-transition);
}

.cecce-dropdown__trigger:hover {
  background: rgba(0, 53, 112, 0.02);
}

/* Icon wrap: rounded-square */
.cecce-dropdown__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 53, 112, 0.08);
  flex-shrink: 0;
  transition: background var(--cecce-transition);
}

.cecce-dropdown__icon-wrap [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--cecce-primary);
  transition: color var(--cecce-transition);
}

.cecce-dropdown__icon-wrap [data-lucide] svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.cecce-dropdown__item.is-open .cecce-dropdown__icon-wrap {
  background: rgba(25, 155, 45, 0.12);
}

.cecce-dropdown__item.is-open .cecce-dropdown__icon-wrap [data-lucide] {
  color: var(--cecce-secondary);
}

.cecce-dropdown__title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--cecce-dark);
  transition: color var(--cecce-transition);
}

.cecce-dropdown__item.is-open .cecce-dropdown__title {
  color: var(--cecce-primary);
}

/* +/− toggle circle */
.cecce-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cecce-primary);
  flex-shrink: 0;
  transition: background var(--cecce-transition), border-color var(--cecce-transition);
}

.cecce-dropdown__item.is-open .cecce-dropdown__toggle {
  background: var(--cecce-secondary);
  border-color: var(--cecce-secondary);
}

/* Plus: visible by default; hidden when open */
.cecce-toggle-plus {
  color: var(--cecce-primary);
  display: inline-flex !important;
  width: 14px;
  height: 14px;
}

.cecce-toggle-minus {
  color: #ffffff;
  display: none !important;
  width: 14px;
  height: 14px;
}

.cecce-dropdown__item.is-open .cecce-toggle-plus {
  display: none !important;
}

.cecce-dropdown__item.is-open .cecce-toggle-minus {
  display: inline-flex !important;
}

/* Collapsible content panel */
.cecce-dropdown__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(0, 53, 112, 0.02);
}

.cecce-dropdown__inner {
  padding: 16px 20px 20px 76px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cecce-dropdown__line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: rgba(26, 26, 46, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

/* Inline SVG check bullet */
.cecce-dropdown__check-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 6. LECTOR PDF ────────────────────────────── */
.cecce-lector-pdf {
  border: 1px solid var(--cecce-border);
  border-radius: var(--cecce-radius);
  overflow: hidden;
  background: var(--cecce-white);
}

.cecce-lector-pdf__header {
  padding: 32px 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cecce-lector-pdf__title {
  font-family: var(--cecce-font);
  font-size: 24px;
  font-weight: 800;
  color: var(--cecce-dark);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.cecce-lector-pdf__description {
  font-family: var(--cecce-font);
  font-size: 14px;
  color: var(--cecce-muted);
  margin: 0;
  line-height: 1.5;
  text-align: center;
  max-width: 560px;
}

.cecce-lector-pdf__viewer {
  border-top: 1px solid var(--cecce-border);
  overflow: hidden;
  background: #f5f5f5;
}

.cecce-lector-pdf__viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.cecce-lector-pdf__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--cecce-muted);
  background: var(--cecce-light);
  padding: 40px;
}

.cecce-lector-pdf__download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: var(--cecce-primary);
  color: var(--cecce-white);
  text-decoration: none;
  font-family: var(--cecce-font);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--cecce-radius);
  transition: background var(--cecce-transition);
  box-sizing: border-box;
}

.cecce-lector-pdf__download-btn:hover {
  background: var(--cecce-primary-dark);
  color: var(--cecce-white);
  text-decoration: none;
}

.cecce-lector-pdf__download-btn svg {
  flex-shrink: 0;
}

/* ── 7. TABS-CECCE ────────────────────────────── */

/* Outer wrapper */
.cecce-tabs-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cecce-border);
  background: var(--cecce-white);
}

/* Navigation bar */
.cecce-tabs-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--cecce-light);
  border-bottom: 1px solid var(--cecce-border);
  scroll-snap-type: x mandatory;
}

.cecce-tabs-nav::-webkit-scrollbar {
  display: none;
}

/* Each tab button: proportional share of the bar */
.cecce-tabs-nav__btn {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--cecce-border);
  cursor: pointer;
  font-family: var(--cecce-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--cecce-muted);
  transition: background var(--cecce-transition), color var(--cecce-transition);
  scroll-snap-align: start;
  white-space: nowrap;
}

.cecce-tabs-nav__btn:last-child {
  border-right: none;
}

.cecce-tabs-nav__btn:hover {
  background: rgba(0, 53, 112, 0.05);
  color: var(--cecce-primary);
}

.cecce-tabs-nav__btn.is-active {
  background: var(--cecce-primary);
  color: var(--cecce-white);
  border-right-color: var(--cecce-primary);
}

/* Nav icon */
.cecce-tabs-nav__btn [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Count badge */
.cecce-tabs-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 53, 112, 0.12);
  color: var(--cecce-primary);
  transition: background var(--cecce-transition), color var(--cecce-transition);
}

.cecce-tabs-nav__btn.is-active .cecce-tabs-nav__count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--cecce-white);
}

/* Content panels: hidden by default */
.cecce-tabs-panel {
  display: none;
  padding: 24px;
}

.cecce-tabs-panel.is-active {
  display: block;
}

/* Grid inside each panel */
.cecce-tabs-panel__grid {
  display: grid;
  grid-template-columns: repeat(var(--ti-cols, 3), 1fr);
  gap: 12px;
}

.cecce-tab-item__empty {
  font-family: var(--cecce-font);
  font-size: 13px;
  color: var(--cecce-muted);
  margin: 0;
  grid-column: 1 / -1;
}

/* ── Card ──────────────────────────────────────── */
.cecce-tab-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 11px;
  border: 1.5px solid #E8EDF5;
  text-decoration: none;
  font-family: var(--cecce-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--cecce-primary);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  overflow: hidden;
}

.cecce-tab-card:hover {
  background: rgba(0, 53, 112, 0.04);
  border-color: var(--cecce-primary);
  box-shadow: 0 4px 12px rgba(0, 53, 112, 0.08);
  text-decoration: none;
  color: var(--cecce-primary);
}

/* Logo square */
.cecce-tab-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0, 53, 112, 0.07);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cecce-tab-card__logo [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--cecce-primary);
}

.cecce-tab-card__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Name */
.cecce-tab-card__name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--cecce-primary);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Arrow → appears on hover */
.cecce-tab-card__arrow {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--cecce-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cecce-tab-card:hover .cecce-tab-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── 8. ESTRUCTURA-CECCE ─────────────────────── */

.cecce-estructura-wrapper {
  position: relative;
}

.cecce-estructura-empty {
  text-align: center;
  color: var(--cecce-muted);
  font-family: var(--cecce-font);
  padding: 48px;
}

/* ── Org chart layout ──────────────────────────── */
.cecce-org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* A single node = its card + optional children below */
.cecce-org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card wrapper: add vertical stem below when node has children */
.cecce-org-node--has-children > .cecce-org-card-wrap::after {
  content: '';
  display: block;
  width: 2px;
  height: 32px;
  background: #c5cdd8;
  margin: 0 auto;
}

/* Children container: row of branch nodes */
.cecce-org-children {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

/* Align branch nodes to the top of the row: leaf cards must not stretch
   to match the height of siblings that carry a subtree below them */
.cecce-org-children {
  align-items: flex-start;
}

/* Each branch node: the portion of horizontal bar + vertical stem + the subtree */
.cecce-org-branch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 32px; /* space for vertical stem */
}

/* Node inside branch: own natural height, centered horizontally */
.cecce-org-branch-node > .cecce-org-node {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card wrap: natural height */
.cecce-org-branch-node > .cecce-org-node > .cecce-org-card-wrap {
  flex: none;
  display: flex;
  flex-direction: column;
}

/* Card: natural height */
.cecce-org-branch-node > .cecce-org-node > .cecce-org-card-wrap > .cecce-org-card {
  flex: none;
}

/* Vertical stem from horizontal bar down into the card */
.cecce-org-branch-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 32px;
  background: #c5cdd8;
}

/* Horizontal bar portion: each branch node carries its share */
.cecce-org-branch-node::after {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  background: #c5cdd8;
  left: -10px;
  right: -10px; /* default: middle children span full width */
}

/* First child: bar starts at center, goes right */
.cecce-org-children > .cecce-org-branch-node:first-child::after {
  left: 50%;
  right: -10px;
}

/* Last child: bar goes from left to center */
.cecce-org-children > .cecce-org-branch-node:last-child::after {
  left: -10px;
  right: 50%;
}

/* Only child: no horizontal bar (just the vertical stem) */
.cecce-org-children > .cecce-org-branch-node:only-child::after {
  display: none;
}

/* ── Member card ───────────────────────────────── */
.cecce-org-card {
  position: relative;
  background: var(--cecce-white);
  border-radius: 16px;
  border: 1px solid #E8EDF5;
  border-top: 4px solid var(--member-color, #003570);
  box-shadow: 0 2px 12px rgba(0, 53, 112, 0.06);
  padding: 20px 18px 16px;
  text-align: center;
  width: 210px;         /* fixed width — all cards uniform */
  min-width: 210px;
  box-sizing: border-box;
  transition: box-shadow var(--cecce-transition), transform var(--cecce-transition);
  cursor: pointer;
}

.cecce-org-card:hover {
  box-shadow: 0 8px 28px rgba(0, 53, 112, 0.14);
  transform: translateY(-3px);
}

/* Avatar */
.cecce-org-card__avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

/* Glow ring — hidden by default, expands on hover */
.cecce-org-card__avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--member-color, #003570);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 12px var(--member-color, #003570);
  pointer-events: none;
}

.cecce-org-card:hover .cecce-org-card__avatar-ring {
  opacity: 0.6;
  transform: scale(1);
}

.cecce-org-card__avatar-img,
.cecce-org-card__avatar-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cecce-org-card__avatar-img {
  object-fit: cover;
  border: 2px solid #E8EDF5;
}

.cecce-org-card__avatar-initials {
  background: var(--member-color, #003570);
  color: var(--cecce-white);
  font-family: var(--cecce-font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Position badge */
.cecce-org-card__badge {
  display: inline-block;
  background: var(--member-color, #003570);
  color: var(--cecce-white);
  font-family: var(--cecce-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  line-height: 1.4;
  white-space: nowrap;        /* never wrap to a second line */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Name */
.cecce-org-card__name {
  font-family: var(--cecce-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--cecce-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

/* "Ver Perfil" button — slides in on hover */
.cecce-org-card__profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cecce-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--cecce-muted);
  padding: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.cecce-org-card__profile-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke 0.2s;
}

.cecce-org-card:hover .cecce-org-card__profile-btn {
  opacity: 1;
  transform: translateY(0);
  color: var(--member-color, #003570);
}

/* ── Profile modal ─────────────────────────────── */
.cecce-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cecce-profile-modal[hidden] {
  display: none;
}

.cecce-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cecce-profile-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: cecce-modal-in 0.28s ease;
}

@keyframes cecce-modal-in {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

.cecce-profile-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--cecce-white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cecce-transition);
}

.cecce-profile-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Header (colored bg) */
.cecce-profile-modal__header {
  background: var(--cecce-primary);
  padding: 48px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Modal avatar */
.cecce-profile-modal__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.cecce-profile-modal__avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.cecce-profile-modal__avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.cecce-profile-modal__avatar-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cecce-font);
  font-size: 32px;
  font-weight: 800;
  color: var(--cecce-white);
  letter-spacing: 0.04em;
}

.cecce-profile-modal__photo-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cecce-font);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.cecce-profile-modal__photo-hint svg {
  flex-shrink: 0;
}

/* Body (white) */
.cecce-profile-modal__body {
  background: var(--cecce-white);
  padding: 32px;
  text-align: center;
}

.cecce-profile-modal__badge {
  display: inline-block;
  color: var(--cecce-white);
  font-family: var(--cecce-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.cecce-profile-modal__name {
  font-family: var(--cecce-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--cecce-primary);
  margin: 0 0 6px;
  line-height: 1.3;
}

.cecce-profile-modal__dept {
  font-family: var(--cecce-font);
  font-size: 14px;
  color: var(--cecce-muted);
  margin: 0 0 16px;
}

.cecce-profile-modal__divider {
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--cecce-secondary);
  margin: 0 auto 20px;
}

.cecce-profile-modal__desc {
  font-family: var(--cecce-font);
  font-size: 14px;
  color: var(--cecce-dark);
  line-height: 1.7;
  text-align: left;
}

.cecce-profile-modal__desc a {
  color: var(--cecce-primary);
  font-weight: 600;
  text-decoration: underline;
}

.cecce-profile-modal__desc a:hover {
  color: var(--cecce-secondary);
}

/* Buttons inside description */
.cecce-profile-modal__desc .cecce-btn {
  margin-top: 12px;
}

/* ── 9. UBICACION-CECCE ───────────────────────── */
.cecce-ubicacion {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.cecce-ubicacion iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cuando el mapa está junto a otro bloque en columnas, se estira
   para igualar la altura del bloque hermano (ej. formulario de contacto) */
.wp-block-column:has(.cecce-ubicacion) {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.wp-block-column:has(.cecce-ubicacion) .wp-block-cecce-ubicacion-cecce {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wp-block-column:has(.cecce-ubicacion) .cecce-ubicacion {
  flex: 1;
  height: auto !important;
  min-height: 300px;
}

/* ── 9. CONTACTO-CECCE (glass wrapper) ─────────── */
.cecce-contacto-wrapper {
  display: block;
}

.cecce-contacto-glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 40px;
}

/* ── 10. CONTACTO-FIELDS ───────────────────────── */
.cecce-contacto {
  display: flex;
  flex-direction: column;
}

.cecce-contacto__title {
  font-family: var(--cecce-font);
  font-size: 28px;
  font-weight: 800;
  color: var(--cecce-white);
  margin: 0 0 32px;
}

.cecce-contacto__fields {
  display: flex;
  flex-direction: column;
}

.cecce-contacto__field {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cecce-contacto__field:last-child {
  border-bottom: none;
}

.cecce-contacto__field-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cecce-contacto__field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.cecce-contacto__field-icon [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--cecce-white);
}

.cecce-contacto__field-label {
  font-family: var(--cecce-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.cecce-contacto__field-value {
  font-family: var(--cecce-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--cecce-white);
  margin: 0;
}

.cecce-contacto__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cecce-contacto__field-hours {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-top: 2px !important;
}

.cecce-contacto__field .cecce-btn--primary {
  margin-top: 14px;
}

button.cecce-contacto__call-btn {
  appearance: none;
  -webkit-appearance: none;
}

/* ── Phone selector popup ─────────────────────────── */
.cecce-phone-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cecce-phone-popup[hidden] {
  display: none;
}

.cecce-phone-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cecce-phone-popup__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.cecce-phone-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0, 53, 112, 0.1);
}

.cecce-phone-popup__title {
  font-family: var(--cecce-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--cecce-primary);
}

.cecce-phone-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #999;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
}

.cecce-phone-popup__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #555;
}

.cecce-phone-popup__close [data-lucide] {
  width: 18px;
  height: 18px;
}

.cecce-phone-popup__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.cecce-phone-popup__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cecce-phone-popup__item:last-child {
  border-bottom: none;
}

.cecce-phone-popup__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.cecce-phone-popup__link:hover {
  background: rgba(0, 53, 112, 0.05);
  text-decoration: none;
}

.cecce-phone-popup__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 53, 112, 0.08);
  flex-shrink: 0;
}

.cecce-phone-popup__item-icon [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--cecce-primary);
}

.cecce-phone-popup__item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cecce-phone-popup__item-label {
  font-family: var(--cecce-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.cecce-phone-popup__item-number {
  font-family: var(--cecce-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--cecce-primary);
}

/* ── 11. QR-CECCE ─────────────────────────────── */
.cecce-qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 53, 112, 0.10);
  border: 1px solid var(--cecce-border);
}

.cecce-qr-card__image {
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.cecce-qr-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cecce-light);
  border-radius: 8px;
  color: var(--cecce-muted);
}

.cecce-qr-card__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cecce-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cecce-muted);
  line-height: 1;
}

.cecce-qr-card__caption svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {

  /* Cap banner height on mobile: respects attribute values below the cap,
     but prevents overly tall heroes when vh is set high (e.g. 100vh → 68vh) */
  .cecce-banner-header {
    min-height: min(var(--cecce-banner-min-h, 100vh), 68vh);
  }

  .cecce-banner-header__content {
    padding: 88px 20px 52px;
  }

  /* Tabs: nav buttons no longer stretch — allow horizontal scroll */
  .cecce-tabs-nav__btn {
    flex: 0 0 auto;
  }

  .cecce-tabs-panel__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cecce-lector-pdf__header {
    padding: 24px 24px 16px;
  }

  .cecce-contacto-glass {
    padding: 28px 24px;
  }

  /* ── Org chart: vertical tree on mobile ─────────── */
  .cecce-org-chart {
    align-items: stretch;
    padding: 20px 12px;
    overflow-x: visible;
  }

  /* Nodes stretch full width */
  .cecce-org-node {
    align-items: stretch;
  }

  /* Hide desktop vertical stem below parent card */
  .cecce-org-node--has-children > .cecce-org-card-wrap::after {
    display: none;
  }

  /* Children: flat vertical stack, no indentation or connector lines */
  .cecce-org-children {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    border: none;
  }

  /* Branch node: just a small gap, no positioning tricks */
  .cecce-org-branch-node {
    padding-top: 10px;
    align-items: stretch;
  }

  /* Hide all connector pseudo-elements */
  .cecce-org-branch-node::before,
  .cecce-org-branch-node::after,
  .cecce-org-children > .cecce-org-branch-node:first-child::after,
  .cecce-org-children > .cecce-org-branch-node:last-child::after,
  .cecce-org-children > .cecce-org-branch-node:only-child::after {
    display: none;
  }

  /* Reset equal-height flex chain (not needed in vertical layout) */
  .cecce-org-branch-node > .cecce-org-node,
  .cecce-org-branch-node > .cecce-org-node > .cecce-org-card-wrap,
  .cecce-org-branch-node > .cecce-org-node > .cecce-org-card-wrap > .cecce-org-card {
    flex: none;
  }

  /* Card: compact horizontal grid — avatar | content */
  .cecce-org-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    text-align: left;
    padding: 12px 14px;
  }

  /* Avatar spans all content rows */
  .cecce-org-card__avatar-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 52px;
    height: 52px;
    margin: 0;
    align-self: center;
  }

  .cecce-org-card__avatar-img,
  .cecce-org-card__avatar-initials {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .cecce-org-card__badge {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 2px;
    font-size: 8px;
    align-self: end;
  }

  .cecce-org-card__name {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    margin: 0;
    align-self: center;
    white-space: normal;
  }

  /* "Ver perfil" always visible on touch devices */
  .cecce-org-card__profile-btn {
    grid-column: 2;
    grid-row: 3;
    opacity: 1;
    transform: none;
    justify-content: flex-start;
    font-size: 11px;
    margin-top: 2px;
    align-self: start;
  }

  /* Profile modal */
  .cecce-profile-modal__box {
    max-width: 100%;
    border-radius: 16px;
  }

  .cecce-profile-modal__header {
    padding: 40px 24px 28px;
  }

  .cecce-profile-modal__body {
    padding: 24px;
  }

  .cecce-profile-modal__name {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cecce-tabs-panel__grid {
    grid-template-columns: 1fr;
  }

  .cecce-tabs-panel {
    padding: 16px;
  }
}

/* Mobile: titulo-banner wraps and fits the screen width */
@media (max-width: 600px) {
  .cecce-titulo-banner {
    max-width: 90vw;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cecce-titulo-banner__text {
    font-size: clamp(8px, 2.6vw, 11px);
    letter-spacing: clamp(0.06em, 0.6vw, 0.18em);
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cecce-dropdown__inner {
    padding-left: 24px;
  }
}

/* ── 10. OFERTA EDUCATIVA ─────────────────────────────── */

.cecce-oe {
  font-family: Manrope, sans-serif;
  color: #1d2327;
}

/* ════════════════════════════
   STATS BAR
════════════════════════════ */
.cecce-oe__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}

.cecce-oe__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 22px 34px;
  gap: 4px;
}

.cecce-oe__stat:nth-child(odd)  { background: linear-gradient(135deg, rgb(0, 53, 112) 0%, rgb(26, 111, 196) 100%); }
.cecce-oe__stat:nth-child(even) { background: linear-gradient(135deg, rgb(13, 110, 26) 0%, rgb(37, 196, 54) 100%); }

.cecce-oe__stat-lbl {
  display: none;
}

.cecce-oe__stat-val {
  font-size: clamp(18px, 2.8vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.cecce-oe__stat-sub {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}

/* ════════════════════════════
   BODY: SIDEBAR + PANELS
════════════════════════════ */
.cecce-oe__body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0 36px;
  align-items: start;
  margin-bottom: 48px;
}

/* ── Sidebar ── */
.cecce-oe__sidebar-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #999;
  margin: 0 0 16px;
}

.cecce-oe__sidebar-line {
  flex: 1;
  height: 1.5px;
  background: #e5e7eb;
}

.cecce-oe__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid #e5e7eb;
}

.cecce-oe__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 18px 14px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: transparent;
}

.cecce-oe__list-item:hover { background: #f6f9ff; }

.cecce-oe__list-item.is-active {
  border-left-color: #2DB84B;
  background: #f6f9ff;
}

.cecce-oe__item-num {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  min-width: 22px;
  flex-shrink: 0;
}

.cecce-oe__list-item.is-active .cecce-oe__item-num { color: #2DB84B; }

.cecce-oe__item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.35;
}

.cecce-oe__list-item.is-active .cecce-oe__item-name {
  color: #003570;
  font-weight: 800;
}

.cecce-oe__item-arrow {
  font-size: 14px;
  color: #2DB84B;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}

.cecce-oe__list-item.is-active .cecce-oe__item-arrow {
  opacity: 1;
  transform: none;
}

/* Doubts card */
.cecce-oe__doubts {
  background: linear-gradient(to right bottom, rgb(0,53,112), rgb(0,75,142) 60%, rgb(26,111,196));
  border-radius: 10px;
  padding: 20px 20px 18px;
  color: #fff;
}

.cecce-oe__doubts-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.cecce-oe__doubts-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin: 0 0 16px;
}

.cecce-oe__doubts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2DB84B;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}

.cecce-oe__doubts-btn:hover {
  background: #25a040;
  color: #fff;
}

/* ── Panels ── */
.cecce-oe__panel {
  display: none;
}

.cecce-oe__panel.is-active {
  display: block;
}

/* Panel header: badge (left) + RVOE+watermark corner (right) */
.cecce-oe__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cecce-oe__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 20px;
}

.cecce-oe__badge--spec {
  background: rgb(227, 247, 230);
  color: rgb(18, 122, 34);
}

.cecce-oe__badge-dot {
  font-size: 8px;
}

.cecce-oe__badge--rvoe {
  background: #1C2B4A;
  color: rgba(255,255,255,.9);
  padding: 9px 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.cecce-oe__badge--conocer {
  background: #7B3F00;
  color: rgba(255,255,255,.9);
  padding: 9px 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Watermark: white fill + green stroke; RVOE badge floats centered over it */
.cecce-oe__panel-corner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cecce-oe__watermark {
  font-size: clamp(60px, 9vw, 110px);
  font-weight: 900;
  color: #ffffff;
  -webkit-text-stroke: 2px #2DB84B;
  text-stroke: 2px #2DB84B;
  line-height: 1;
  font-family: Manrope, sans-serif;
  letter-spacing: -.02em;
  pointer-events: none;
  user-select: none;
  opacity: .5;
  display: block;
}

/* Bordered content area */
.cecce-oe__panel-inner {
  position: relative;
  border: 1px solid rgba(1, 73, 138, 0.14);
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 28px 44px 40px;
}

.cecce-oe__panel-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 5px;
  background: linear-gradient(to bottom, rgb(0,75,142) 0%, rgb(25,158,45) 100%);
  border-radius: 4px 0 0 4px;
}

.cecce-oe__prog-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #003570;
  line-height: 1.2;
  margin: 0 0 18px;
}

.cecce-oe__prog-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 0;
  text-align: justify;
}

.cecce-oe__prog-desc p { margin: 0 0 .8em; }
.cecce-oe__prog-desc p:last-child { margin-bottom: 0; }

/* Divider between description and cards */
.cecce-oe__divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

/* 2 × 3 info cards */
.cecce-oe__ic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cecce-oe__ic {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #f4f7fb;
}

.cecce-oe__ic-icon {
  width: 17px;
  height: 17px;
  color: #0D6BBF;
  flex-shrink: 0;
}

.cecce-oe__ic-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aab;
}

.cecce-oe__ic-val {
  font-size: 13px;
  font-weight: 600;
  color: #0D6BBF;
  line-height: 1.4;
}

/* ════════════════════════════
   INFORMACIÓN GENERAL
════════════════════════════ */
.cecce-oe__gen {
  display: none;
  margin-top: 16px;
}

.cecce-oe__gen.is-active {
  display: block;
}

.cecce-oe__gen-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.cecce-oe__gen-hd-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #999;
}

.cecce-oe__gen-hd-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #2DB84B;
  border-radius: 2px;
}

.cecce-oe__gen-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cecce-oe__gen-counter {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  min-width: 36px;
  text-align: right;
}

.cecce-oe__gen-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
  padding: 0;
}

.cecce-oe__gen-btn:hover {
  border-color: #003570;
  color: #fff;
  background: #003570;
}

/* Carousel: CSS grid overlay for smooth fade */
.cecce-oe__gen-viewport {
  display: grid;
}

.cecce-oe__gen-card {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.cecce-oe__gen-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cecce-oe__gen-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #004b8e, #0d6bbf);
  color: #fff;
  padding: 14px 22px;
}

.cecce-oe__gen-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  flex-shrink: 0;
}

.cecce-oe__gen-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cecce-oe__gen-card-bd {
  padding: 22px 26px;
  background: #fff;
  columns: 2;
  column-gap: 32px;
}

.cecce-oe__gen-item {
  position: relative;
  padding-left: 18px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  break-inside: avoid;
}

.cecce-oe__gen-item:last-child { margin-bottom: 0; }

.cecce-oe__gen-item::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: #003570;
  font-weight: 700;
}

/* Progress bar */
.cecce-oe__progress {
  height: 3px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}

.cecce-oe__progress-fill {
  height: 3px;
  background: linear-gradient(to right, #004b8e, #2DB84B);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 900px) {
  .cecce-oe__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cecce-oe__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cecce-oe__ic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cecce-oe__panel-inner {
    padding: 28px 24px 24px;
  }

  .cecce-oe__gen-card-bd {
    columns: 1;
  }
}

@media (max-width: 600px) {
  .cecce-oe {
    width: 95vw;
    margin-left: calc(50% - 47.5vw);
  }

  .cecce-oe__stats {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .cecce-oe__stat {
    padding: 18px 20px 16px;
  }

  .cecce-oe__stat-val {
    font-size: 24px;
  }

  .cecce-oe__ic-grid {
    grid-template-columns: 1fr;
  }

  .cecce-oe__panel-inner {
    padding: 20px 18px;
  }

  .cecce-oe__watermark {
    display: none;
  }

  /* ── Sidebar list → 2-column card grid ── */
  .cecce-oe__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: none;
    margin-bottom: 16px;
  }

  .cecce-oe__list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 12px 14px;
    border: 1px solid #e5e7eb;
    border-left-width: 1px;
    border-radius: 8px;
    background: #fff;
    min-height: 68px;
  }

  .cecce-oe__list-item:hover {
    background: #f6f9ff;
  }

  .cecce-oe__list-item.is-active {
    background: #003570;
    border-color: #003570;
    border-left-color: #003570;
  }

  .cecce-oe__list-item.is-active .cecce-oe__item-num {
    color: #2DB84B;
  }

  .cecce-oe__list-item.is-active .cecce-oe__item-name {
    color: #fff;
    font-weight: 800;
  }

  .cecce-oe__item-num {
    font-size: 10px;
    min-width: auto;
  }

  .cecce-oe__item-name {
    font-size: 11px;
    color: #374151;
    line-height: 1.35;
    font-weight: 600;
  }

  .cecce-oe__item-arrow {
    display: none;
  }

  /* ── Panel corner: cert badges inline (watermark hidden) ── */
  .cecce-oe__badge--rvoe,
  .cecce-oe__badge--conocer {
    position: static;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════
   FOOTER CECCE
   ══════════════════════════════════════════════════ */

.cecce-footer {
  background: #002a5a;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--cecce-font);
}

/* ── Inner grid ──────────────────────────────────── */
.cecce-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

/* ── Brand column ────────────────────────────────── */
.cecce-footer__logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
}

.cecce-footer__logo-accent {
  color: var(--cecce-secondary);
}

.cecce-footer__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 24px;
  max-width: 340px;
}

/* ── Social icons ────────────────────────────────── */
.cecce-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cecce-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.cecce-footer__social-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ── Nav columns ─────────────────────────────────── */
.cecce-footer__col {
  display: flex;
  flex-direction: column;
}

.cecce-footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cecce-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cecce-footer__nav li a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.cecce-footer__nav li a:hover,
.cecce-footer__nav li.current-menu-item a {
  color: #ffffff;
}

/* ── Bottom bar ──────────────────────────────────── */
.cecce-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 24px;
  text-align: center;
}

.cecce-footer__copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* ── Block wrapper reset ─────────────────────────── */
.wp-block-cecce-footer-bar {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .cecce-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 36px;
  }

  .cecce-footer__desc {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════
   LISTADO DE OFERTAS EDUCATIVAS
   ══════════════════════════════════════════════════ */

.cecce-lo {
  font-family: var(--cecce-font);
}

/* ── Encabezado de sección ───────────────────────── */
.cecce-lo__header {
  text-align: center;
  margin-bottom: 52px;
}

.cecce-lo__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(25, 155, 45, 0.08);
  color: var(--cecce-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(25, 155, 45, 0.2);
  margin-bottom: 18px;
}

.cecce-lo__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--cecce-dark);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cecce-lo__subtitle {
  font-size: 16px;
  color: var(--cecce-muted);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.65;
}

/* ── Grid de tarjetas ────────────────────────────── */
.cecce-lo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Tarjeta ─────────────────────────────────────── */
.cecce-lo__card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cecce-lo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Cabecera oscura con gradiente */
.cecce-lo__card-head {
  background: linear-gradient(145deg, var(--lo-from, #091e3a), var(--lo-to, #1a4080));
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Número decorativo de fondo */
.cecce-lo__card-watermark {
  position: absolute;
  right: 14px;
  bottom: -4px;
  font-size: 110px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Fila superior: tipo badge + conteo de programas */
.cecce-lo__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cecce-lo__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(25, 155, 45, 0.18);
  color: #5de87d;
  border: 1px solid rgba(25, 155, 45, 0.35);
}

.cecce-lo__prog-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.cecce-lo__prog-count i {
  width: 12px;
  height: 12px;
}

/* Título de la oferta */
.cecce-lo__card-title {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Chips de info */
.cecce-lo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.cecce-lo__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 10px;
  line-height: 1;
}

.cecce-lo__chip i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cecce-lo__chip--green {
  color: #5de87d;
  background: rgba(25, 155, 45, 0.14);
  border-color: rgba(25, 155, 45, 0.3);
}

.cecce-lo__chip--blue {
  color: #7ab8f5;
  background: rgba(25, 100, 220, 0.14);
  border-color: rgba(25, 100, 220, 0.28);
}

.cecce-lo__chip--mixed {
  color: #f5c07a;
  background: rgba(220, 140, 25, 0.14);
  border-color: rgba(220, 140, 25, 0.28);
}

/* Pie blanco */
.cecce-lo__card-foot {
  background: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 3px solid rgba(0, 53, 112, 0.06);
}

/* Precio */
.cecce-lo__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cecce-lo__price-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--cecce-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cecce-lo__price-sub {
  font-size: 11px;
  color: var(--cecce-muted);
  font-weight: 500;
}

/* CTA button */
.cecce-lo__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--cecce-primary);
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cecce-lo__cta:hover {
  background: var(--cecce-primary-dark);
  transform: translateX(2px);
}

.cecce-lo__cta i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .cecce-lo__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cecce-lo__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cecce-lo__header {
    margin-bottom: 36px;
  }

  .cecce-lo__card-watermark {
    font-size: 80px;
  }
}
