/* ============================================================
   Zentria — Formación Bonificada (FORMACION PLUS)
   Bloque destacado en el HOME: "Nuevo Servicio"
   Paleta: azul Microsoft (#0078C8) + verde (#107C10) + ámbar (#F59E0B)
   ============================================================ */

:root {
  --fb-blue: #0078C8;
  --fb-blue-2: #00A4EF;
  --fb-green: #107C10;
  --fb-amber: #F59E0B;
  --fb-grad: linear-gradient(135deg, #0078C8 0%, #00A4EF 55%, #107C10 130%);
  --fb-grad-soft: linear-gradient(135deg, rgba(0, 120, 200, 0.13), rgba(16, 124, 16, 0.11));
}

/* ============================================================
   BLOQUE DESTACADO DEL HOME
   ============================================================ */
.fbf-section {
  position: relative;
  padding: 56px 0;
  background:
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--fb-blue) 10%, transparent), transparent 55%),
    radial-gradient(80% 130% at 0% 100%, color-mix(in srgb, var(--fb-green) 8%, transparent), transparent 58%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.fbf {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

/* Cintas diagonales decorativas (efecto "nueva servicio") */
.fbf-ribbon {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  opacity: 0.07;
}
.fbf-ribbon-tl {
  top: -110px;
  right: -70px;
  background: repeating-linear-gradient(45deg, var(--fb-blue) 0 10px, transparent 10px 22px);
  transform: rotate(-12deg);
}
.fbf-ribbon-br {
  bottom: -130px;
  left: -90px;
  background: repeating-linear-gradient(45deg, var(--fb-green) 0 10px, transparent 10px 22px);
  transform: rotate(-12deg);
}
.fbf-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fb-blue) 16%, transparent), transparent 62%);
  pointer-events: none;
  animation: fbf-pulse 6s ease-in-out infinite;
}
@keyframes fbf-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.fbf-body { position: relative; z-index: 2; }

/* Badge "NUEVO SERVICIO" con punto pulsante */
.fbf-newbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0078C8, #00A4EF);
  color: #fff;
  padding: 7px 16px 7px 13px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px -6px rgba(0, 120, 200, 0.65);
}
.fbf-newbadge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: fbf-blink 1.6s ease-in-out infinite;
}
@keyframes fbf-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.fbf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-green);
  margin-bottom: 12px;
}
.fbf-eyebrow svg { width: 16px; height: 16px; }

.fbf-title {
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 640px;
}
.fbf-desc {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 620px;
  margin-bottom: 24px;
}

.fbf-bullets {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
}
.fbf-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--fg-soft);
}
.fbf-bullets li svg { width: 17px; height: 17px; color: var(--fb-green); flex-shrink: 0; margin-top: 2px; }

.fbf-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.fbf-ctas .pill svg { width: 17px; height: 17px; }
.fbf-cta-primary {
  background: var(--fb-grad) !important;
  background-image: var(--fb-grad) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px -10px rgba(0, 120, 200, 0.7);
}
.fbf-cta-primary:hover { transform: translateY(-2px); }

/* Botón de dossier PDF dentro del bloque destacado */
.fbf-dossier-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed color-mix(in srgb, var(--fb-blue) 45%, var(--border-strong));
  background: color-mix(in srgb, var(--fb-blue) 7%, transparent);
  color: var(--fg);
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.fbf-dossier-link:hover {
  border-color: var(--fb-blue);
  background: color-mix(in srgb, var(--fb-blue) 12%, transparent);
  transform: translateY(-1px);
}
.fbf-dossier-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.fbf-dossier-link .pdf-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--fb-amber) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--fb-amber) 42%, transparent);
  color: #B45309;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
