/* ══════════════════════════════════════════════
 * CECA Banner Widget — Estilos BEM
 * Variables CSS3 del tema ceca-theme
 * ══════════════════════════════════════════════ */

/* ── Animaciones de entrada ── */
@keyframes cecaBannerFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Bloque principal ── */
.ceca-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 416px;
  overflow: hidden;
}

/* ── Fondo (imagen / vídeo) ── */
.ceca-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ceca-banner__image,
.ceca-banner__video {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* ── Overlay oscuro fijo ── */
.ceca-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* ── Contenido textual ── */
.ceca-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1145px;
  padding: 40px 24px;
  text-align: center;
}

/* ── Categoría ── */
.ceca-banner__category {
  display: block;
  margin-bottom: 16px;
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ceca-white, #ffffff);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  animation: cecaBannerFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

/* ── Título (h1 contenedor) ── */
.ceca-banner__title {
  margin: 0;
  padding: 0;
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 48px;
  line-height: 1.15;
  color: var(--ceca-white, #ffffff);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  animation: cecaBannerFadeUp 0.6s ease both;
  animation-delay: 0.25s;
}

/* ── Título bold ── */
.ceca-banner__title-bold {
  display: block;
  font-weight: 700;
}

/* ── Título italic extralight ── */
.ceca-banner__title-italic {
  display: block;
  font-weight: 400;
  font-style: italic;
}

/* ══════════════════════════════════════════════
 * Responsive — Tablet (≤ 1024px)
 * ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ceca-banner__title {
    font-size: 36px;
  }

  .ceca-banner__category {
    font-size: 13px;
  }

  .ceca-banner__content {
    max-width: 700px;
    padding: 32px 20px;
  }
}

/* ══════════════════════════════════════════════
 * Responsive — Mobile (≤ 768px)
 * ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ceca-banner {
    min-height: 230px !important;
  }
  .ceca-banner__title {
    font-size: 28px;
  }

  .ceca-banner__category {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .ceca-banner__content {
    padding: 24px 16px;
  }
}
