/* Voluntariado – Funidea (dinámico) */

.fi-page-involve .fi-vol-hero,
.page-slug-voluntarios .fi-vol-hero {
  /* page context */
}

/* ---------- Hero ---------- */
.fi-vol-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 62vh, 40rem);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0f2348;
}

.fi-vol-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 10%, #000 24%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 10%, #000 24%, #000 100%);
}

.fi-vol-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  will-change: transform;
  animation: fi-vol-ken 22s ease-in-out infinite alternate;
}

.fi-vol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    #0a1830 0%,
    #0f2348 32%,
    rgba(15, 35, 72, 0.9) 46%,
    rgba(15, 35, 72, 0.45) 60%,
    rgba(15, 35, 72, 0.1) 76%,
    transparent 100%
  );
  pointer-events: none;
}

.fi-vol-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--fi-header-offset) + 2.5rem) 0 4.75rem;
}

.fi-vol-hero__copy {
  max-width: min(36rem, 54%);
  margin-left: clamp(0.25rem, 2vw, 1.5rem);
}

.fi-vol-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.fi-vol-hero__accent {
  color: var(--fi-orange);
}

.fi-vol-hero__text {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.fi-vol-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.fi-vol-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.fi-vol-hero__cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.fi-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.fi-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.fi-vol-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  line-height: 0;
  color: #fff;
  pointer-events: none;
}

.fi-vol-hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 82px);
}

/* Subnav overlap */
.fi-vol-hero + .fi-involve-toolbar,
.fi-vol-hero + .fi-about-subnav-wrap {
  margin-top: -2.4rem;
  position: relative;
  z-index: 12;
}

/* ---------- Shared ---------- */
.fi-vol {
  background: #fff;
}

.fi-vol-kicker {
  margin: 0 0 0.55rem;
  color: var(--fi-orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fi-vol-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.fi-vol-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--fi-navy);
}

.fi-vol-section-head h2 span {
  color: var(--fi-orange);
}

/* ---------- Why ---------- */
.fi-vol-why {
  padding: 3.25rem 0 2.75rem;
  background: #fff;
}

.fi-vol-why__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .fi-vol-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fi-vol-why__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fi-vol-why__item {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: 0 10px 28px rgba(26, 50, 96, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fi-vol-why__item:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(26, 50, 96, 0.12);
}

.fi-vol-why__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f58220, #ff9a45);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(245, 130, 32, 0.28);
}

.fi-vol-why__item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--fi-navy);
}

.fi-vol-why__item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--fi-text-soft);
}

/* ---------- Areas ---------- */
.fi-vol-areas {
  padding: 2.75rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(245, 130, 32, 0.07), transparent 42%),
    radial-gradient(ellipse at 92% 40%, rgba(59, 130, 246, 0.07), transparent 40%),
    var(--fi-surface-muted);
}

.fi-vol-areas__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .fi-vol-areas__layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }
}

.fi-vol-areas__intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--fi-navy);
  line-height: 1.15;
}

.fi-vol-areas__intro h2 span {
  color: var(--fi-orange);
}

.fi-vol-areas__intro p {
  margin: 0 0 1.35rem;
  color: var(--fi-text-soft);
  line-height: 1.65;
  max-width: 28rem;
}

.fi-vol-areas__intro .fi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fi-vol-areas__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .fi-vol-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fi-vol-areas__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fi-vol-area {
  background: #fff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: 0 10px 28px rgba(26, 50, 96, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.fi-vol-area:hover {
  box-shadow: 0 20px 44px rgba(26, 50, 96, 0.14);
}

.fi-vol-area__icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
}

