/* ==========================================================================
   Módulo Voluntarios Global Conect — Tema Cian + Azul Marino Glassmorphism
   ========================================================================== */

.vol-page .site-header .scroll-progress {
  background: linear-gradient(90deg, var(--vol-cyan) 0%, var(--leaf-lime) 100%);
}

.vol-page .brand-name span {
  color: var(--vol-cyan-bright);
}

.vol-page .site-header.is-scrolled .brand-name span {
  color: var(--vol-accent-text);
}

.vol-page .nav-link:hover,
.vol-page .nav-link.is-active {
  color: var(--vol-cyan-bright);
}

.vol-page .site-header.is-scrolled .nav-link:hover,
.vol-page .site-header.is-scrolled .nav-link.is-active {
  color: var(--vol-accent-text);
  background-color: rgba(24, 196, 216, 0.14);
}

/* Hero Voluntarios */
.vol-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 5.5vw, 4.75rem));
  padding-bottom: clamp(4rem, 6.5vw, 5.75rem);
  background:
    radial-gradient(circle at 16% 24%, rgba(24, 196, 216, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 84% 26%, rgba(131, 221, 100, 0.16) 0%, transparent 44%),
    linear-gradient(155deg, #04101d 0%, var(--abyss-navy) 46%, #0a2d44 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}

.vol-hero .ambient-orb--cyan {
  top: -120px;
  left: -80px;
}

.vol-hero .ambient-orb--lime {
  bottom: -140px;
  right: -80px;
}

.vol-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4.5vw, 4.25rem);
  align-items: center;
}

.vol-hero-copy {
  display: grid;
  gap: 1.35rem;
  animation: heroReveal 720ms var(--ease-out) both;
}

.vol-badge-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  justify-self: start;
}

.vol-hero-copy h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--canvas-white);
  line-height: 1.06;
  max-width: 15ch;
}

.vol-hero-copy p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.22rem);
  max-width: 52ch;
}

.vol-hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  animation: heroReveal 880ms var(--ease-out) 140ms both;
}

.vol-collage-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  aspect-ratio: 4 / 3;
  box-shadow: 0 26px 64px rgba(3, 10, 19, 0.55);
}

.vol-collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vol-floating-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(5, 18, 32, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(73, 221, 240, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vol-floating-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--vol-cyan-bright);
  font-size: 1rem;
}

.vol-floating-card span {
  font-size: var(--text-xs);
  color: var(--text-on-dark);
}

/* Beneficios (3 tarjetas Glass) */
.vol-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vol-benefit-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.vol-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(24, 196, 216, 0.18) 0%, rgba(131, 221, 100, 0.18) 100%);
  color: var(--vol-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vol-benefit-card h3 {
  font-size: 1.2rem;
}

.vol-benefit-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Proceso Secuencial (3 pasos) */
.vol-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vol-step-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.vol-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vol-cyan);
  color: var(--abyss-navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vol-step-card h3 {
  font-size: 1.15rem;
}

.vol-step-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

/* Galería de Jornadas */
.vol-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.vol-gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vol-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease-out);
}

.vol-gallery-item:hover img {
  transform: scale(1.06);
}

.vol-gallery-item figcaption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 18, 32, 0.72);
  backdrop-filter: blur(12px);
  color: var(--canvas-white);
  font-size: 0.78rem;
  line-height: 1.3;
}

/* Sección de Formulario de Registro Glass */
.vol-register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.vol-register-aside {
  display: grid;
  gap: 1.35rem;
}

.vol-checklist-card {
  padding: 1.65rem;
  display: grid;
  gap: 1rem;
}

.vol-checklist-card h3 {
  font-size: 1.15rem;
}

.vol-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.vol-checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.vol-checklist svg {
  color: var(--vol-accent-text);
  margin-top: 3px;
}

.vol-form-card {
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}

.vol-form {
  display: grid;
  gap: 1.15rem;
}

.vol-form .field input:focus,
.vol-form .field select:focus {
  border-color: var(--vol-cyan-deep);
  box-shadow: var(--shadow-focus-cyan);
}

/* Radio pills interactivos para Sexo */
.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-subtle);
  background: var(--bg-input);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.radio-pill input:checked + span {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--canvas-white);
}

[data-theme="dark"] .radio-pill input:checked + span {
  background: var(--vol-cyan);
  border-color: var(--vol-cyan);
  color: var(--abyss-navy);
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--vol-cyan-deep);
  outline-offset: 2px;
}

.terms-check {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ink-navy);
  flex-shrink: 0;
}

.terms-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--vol-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Vista de Confirmación de Registro */
.vol-success-panel {
  display: grid;
  gap: 1.1rem;
  text-align: left;
  padding: 0.5rem 0;
  animation: panelEnter 380ms var(--ease-out) both;
}

.vol-success-panel[hidden] {
  display: none;
}

.vol-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--forest-tint);
  color: var(--forest-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vol-success-summary {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--mist-surface);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 1024px) {
  .vol-hero-grid,
  .vol-register-grid {
    grid-template-columns: 1fr;
  }

  .vol-benefits-grid,
  .vol-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vol-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vol-benefits-grid,
  .vol-steps-grid,
  .vol-gallery {
    grid-template-columns: 1fr;
  }
}
