/* ================================================================
   BICI-VOLUNTARIOS — Voluntariat Esportiu de València · Brand Book 2026
   page-bici-voluntarios.php
   ================================================================ */

:root {
  --bici-bar-h: 46px;
}

html:has(.bici-anchors) {
  scroll-padding-top: calc(var(--bici-bar-h, 46px) + 1rem);
}
@media (max-width: 1024px) {
  html:has(.bici-anchors) {
    scroll-padding-top: calc(58px + var(--bici-bar-h, 46px) + 1rem);
  }
}


/* ================================================================
   BARRA DE ANCLAS — sticky
   ================================================================ */

.bici-anchors {
  position: sticky;
  top: 0;
  z-index: 80;
  background: white;
  border-bottom: 0.5px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.bici-anchors__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.bici-anchors__inner::-webkit-scrollbar { display: none; }

.bici-anchors__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0 1rem;
  height: var(--bici-bar-h, 46px);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 150ms, border-color 150ms;
}
.bici-anchors__link:hover { color: var(--text); }
.bici-anchors__link.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.bici-anchors__link i {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
.bici-anchors__link.is-active i { opacity: 1; }

@media (max-width: 1024px) {
  .bici-anchors { top: 58px; }
}


/* ================================================================
   LAYOUT — contenido + aside
   ================================================================ */

.bici-layout {
  display: grid;
  grid-template-columns: 1fr 252px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.bici-content {
  min-width: 0;
  padding-bottom: 4rem;
}


/* ================================================================
   ASIDE
   ================================================================ */

.bici-aside {
  position: sticky;
  top: calc(var(--topbar-h, 54px) + var(--bici-bar-h, 46px) + 2rem);
  background: var(--light);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 3rem;
}

.bici-aside__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.bici-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.bici-aside__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 150ms, color 150ms;
  border-left: 2px solid transparent;
}
.bici-aside__link:hover {
  background: var(--bg-secondary);
  color: var(--text);
}
.bici-aside__link.is-active {
  background: rgba(245, 161, 0, 0.1);
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 600;
}
.bici-aside__link i {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}
.bici-aside__link.is-active i { opacity: 1; }


/* ── CTA del aside ── */
.bici-aside__cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 0.5px solid var(--border);
}

.bici-aside__cta-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.bici-aside__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: white;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}
.bici-aside__cta-btn:hover {
  background: #d48900;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 161, 0, 0.35);
}
.bici-aside__cta-btn i { font-size: 15px; }


/* ================================================================
   SECCIONES DE CONTENIDO
   ================================================================ */

.bici-section {
  padding: 3.5rem 0;
  border-bottom: 0.5px solid var(--border);
}
.bici-section:last-child { border-bottom: none; }

.bici-section__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bici-section__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.bici-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.bici-prose {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.bici-prose p { margin: 0 0 1em; }
.bici-prose p:last-child { margin-bottom: 0; }
.bici-prose strong { color: var(--text); font-weight: 600; }
.bici-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ================================================================
   STATS — cifras destacadas del grupo
   ================================================================ */

.bici-stats {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.bici-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  background: white;
  transition: background 150ms;
}
.bici-stat:hover { background: var(--light); }
.bici-stat + .bici-stat {
  border-left: 0.5px solid var(--border);
}

.bici-stat__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 161, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.bici-stat__icon i {
  font-size: 18px;
  color: var(--orange);
}

.bici-stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.bici-stat__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
  max-width: 14ch;
}


/* ================================================================
   FOTO — imagen del grupo
   ================================================================ */

.bici-photo {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.bici-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bici-photo__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: linear-gradient(135deg, rgba(245,161,0,0.06) 0%, rgba(27,87,160,0.06) 100%);
}
.bici-photo__ph i {
  font-size: 4rem;
  color: var(--border);
}


/* ================================================================
   FUNCIONES — tarjetas del rol (con título)
   ================================================================ */

.bici-func-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.bici-func-card {
  background: var(--light);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 150ms, background 150ms, transform 150ms;
}
.bici-func-card:hover {
  border-color: var(--orange);
  background: white;
  transform: translateY(-2px);
}

.bici-func-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 161, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bici-func-card__icon i {
  font-size: 24px;
  color: var(--orange);
}

.bici-func-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.bici-func-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.bici-func-card__text p { margin: 0 0 0.75em; }
.bici-func-card__text p:last-child { margin-bottom: 0; }


/* ================================================================
   SERVICIOS — 3 tarjetas de lo que ofrece la Oficina
   ================================================================ */

.bici-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.bici-service-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.bici-service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.bici-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27, 87, 160, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bici-service-card__icon i {
  font-size: 22px;
  color: var(--blue);
}