.fi-vol-area--orange .fi-vol-area__icon { background: linear-gradient(145deg, #f58220, #ff9a45); }
.fi-vol-area--blue .fi-vol-area__icon { background: linear-gradient(145deg, #2563eb, #3b82f6); }
.fi-vol-area--green .fi-vol-area__icon { background: linear-gradient(145deg, #16a34a, #22c55e); }
.fi-vol-area--purple .fi-vol-area__icon { background: linear-gradient(145deg, #7c3aed, #8b5cf6); }
.fi-vol-area--teal .fi-vol-area__icon { background: linear-gradient(145deg, #0d9488, #14b8a6); }
.fi-vol-area--coral .fi-vol-area__icon { background: linear-gradient(145deg, #e11d48, #fb7185); }

.fi-vol-area h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--fi-navy);
  line-height: 1.3;
}

.fi-vol-area p {
  margin: 0 0 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fi-text-soft);
}

.fi-vol-area__media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.fi-vol-area__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.fi-vol-area:hover .fi-vol-area__media img {
  transform: scale(1.06);
}

/* ---------- Stats ---------- */
.fi-vol-stats {
  background: linear-gradient(135deg, #0f2348 0%, #1a3260 55%, #243f72 100%);
  color: #fff;
  padding: 2.5rem 0;
}

.fi-vol-stats__inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .fi-vol-stats__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .fi-vol-stats__item + .fi-vol-stats__item {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 1.35rem;
  }
}

.fi-vol-stats__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.35rem 0.25rem;
}

.fi-vol-stats__icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.fi-vol-stats__item--orange .fi-vol-stats__icon { background: linear-gradient(145deg, #f58220, #ff9a45); }
.fi-vol-stats__item--blue .fi-vol-stats__icon { background: linear-gradient(145deg, #2563eb, #3b82f6); }
.fi-vol-stats__item--green .fi-vol-stats__icon { background: linear-gradient(145deg, #16a34a, #22c55e); }
.fi-vol-stats__item--gold .fi-vol-stats__icon { background: linear-gradient(145deg, #d4a017, #f0c35a); }

.fi-vol-stats__icon svg {
  width: 16px;
  height: 16px;
}

.fi-vol-stats__number {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.fi-vol-stats__label {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.fi-vol-stats__item--orange .fi-vol-stats__label {
  color: #ffb46a;
}

/* ---------- Testimonials ---------- */
.fi-vol-testimonials {
  padding: 3.25rem 0 3rem;
  background: #fff;
}

.fi-vol-quote {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fi-vol-quote:hover {
  transform: translateY(-6px);
}

/* ---------- Signup ---------- */
.fi-vol-signup {
  position: relative;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(245, 130, 32, 0.18), transparent 42%),
    linear-gradient(135deg, #0f2348 0%, #1a3260 55%, #122648 100%);
  color: #fff;
  overflow: hidden;
}

.fi-vol-signup__layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .fi-vol-signup__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.75rem;
  }
}

.fi-vol-signup__info h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.fi-vol-signup__info h2 span {
  color: var(--fi-orange);
}

.fi-vol-signup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.fi-vol-signup__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.fi-vol-signup__check {
  color: var(--fi-orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.fi-vol-signup__thanks {
  margin: 1.35rem 0 0;
  font-weight: 700;
  color: #ffb46a;
}

.fi-vol-signup__form-wrap {
  background: #fff;
  border-radius: 22px;
  padding: 1.65rem 1.5rem 1.5rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  color: var(--fi-navy);
}

.fi-vol-form__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .fi-vol-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fi-vol-form__grid .fi-field--full {
    grid-column: 1 / -1;
  }
}

.fi-vol-form .fi-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fi-navy);
}

.fi-vol-form .fi-field input,
.fi-vol-form .fi-field select,
.fi-vol-form .fi-field textarea {
  width: 100%;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--fi-navy);
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fi-vol-form .fi-field input:focus,
.fi-vol-form .fi-field select:focus,
.fi-vol-form .fi-field textarea:focus {
  outline: none;
  border-color: rgba(245, 130, 32, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.fi-vol-form .fi-field textarea {
  min-height: 110px;
  resize: vertical;
}

.fi-vol-form__submit {
  width: 100%;
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.fi-vol-form__submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

/* Ola blanca pequeña que se superpone al bloque «Hazte voluntario» */
.fi-page-volunteers main,
.fi-page-volunteers .fi-vol,
.fi-page-volunteers .fi-vol-signup {
  margin-bottom: 0;
}

.fi-page-volunteers .fi-vol-signup {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

.fi-page-volunteers main + .fi-cta-banner,
.fi-page-volunteers .fi-cta-banner--simple {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  border-top: 0;
}

.fi-page-volunteers .fi-cta-banner--simple .fi-cta-banner__wave {
  display: block;
  position: relative;
  z-index: 3;
  color: #fff;
  line-height: 0;
  margin-top: 0;
  pointer-events: none;
}

.fi-page-volunteers .fi-cta-banner--simple .fi-cta-banner__wave svg {
  display: block;
  width: 100%;
  height: 40px;
}

.fi-page-volunteers .fi-cta-banner--simple .fi-cta-banner__bg,
.fi-page-volunteers .fi-cta-banner--simple .fi-cta-banner__shade {
  top: 40px;
}

.fi-page-volunteers .fi-cta-banner--simple .fi-cta-banner__inner {
  padding-top: 0.75rem;
}

/* Línea naranja en el borde inferior del azul */
.fi-vol-signup__stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 7px;
  background: var(--fi-orange);
  pointer-events: none;
}

/* ---------- Reveal ---------- */
[data-fi-vol-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-fi-vol-reveal="left"] { transform: translateX(-26px); }
[data-fi-vol-reveal="right"] { transform: translateX(26px); }

[data-fi-vol-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes fi-vol-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@media (max-width: 900px) {
  .fi-vol-hero__bg {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fi-vol-hero__bg img {
    opacity: 0.55;
  }

  .fi-vol-hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 24, 48, 0.5) 0%,
      rgba(15, 35, 72, 0.88) 40%,
      rgba(15, 35, 72, 0.96) 100%
    );
  }

  .fi-vol-hero__copy {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fi-vol-hero__bg img {
    animation: none;
  }

  [data-fi-vol-reveal],
  .fi-vol-area,
  .fi-vol-why__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
