/* Página de voluntariado */

.eb-page-volunteers {
  background: var(--eb-bg);
}

/* ── Hero – imagen 75% derecha + difuminado ── */
.eb-vol-hero {
  position: relative;
  min-height: clamp(400px, 48vh, 500px);
  display: flex;
  flex-direction: column;
  background: var(--eb-dark);
  overflow: hidden;
}

.eb-vol-hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 60%;
  z-index: 0;
}

.eb-vol-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 38%;
}

.eb-vol-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--eb-dark) 0%,
    rgba(7, 42, 99, 0.85) 12%,
    rgba(13, 59, 142, 0.35) 28%,
    transparent 48%
  );
  pointer-events: none;
}

.eb-vol-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(
    90deg,
    var(--eb-dark) 0%,
    var(--eb-dark) 75%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.eb-vol-hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.75rem 0 3rem;
  position: relative;
  z-index: 5;
  color: var(--eb-white);
}

.eb-vol-hero-text {
  max-width: 30rem;
  position: relative;
}

.eb-vol-hero-dots {
  width: 22px;
  height: 22px;
  margin-bottom: 1rem;
  background-image: radial-gradient(var(--eb-accent) 2px, transparent 2px);
  background-size: 11px 11px;
  opacity: 0.95;
  pointer-events: none;
}

.eb-vol-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-accent);
  margin-bottom: 0.75rem;
}

.eb-vol-hero-text h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 22rem;
  color: var(--eb-white);
  text-shadow: 0 2px 18px rgba(7, 42, 99, 0.4);
}

.eb-vol-hero-text h1 span {
  color: var(--eb-accent);
}

.eb-vol-hero-text p {
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  max-width: 26rem;
  text-shadow: 0 1px 10px rgba(7, 42, 99, 0.3);
}

.eb-vol-hero-text .eb-btn {
  width: 100%;
  max-width: 16rem;
}

@media (max-width: 767px) {
  .eb-vol-hero {
    min-height: clamp(420px, 54vh, 500px);
  }

  .eb-vol-hero-content {
    align-items: flex-start;
    padding: 2rem 0 5rem;
  }

  .eb-vol-hero-bg {
    top: 26%;
    width: 100%;
    left: 0;
    right: 0;
  }

  .eb-vol-hero::before {
    width: 100%;
    background: linear-gradient(
      180deg,
      var(--eb-dark) 0%,
      rgba(7, 42, 99, 0.9) 34%,
      rgba(7, 42, 99, 0.5) 54%,
      rgba(7, 42, 99, 0.15) 72%,
      transparent 88%
    );
  }

  .eb-vol-hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(7, 42, 99, 0.55) 0%,
      transparent 40%
    );
  }

  .eb-vol-hero-bg img {
    object-position: center 32%;
  }

  .eb-vol-hero-text .eb-btn {
    max-width: none;
  }
}

@media (min-width: 768px) {
  .eb-vol-hero-text .eb-btn {
    width: auto;
  }
}

/* ── ¿Por qué ser voluntario? ── */
.eb-vol-why {
  padding: 3rem 0;
  background: var(--eb-white);
}

.eb-vol-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.eb-vol-why-item {
  text-align: center;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.eb-vol-why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--eb-secondary);
  color: var(--eb-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.eb-vol-why-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--eb-dark);
  margin-bottom: 0.5rem;
}

.eb-vol-why-item p {
  font-size: 0.8125rem;
  color: var(--eb-text-light);
  line-height: 1.65;
  max-width: 14rem;
  margin: 0 auto;
}

/* ── Áreas ── */
.eb-vol-areas {
  padding: 3.5rem 0;
  background: var(--eb-bg-programs);
}

.eb-vol-areas-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.eb-vol-areas-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.eb-vol-areas-intro .eb-section-head {
  margin-bottom: 0;
  text-align: left;
}

.eb-vol-areas-intro .eb-section-head p {
  margin-top: 0.75rem;
  max-width: 22rem;
}

.eb-vol-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.eb-vol-area-card {
  background: var(--eb-white);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-sm);
  padding: 1.25rem 1.125rem;
  box-shadow: var(--eb-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.eb-vol-area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--eb-shadow-hover);
}

.eb-vol-area-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eb-secondary) 12%, var(--eb-white));
  color: var(--eb-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 0.875rem;
}

.eb-vol-area-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--eb-dark);
  margin-bottom: 0.375rem;
}

.eb-vol-area-card p {
  font-size: 0.8125rem;
  color: var(--eb-text-light);
  line-height: 1.6;
}

/* ── Comunidad de voluntarios ── */
.eb-vol-community {
  padding: 3.5rem 0;
  background: var(--eb-white);
}

.eb-vol-community-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.eb-vol-community-photo {
  margin: 0;
  border-radius: var(--eb-radius);
  overflow: hidden;
  border: 5px solid var(--eb-accent);
  box-shadow: var(--eb-shadow-card);
  min-height: 280px;
}

