/* ========================================
   SERVICIOS — 12 Disciplinas
   ======================================== */

.bb-services { position: relative; }
.bb-services::before {
  content: ''; position: absolute; top: -15%; left: -10%; width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(208,138,71,0.07) 0%, transparent 60%);
  border-radius: 999px; filter: blur(80px); pointer-events: none;
}
.bb-services::after {
  content: ''; position: absolute; bottom: -10%; left: -8%; width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(181,101,29,0.06) 0%, transparent 60%);
  border-radius: 999px; filter: blur(80px); pointer-events: none;
}
.bb-services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--bb-hairline);
  border: 1px solid var(--bb-hairline);
}
.bb-service {
  padding: 40px 36px;
  background: var(--bb-obsidian);
  cursor: pointer;
  transition: background 400ms var(--bb-ease);
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.bb-service::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--bb-copper); transform: scaleX(0); transform-origin: left;
  transition: transform 600ms var(--bb-ease);
}
.bb-service:hover { background: #0F0F0F; }
.bb-service:hover::before { transform: scaleX(1); }
.bb-service__shape {
  width: 80px; height: 80px; margin-bottom: 24px;
  display: block;
  color: var(--bb-copper-lo);
  filter: drop-shadow(0 0 4px rgba(181,101,29,0.3));
  transition: filter 600ms var(--bb-ease), transform 600ms var(--bb-ease);
}
.bb-service__icon {
  stroke-dasharray: 60;
  animation: bb-dash-flow 6s linear infinite;
}
.bb-service__ring {
  transform-origin: 30px 30px;
  animation: bb-ring-spin 16s linear infinite;
  opacity: 0.3;
  transition: opacity 600ms var(--bb-ease);
}
.bb-service:hover .bb-service__shape {
  filter: drop-shadow(0 0 12px rgba(232,146,84,0.8)) drop-shadow(0 0 24px rgba(181,101,29,0.5));
  transform: scale(1.05) translateY(-4px);
}
.bb-service:hover .bb-service__ring {
  animation: bb-ring-spin 3s linear infinite;
  opacity: 0.9;
}
@keyframes bb-dash-flow { to { stroke-dashoffset: -120; } }
@keyframes bb-ring-spin { to { transform: rotate(360deg); } }
.bb-service__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bb-service__title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; letter-spacing: 0.01em; margin-bottom: 10px; }
.bb-service__desc { color: var(--bb-fg-2); font-size: 14px; line-height: 1.55; flex-grow: 1; }
.bb-service__bullets {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
  perspective: 500px;
}
.bb-service__bullets span {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--bb-hairline);
  color: var(--bb-fg-3);
  background: transparent;
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform   500ms var(--bb-ease),
    color       500ms var(--bb-ease),
    border-color 500ms var(--bb-ease),
    box-shadow  500ms var(--bb-ease),
    background  500ms var(--bb-ease);
  will-change: transform;
}
.bb-service__bullets span::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,146,84,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 500ms var(--bb-ease);
}
.bb-service:hover .bb-service__bullets span {
  color: var(--bb-copper-lo);
  border-color: rgba(181,101,29,0.45);
  background: rgba(181,101,29,0.07);
  box-shadow:
    0 6px 18px rgba(181,101,29,0.22),
    0 1px 0 rgba(232,146,84,0.18) inset,
    0 0 0 1px rgba(181,101,29,0.12);
  transform: translateY(-5px) rotateX(14deg) scale(1.04);
}
.bb-service:hover .bb-service__bullets span::before { opacity: 1; }
.bb-service:hover .bb-service__bullets span:nth-child(1) { transition-delay: 0ms; }
.bb-service:hover .bb-service__bullets span:nth-child(2) { transition-delay: 55ms; }
.bb-service:hover .bb-service__bullets span:nth-child(3) { transition-delay: 110ms; }
.bb-service:hover .bb-service__bullets span:nth-child(4) { transition-delay: 165ms; }
.bb-service:hover .bb-service__bullets span:nth-child(5) { transition-delay: 220ms; }
.bb-service:hover .bb-service__bullets span:nth-child(6) { transition-delay: 275ms; }

@media (max-width: 1100px) {
  .bb-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bb-services__grid { grid-template-columns: repeat(2, 1fr); }
  .bb-service { padding: 24px 18px; min-height: 240px; }
  .bb-service__shape { width: 48px; height: 48px; margin-bottom: 16px; }
  .bb-service__icon { animation-play-state: paused; }
  .bb-service__ring { animation-play-state: paused; }
  .bb-service.is-animating .bb-service__icon { animation-play-state: running; }
  .bb-service.is-animating .bb-service__ring { animation-play-state: running; }
  .bb-service__title { font-size: 17px; }
  .bb-service__desc { font-size: 13px; }
  .bb-service__bullets span { font-size: 9px; padding: 4px 8px; will-change: auto; }
  .bb-services::before, .bb-services::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-service__icon { animation: none; }
  .bb-service__ring { animation: none; }
  .bb-service__shape { transition: none; }
  .bb-service__bullets span { transition: none; will-change: auto; }
}