.bici-service-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}


/* ================================================================
   DOS CAMINOS — #unirse: ya voluntario / no lo es aún
   ================================================================ */

.bici-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.bici-path {
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 0.5px solid var(--border);
  transition: border-color 150ms;
}
.bici-path--primary {
  background: rgba(27, 87, 160, 0.04);
  border-color: rgba(27, 87, 160, 0.15);
}
.bici-path--primary:hover { border-color: var(--blue); }
.bici-path--secondary {
  background: rgba(245, 161, 0, 0.04);
  border-color: rgba(245, 161, 0, 0.2);
}
.bici-path--secondary:hover { border-color: var(--orange); }

.bici-path__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bici-path--primary .bici-path__icon {
  background: rgba(27, 87, 160, 0.1);
}
.bici-path--primary .bici-path__icon i { color: var(--blue); font-size: 22px; }
.bici-path--secondary .bici-path__icon {
  background: rgba(245, 161, 0, 0.12);
}
.bici-path--secondary .bici-path__icon i { color: var(--orange); font-size: 22px; }

.bici-path__label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.bici-path__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.5rem;
  flex: 1;
}

.bici-path__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 150ms, transform 150ms;
  align-self: flex-start;
}
.bici-path--primary .bici-path__btn {
  background: rgba(27, 87, 160, 0.1);
  color: var(--blue);
}
.bici-path--primary .bici-path__btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
}
.bici-path--secondary .bici-path__btn {
  background: rgba(245, 161, 0, 0.12);
  color: #9a6600;
}
.bici-path--secondary .bici-path__btn:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-1px);
}
.bici-path__btn i { font-size: 14px; }


/* ================================================================
   SCROLL REVEAL
   ================================================================ */

.hp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0, 0, 0.2, 1), transform 0.5s cubic-bezier(0, 0, 0.2, 1);
}
.hp-reveal.hp-visible {
  opacity: 1;
  transform: translateY(0);
}
.hp-reveal[data-delay="1"] { transition-delay: 80ms; }
.hp-reveal[data-delay="2"] { transition-delay: 160ms; }
.hp-reveal[data-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .bici-layout {
    grid-template-columns: 1fr;
  }
  .bici-aside {
    position: static;
    margin-top: 2rem;
    background: var(--light);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
  }
  .bici-aside__label { display: none; }
  .bici-aside__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }
  .bici-aside__link {
    padding: 0.35rem 0.75rem;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .bici-aside__link.is-active {
    border-left: none;
    border-bottom-color: var(--orange);
    background: rgba(245, 161, 0, 0.08);
  }
  .bici-aside__cta {
    margin-top: 0;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .bici-aside__cta-text { margin-bottom: 0; }
  .bici-anchors {
    top: 58px;
  }
  html:has(.bici-anchors) {
    scroll-padding-top: calc(58px + var(--bici-bar-h, 46px) + 1rem);
  }
}

@media (max-width: 768px) {
  .bici-aside { display: none; }
  .bici-content { padding-bottom: 2.5rem; }
  .bici-section { padding: 2.5rem 0; }
  .bici-func-grid { grid-template-columns: 1fr; }
  .bici-services-grid { grid-template-columns: repeat(2, 1fr); }
  .bici-stats { flex-direction: column; border-radius: 12px; }
  .bici-stat + .bici-stat { border-left: none; border-top: 0.5px solid var(--border); }
  .bici-stat { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; text-align: left; padding: 1.25rem; }
  .bici-stat__icon { margin-bottom: 0; flex-shrink: 0; }
  .bici-stat__num { font-size: 1.75rem; }
  .bici-paths { grid-template-columns: 1fr; }
  .bici-path__btn { align-self: stretch; justify-content: center; }
  .bici-anchors__link { padding: 0 0.75rem; font-size: 11px; }
}

@media (max-width: 480px) {
  .bici-content { padding-bottom: 2rem; }
  .bici-section { padding: 2rem 0; }
  .bici-section__title { font-size: 1.35rem; margin-bottom: 1rem; }
  .bici-prose { font-size: 1rem; }
  .bici-services-grid { grid-template-columns: 1fr; }
  .bici-service-card { padding: 1.25rem 1rem; }
  .bici-func-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .bici-func-card__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; }
  .bici-func-card__icon i { font-size: 20px; }
  .bici-func-card__body { flex: 1; min-width: 0; }
  .bici-anchors__inner { padding: 0 0.75rem; justify-content: space-evenly; }
  .bici-anchors__link { padding: 0 0.5rem; font-size: 11px; }
  .bici-anchors__link span { display: none; }
  .bici-anchors__link i { opacity: 1; font-size: 16px; }
}