.eb-vol-community-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.eb-vol-community-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-secondary);
  margin-bottom: 0.75rem;
}

.eb-vol-community-text h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--eb-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.eb-vol-community-text h2 span {
  color: var(--eb-secondary);
}

.eb-vol-community-text > p {
  font-size: 0.9375rem;
  color: var(--eb-text-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.eb-vol-community-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.eb-vol-community-highlight {
  text-align: center;
  padding: 0.875rem 0.5rem;
  background: var(--eb-bg-programs);
  border-radius: var(--eb-radius-sm);
  border: 1px solid var(--eb-border);
}

.eb-vol-community-highlight strong {
  display: block;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--eb-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.eb-vol-community-highlight span {
  font-size: 0.6875rem;
  color: var(--eb-text-light);
  line-height: 1.35;
}

/* ── Formulario ── */
.eb-vol-signup {
  padding: 3.5rem 0;
  background: linear-gradient(160deg, var(--eb-primary) 0%, var(--eb-dark) 100%);
  color: var(--eb-white);
}

.eb-vol-signup-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.eb-vol-signup-info h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.eb-vol-signup-info h2 span {
  color: var(--eb-accent);
}

.eb-vol-signup-list {
  margin-bottom: 1.5rem;
}

.eb-vol-signup-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.eb-vol-signup-list li i {
  color: var(--eb-accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.eb-vol-signup-thanks {
  font-family: "Caveat", cursive;
  font-size: 1.375rem;
  color: var(--eb-accent);
  line-height: 1.4;
}

.eb-vol-signup-form-wrap {
  width: 100%;
}

.eb-vol-form {
  background: var(--eb-white);
  border-radius: var(--eb-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--eb-shadow-card);
  width: 100%;
}

.eb-vol-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.eb-vol-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--eb-dark);
  margin-bottom: 0.3125rem;
}

.eb-vol-form input,
.eb-vol-form select,
.eb-vol-form textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--eb-text);
  background: var(--eb-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eb-vol-form input:focus,
.eb-vol-form select:focus,
.eb-vol-form textarea:focus {
  outline: none;
  border-color: var(--eb-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--eb-secondary) 18%, transparent);
}

.eb-vol-form textarea {
  min-height: 100px;
  resize: vertical;
}

.eb-vol-form .eb-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ── Testimonios (slider como noticias del home) ── */
.eb-vol-testimonials {
  padding: 3.5rem 0 3rem;
  background: var(--eb-bg);
}

.eb-vol-testimonials .eb-section-head {
  margin-bottom: 2.5rem;
}

.eb-vol-testimonials .eb-section-head h2 span {
  color: var(--eb-secondary);
  font-weight: 700;
}

.eb-testimonial-card {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--eb-white);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eb-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eb-shadow-card);
}

.eb-testimonial-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.25rem 1.375rem;
  min-height: 100%;
}

.eb-testimonial-quote {
  font-size: 2.25rem;
  line-height: 1;
  color: color-mix(in srgb, var(--eb-secondary) 32%, transparent);
  margin-bottom: 0.375rem;
  font-family: Georgia, serif;
}

.eb-testimonial-card blockquote {
  flex: 1;
  margin: 0;
}

.eb-testimonial-card blockquote p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--eb-text);
  font-style: italic;
  margin: 0;
}

.eb-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--eb-border);
}

.eb-testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--eb-secondary);
  box-shadow: 0 2px 8px rgba(7, 116, 226, 0.2);
}

.eb-testimonial-author cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.eb-testimonial-author cite strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--eb-dark);
}

.eb-testimonial-author cite span {
  font-size: 0.75rem;
  color: var(--eb-text-light);
  line-height: 1.35;
}

/* CTA variante voluntariado */
.eb-cta-banner--vol .eb-cta-banner-actions .eb-btn--ghost {
  text-transform: uppercase;
  font-size: 0.6875rem;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .eb-vol-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eb-vol-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eb-vol-form .eb-field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .eb-vol-community-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .eb-vol-community-photo {
    min-height: 380px;
  }

  .eb-vol-community-photo img {
    min-height: 380px;
  }

  .eb-vol-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (min-width: 1024px) {
  .eb-vol-why-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

  .eb-vol-why-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: var(--eb-stat-divider);
  }

  .eb-vol-areas-layout {
    grid-template-columns: 0.32fr 0.68fr;
    gap: 2.5rem;
    align-items: center;
  }

  .eb-vol-signup-layout {
    grid-template-columns: 0.34fr 0.66fr;
    gap: 3rem;
    align-items: start;
  }

  .eb-vol-form {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 1200px) {
  .eb-vol-community-photo {
    min-height: 440px;
  }

  .eb-vol-community-photo img {
    min-height: 440px;
  }

  .eb-vol-form {
    padding: 2.25rem 2rem;
  }
}
