/* ==========================================
   UNIBALL BCN — About Quick Links (4 cards)
   Full-bleed background (not capped)
   ========================================== */

:root {
  --ub-dark: #081C34;
  --ub-text: #243b53;
  --ub-muted: #6b7c8f;
  --ub-blue: #12b2e8;
  --ub-green: #0ed3a5;
  --ub-bg: #f7fbff;
  --ub-line: #e4edf2;
  --ub-radius: 18px;
  --ub-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

/* Make box-sizing predictable in this module */
#ub-ql *, #ub-ql *::before, #ub-ql *::after { box-sizing: border-box; }

/* ===== Section wrapper (content stays centered) ===== */
#ub-ql.section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  /* IMPORTANT: no background here — we paint it on ::before to go full-bleed */
  background: none;
  border-top: 1px solid transparent; /* visual aligns with before’s border */
  overflow: visible;
  isolation: isolate; /* keep its stacking context tidy */
}

/* ===== Full-bleed BACKGROUND layer =====
   This spans the entire viewport width regardless of parent max-width constraints.
*/
#ub-ql.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;                 /* full viewport width */
  transform: translateX(-50%);  /* center the 100vw layer under the section */

  /* gradient + soft glow circles in one paint */
  background:
    radial-gradient(340px 340px at 8% -10%, rgba(18,178,232,0.28), rgba(18,178,232,0) 60%),
    radial-gradient(420px 420px at 105% 110%, rgba(14,211,165,0.26), rgba(14,211,165,0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--ub-bg) 100%);
  border-top: 1px solid var(--ub-line);
  pointer-events: none;
}

/* ===== Inner content container (max-width stays) ===== */
.ub-ql__wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;         /* content cap */
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Titles ===== */
.ub-ql__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ub-dark);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ub-ql__sub {
  color: var(--ub-muted);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 50px;
}

/* ===== Grid ===== */
.ub-ql__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .ub-ql__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ub-ql__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Cards ===== */
.ub-ql__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  background: #fff;
  border-radius: var(--ub-radius);
  padding: 40px 22px 32px;
  text-decoration: none;

  border: 1px solid var(--ub-line);
  color: var(--ub-dark);
  box-shadow: var(--ub-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;

  /* entrance animation */
  opacity: 0;
  transform: translateY(20px);
  animation: ubFadeUp 0.6s ease forwards;
}
.ub-ql__card:nth-child(2) { animation-delay: 0.08s; }
.ub-ql__card:nth-child(3) { animation-delay: 0.16s; }
.ub-ql__card:nth-child(4) { animation-delay: 0.24s; }

.ub-ql__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(18, 178, 232, 0.4);
}

/* soft hover wash */
.ub-ql__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ub-radius);
  background: linear-gradient(135deg, rgba(18,178,232,0.08), rgba(14,211,165,0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.ub-ql__card:hover::after { opacity: 1; }

/* Accent variant */
.ub-ql__card--accent {
  background: linear-gradient(135deg, rgba(18,178,232,0.05), rgba(14,211,165,0.05));
  border-color: rgba(18,178,232,0.3);
}

/* ===== Icon bubble ===== */
.ub-ql__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(18,178,232,0.15), rgba(14,211,165,0.15));
  color: var(--ub-blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 1;
}
.ub-ql__icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.ub-ql__card:hover .ub-ql__icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(18,178,232,0.25), rgba(14,211,165,0.25));
}

/* ===== Text stack ===== */
.ub-ql__text {
  text-align: center;
  position: relative;
  z-index: 1;
}
.ub-ql__text strong {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ub-dark);
  letter-spacing: 0.3px;
}
.ub-ql__text small {
  color: var(--ub-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Animations & motion safety ===== */
@keyframes ubFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ub-ql__card,
  .ub-ql__card::after,
  .ub-ql__icon { transition: none !important; }
  .ub-ql__card { animation: none; opacity: 1; transform: none; }
}