html.dark .fbf-dossier-link .pdf-badge { color: #FBBF24; }

.fbf-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.fbf-phone svg { width: 18px; height: 18px; }
.fbf-phone a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.fbf-phone a:hover { color: var(--fb-blue); }

/* Tarjeta visual lateral */
.fbf-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.fbf-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 60px -28px rgba(0, 120, 200, 0.5);
  overflow: hidden;
}
.fbf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  background: var(--fb-grad-soft);
  border-bottom: 1px solid var(--border);
}
.fbf-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fb-green);
  line-height: 1.3;
}
.fbf-card-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.fbf-card-new {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--fb-amber);
  padding: 4px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

.fbf-card-programs {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fbf-prog {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px 13px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fbf-prog:hover { border-color: var(--fb-blue); transform: translateX(3px); }
.fbf-prog .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fb-grad-soft);
  flex-shrink: 0;
}
.fbf-prog .ic svg { width: 20px; height: 20px; }
.fbf-prog .txt { font-size: 0.88rem; font-weight: 500; color: var(--fg); }

.fbf-card-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fbf-card-foot .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fb-blue);
}
.fbf-card-foot small { font-size: 11px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   TARJETA "NUEVO" EN PRODUCTOS DESTACADOS
   ============================================================ */
.fp-card--new {
  border-color: color-mix(in srgb, var(--fb-blue) 42%, var(--border));
  background:
    radial-gradient(120% 130% at 100% 0%, color-mix(in srgb, var(--fb-blue) 11%, transparent), transparent 58%),
    radial-gradient(100% 120% at 0% 100%, color-mix(in srgb, var(--fb-green) 9%, transparent), transparent 60%),
    var(--card);
}
.fp-card--new:hover {
  border-color: color-mix(in srgb, var(--fb-blue) 70%, var(--border));
}
.fp-formacion .fp-card-icon { background: var(--fb-grad-soft); }
.fp-formacion .fp-card-cta { background: var(--fb-grad); }

/* Cinta diagonal "NUEVO" */
.fp-new-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 3;
  transform: rotate(38deg);
  background: linear-gradient(135deg, var(--fb-amber), #FBBF24);
  color: #3a2500;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 38px;
  box-shadow: 0 4px 14px -4px rgba(245, 158, 11, 0.7);
  pointer-events: none;
}

/* ============================================================
   BARRA DE ANUNCIO (top del sitio, en todas las páginas)
   ============================================================ */
.zt-announce {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #0a2a5e 0%, #0a64c8 42%, #28a8ea 78%, #107C10 125%);
  color: #fff;
  overflow: hidden;
}
.zt-announce::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 30px);
  pointer-events: none;
}
.zt-announce .container { position: relative; z-index: 1; }
.zt-announce-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  color: inherit;
  text-decoration: none;
  flex-wrap: wrap;
}
.zt-announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 3px 11px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.zt-announce-tag svg { width: 13px; height: 13px; }
.zt-announce-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1 1 320px;
  min-width: 0;
}
.zt-announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  flex-shrink: 0;
}
.zt-announce-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.zt-announce-link:hover .zt-announce-cta svg { transform: translateX(3px); }

/* Se pliega al hacer scroll para no ocupar espacio en la vista */
.zt-announce {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 120px;
}
.zt-announce--hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 760px) {
  .zt-announce-link { gap: 8px; padding: 8px 0; }
  .zt-announce-text { font-size: 12.5px; flex-basis: 100%; }
  .zt-announce-cta { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fbf { grid-template-columns: 1fr; gap: 32px; padding: 36px 30px; }
  .fbf-visual { order: -1; }
  .fbf-card { max-width: 100%; }
}

@media (max-width: 640px) {
  .fbf-section { padding: 36px 0; }
  .fbf { padding: 28px 22px; border-radius: 22px; }
  .fbf-ctas { flex-direction: column; align-items: stretch; }
  .fbf-ctas .pill { justify-content: center; }
  .fbf-bullets { grid-template-columns: 1fr; }
  .fp-new-ribbon { top: 10px; right: -30px; padding: 4px 32px; }
}
