/* ================================================================
   VOLUNTARIADO — Voluntariat Esportiu de València · Brand Book 2026
   page-voluntariado.php
   ================================================================ */

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

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


/* ================================================================
   BARRA DE ANCLAS — sticky bajo el nav principal
   ================================================================ */

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

.vol-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);
}
.vol-anchors__inner::-webkit-scrollbar { display: none; }

.vol-anchors__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  padding: 0 1rem;
  height: var(--vol-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;
}
.vol-anchors__link:hover {
  color: var(--text);
}
.vol-anchors__link.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.vol-anchors__link i {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
.vol-anchors__link.is-active i { opacity: 1; }

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


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

.vol-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;
}

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


/* ================================================================
   ASIDE — "En esta página"
   ================================================================ */

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

.vol-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;
}

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

.vol-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;
}
.vol-aside__link:hover {
  background: var(--bg-secondary);
  color: var(--text);
}
.vol-aside__link.is-active {
  background: rgba(245, 161, 0, 0.1);
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 600;
}
.vol-aside__link i {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}
.vol-aside__link.is-active i { opacity: 1; }


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

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

.vol-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;
}
.vol-section__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.vol-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;
}

.vol-section__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
}

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

/* Callout destacado (para textos clave) */
.vol-callout {
  border-left: 3px solid var(--brand);
  padding: 1.25rem 1.5rem;
  background: rgba(201, 35, 29, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 1.5rem 0;
}


/* ================================================================
   FUNCIONES DE LA OFICINA — grid de tarjetas
   ================================================================ */

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

.vol-func-card {
  background: var(--light);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.125rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  transition: border-color 150ms, background 150ms;
}
.vol-func-card:hover {
  border-color: var(--brand);
  background: white;
}

.vol-func-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201, 35, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vol-func-card__icon i {
  font-size: 18px;
  color: var(--brand);
}

.vol-func-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding-top: 8px;
}


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

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

.vol-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;
}
.vol-service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.vol-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;
}
.vol-service-card__icon i {
  font-size: 22px;
  color: var(--blue);
}

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


/* ================================================================
   BENEFICIOS — lista en 2 columnas con iconos
   ================================================================ */

.vol-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.vol-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(245, 161, 0, 0.05);
  border: 0.5px solid rgba(245, 161, 0, 0.15);
}

.vol-benefit-item i {
  font-size: 16px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.vol-benefit-item span {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}


/* ================================================================
   DERECHOS Y OBLIGACIONES — listas estructuradas
   ================================================================ */

.vol-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vol-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.vol-list__item:last-child { border-bottom: none; padding-bottom: 0; }

.vol-list__item i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.vol-list__item--right i { color: var(--blue); }
.vol-list__item--duty  i { color: var(--brand); }

.vol-list-group {
  margin-top: 2rem;
}
.vol-list-group:first-child { margin-top: 0; }

.vol-list-group__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vol-list-group__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.vol-list-group__badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.vol-list-group__badge--blue {
  background: rgba(27, 87, 160, 0.1);
  color: var(--blue);
}
.vol-list-group__badge--brand {
  background: rgba(201, 35, 29, 0.08);
  color: var(--brand);
}


/* ================================================================
   LEY — referencia legal
   ================================================================ */

.vol-ley-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 87, 160, 0.07);
  border: 0.5px solid rgba(27, 87, 160, 0.2);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.vol-ley-ref i { font-size: 13px; }


/* ================================================================
   REQUISITOS — chips visuales en #quienes
   ================================================================ */

.vol-req-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.vol-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(245, 161, 0, 0.06);
  border: 1px solid rgba(245, 161, 0, 0.25);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: background 150ms, border-color 150ms;
}
.vol-req-chip:hover {
  background: rgba(245, 161, 0, 0.12);
  border-color: rgba(245, 161, 0, 0.4);
}
.vol-req-chip i {
  font-size: 17px;
  color: var(--orange);
}


/* ================================================================
   STEPS — pasos en #proceso
   ================================================================ */

.vol-steps {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.75rem 0 2rem;
}

.vol-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: white;
  transition: background 150ms;
}
.vol-step:hover { background: var(--light); }
.vol-step + .vol-step { border-top: 0.5px solid var(--border); }

.vol-step__num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.vol-step__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.vol-step__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ================================================================
   BENEFICIOS — toggle "Ver todos"
   ================================================================ */

.vol-benefit-item--hidden { display: none; }

.vol-benefits-more {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.vol-benefits-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.vol-benefits-toggle-btn:hover {
  border-color: var(--orange);
  color: var(--text);
}
.vol-benefits-toggle-btn i {
  font-size: 15px;
  transition: transform 250ms;
}
.vol-benefits-toggle-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}


/* ================================================================
   PROCESO CTA — watermark decorativo
   ================================================================ */

.vol-process-card__wm {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(7rem, 16vw, 12rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.03em;
}


/* ================================================================
   PROCESO — CTA final
   ================================================================ */

.vol-process-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}
.vol-process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 0% 100%, rgba(201, 35, 29, 0.28) 0%, transparent 60%);
  pointer-events: none;
}

.vol-process-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vol-process-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1;
  margin: 0;
}

.vol-process-card__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
}

.vol-process-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}
.vol-process-card__btn:hover {
  background: var(--brand-dark, #9E1B16);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 35, 29, 0.4);
}
.vol-process-card__btn i { font-size: 1.1em; }


/* ================================================================
   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
   ================================================================ */

/* ── Tablet (≤1024px) — colapsar aside + navbar mobile ── */
@media (max-width: 1024px) {
  .vol-layout {
    grid-template-columns: 1fr;
  }
  .vol-aside {
    display: none;
  }
  .vol-anchors {
    top: 58px;
  }
  html:has(.vol-anchors) {
    scroll-padding-top: calc(58px + var(--vol-bar-h, 46px) + 1rem);
  }
}

/* ── Móvil grande (≤768px) ── */
@media (max-width: 768px) {
  .vol-section {
    padding: 2.5rem 0;
  }
  .vol-services-grid {
    grid-template-columns: 1fr;
  }
  .vol-benefits-grid {
    grid-template-columns: 1fr;
  }
  .vol-list-group__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .vol-anchors__link {
    padding: 0 0.75rem;
    font-size: 11px;
    gap: 0.4rem;
  }
}

/* ── Móvil pequeño (≤480px) ── */
@media (max-width: 480px) {
  .vol-section {
    padding: 2rem 0;
  }
  .vol-section__title {
    font-size: 1.35rem;
  }
  .vol-func-grid {
    grid-template-columns: 1fr;
  }
  .vol-services-grid {
    grid-template-columns: 1fr;
  }
  .vol-req-chips {
    gap: 0.5rem;
  }
  .vol-req-chip {
    font-size: 0.8125rem;
    padding: 0.45rem 0.875rem;
  }
  .vol-process-card {
    padding: 1.75rem 1.25rem;
  }
  .vol-process-card__wm {
    font-size: 5.5rem;
    right: 0.75rem;
    opacity: 0.6;
  }
  .vol-process-card__btn {
    align-self: stretch;
    justify-content: center;
  }
  .vol-step {
    padding: 1rem 1.125rem;
    gap: 1rem;
  }
  .vol-step__num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .vol-anchors__link {
    padding: 0 0.625rem;
    gap: 0.25rem;
    font-size: 11px;
  }
}
