/* =====================================================
   volunteer.css — Fundar Galápagos
   Tema: conservación / océano / Galápagos
   Sin Bootstrap. Usa variables de styles.css si existen.
   ===================================================== */

/* ── Variables locales (fallback si styles.css no las define) ── */
:root {
  --vol-primary:       #0a7c5c;   /* verde selva */
  --vol-primary-dark:  #085e46;
  --vol-primary-light: #e6f5f0;
  --vol-accent:        #1a9e7a;
  --vol-ocean:         #0d5c8e;   /* azul océano */
  --vol-sand:          #f5f0e8;   /* arena */
  --vol-text:          #1a2e2a;
  --vol-text-muted:    #5a7a72;
  --vol-border:        #c8ddd8;
  --vol-radius:        10px;
  --vol-radius-sm:     6px;
  --vol-shadow:        0 2px 12px rgba(10, 124, 92, 0.10);
  --vol-shadow-lg:     0 8px 32px rgba(10, 124, 92, 0.15);
  --vol-transition:    200ms ease;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.vol-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Gradiente océano profundo a verde selva */
  background:
    linear-gradient(160deg, #083d2e 0%, #0d5c8e 55%, #0a7c5c 100%);
}

/* Patrón de ondas sutil */
.vol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 30% 60%, rgba(26,158,122,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 30%, rgba(13,92,142,.25) 0%, transparent 70%);
  pointer-events: none;
}

.vol-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}

.vol-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem 1.5rem;
  max-width: 680px;
  animation: vol-fade-up .7s ease both;
}

.vol-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #a8f0d8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.4rem;
}

.vol-hero__title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  letter-spacing: -.02em;
}

.vol-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  margin: 0 0 2.2rem;
}

.vol-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--vol-primary-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform var(--vol-transition), box-shadow var(--vol-transition);
}
.vol-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.vol-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.3rem;
  animation: vol-bounce 2s ease infinite;
  z-index: 2;
}

/* ══════════════════════════════════════
   ÁREAS DE VOLUNTARIADO
══════════════════════════════════════ */
.vol-areas {
  padding: 5rem 1rem;
  background: var(--vol-sand);
}

.vol-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vol-container--narrow {
  max-width: 820px;
}

.vol-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.vol-section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--vol-text);
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}

.vol-section-desc {
  color: var(--vol-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.vol-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card de área */
.vol-area-card {
  background: #fff;
  border-radius: var(--vol-radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--vol-shadow);
  border: 1px solid var(--vol-border);
  transition: transform var(--vol-transition), box-shadow var(--vol-transition);
  animation: vol-fade-up .5s ease both;
}
.vol-area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vol-shadow-lg);
}

.vol-area-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--vol-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--vol-primary);
  margin-bottom: 1.1rem;
}

.vol-area-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vol-text);
  margin: 0 0 .5rem;
}

.vol-area-card__desc {
  font-size: .9rem;
  color: var(--vol-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Skeleton loaders */
.vol-area-skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: vol-shimmer 1.4s infinite;
  border-radius: var(--vol-radius);
  height: 160px;
}

/* ══════════════════════════════════════
   SECCIÓN FORMULARIO
══════════════════════════════════════ */
.vol-form-section {
  padding: 5rem 1rem;
  background: #fff;
}

/* ── Alert ── */
.vol-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--vol-radius-sm);
  margin-bottom: 2rem;
  border: 1px solid transparent;
  font-size: .95rem;
}
.vol-alert[hidden] { display: none !important; }

.vol-alert--success {
  background: #eafaf3;
  border-color: #7de8bf;
  color: #0a5c42;
}
.vol-alert--error {
  background: #fff0f0;
  border-color: #f5b8b8;
  color: #8b1a1a;
}

.vol-alert__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.vol-alert--success .vol-alert__icon::before { content: "\F26A"; } /* bi-check-circle-fill */
.vol-alert--error   .vol-alert__icon::before { content: "\F33A"; } /* bi-exclamation-triangle-fill */

.vol-alert__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.vol-alert__close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  padding: .2rem;
  font-size: .9rem;
  flex-shrink: 0;
  transition: opacity var(--vol-transition);
}
.vol-alert__close:hover { opacity: 1; }

/* ── Formulario ── */
.vol-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Fieldset */
.vol-fieldset {
  border: 1px solid var(--vol-border);
  border-radius: var(--vol-radius);
  padding: 1.75rem 1.5rem;
  background: #fafcfb;
}
.vol-fieldset--actions {
  background: var(--vol-primary-light);
  border-color: rgba(10,124,92,.2);
}

.vol-fieldset__legend {
  font-size: .9rem;
  font-weight: 700;
  color: var(--vol-primary-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 .5rem;
  float: none; /* override browser default */
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

/* Grid interno */
.vol-grid {
  display: grid;
  gap: 1.25rem;
}
.vol-grid--1 { grid-template-columns: 1fr; }
.vol-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vol-grid--3 { grid-template-columns: repeat(3, 1fr); }

.vol-field--span2 { grid-column: span 2; }

/* Campo */
.vol-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.vol-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--vol-text);
}
.vol-label--required::after {
  content: ' *';
  color: #dc3545;
}

.vol-input,
.vol-select,
.vol-textarea {
  width: 100%;
  padding: .65rem .9rem;
  font-size: .95rem;
  color: var(--vol-text);
  background: #fff;
  border: 1.5px solid var(--vol-border);
  border-radius: var(--vol-radius-sm);
  outline: none;
  transition: border-color var(--vol-transition), box-shadow var(--vol-transition);
  appearance: none;
  font-family: inherit;
  box-sizing: border-box;
}
.vol-input::placeholder,
.vol-textarea::placeholder { color: #aac0bb; }

.vol-input:focus,
.vol-select:focus,
.vol-textarea:focus {
  border-color: var(--vol-primary);
  box-shadow: 0 0 0 3px rgba(10,124,92,.12);
}

/* Estado inválido (añadido por JS) */
.vol-input.is-invalid,
.vol-select.is-invalid,
.vol-textarea.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,.1);
}
.vol-input.is-invalid + .vol-field__error,
.vol-select.is-invalid + .vol-field__error,
.vol-textarea.is-invalid + .vol-field__error,
.vol-input.is-invalid ~ .vol-field__error,
.vol-select.is-invalid ~ .vol-field__error {
  display: block;
}

/* Estado verificando (blur check en progreso) */
.vol-input.is-checking,
.vol-select.is-checking {
  border-color: #a0b8c0;
  box-shadow: 0 0 0 3px rgba(13,92,142,.08);
}

/* Estado válido confirmado por API */
.vol-input.is-valid-field,
.vol-select.is-valid-field {
  border-color: var(--vol-primary);
  box-shadow: 0 0 0 3px rgba(10,124,92,.1);
}

/* Hint de verificación inline */
.vol-field__hint--check {
  font-size: .8rem;
  font-weight: 500;
  display: none;
}
.vol-field__hint--check[data-type="checking"] {
  color: var(--vol-text-muted);
  font-style: italic;
}
.vol-field__hint--check[data-type="ok"] {
  color: var(--vol-primary);
}

.vol-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%235a7a72' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.vol-textarea { resize: vertical; min-height: 90px; }

.vol-field__error {
  display: none;
  font-size: .8rem;
  color: #dc3545;
  font-weight: 500;
}

.vol-field__hint {
  font-size: .8rem;
  color: var(--vol-text-muted);
}

/* Checkbox */
.vol-check {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.vol-check > div {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}
.vol-check__input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--vol-primary);
  cursor: pointer;
}
.vol-check__label {
  font-size: .9rem;
  color: var(--vol-text);
  line-height: 1.5;
  cursor: pointer;
}
.vol-check.is-invalid .vol-field__error {
  display: block;
}

/* Botones */
.vol-form__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vol-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 99px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--vol-transition);
  font-family: inherit;
  white-space: nowrap;
}

.vol-btn--primary {
  background: var(--vol-primary);
  color: #fff;
  border-color: var(--vol-primary);
}
.vol-btn--primary:hover:not(:disabled) {
  background: var(--vol-primary-dark);
  border-color: var(--vol-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,124,92,.3);
}
.vol-btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.vol-btn--ghost {
  background: transparent;
  color: var(--vol-primary);
  border-color: var(--vol-primary);
}
.vol-btn--ghost:hover {
  background: var(--vol-primary-light);
}

/* Spinner inline */
.vol-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vol-spin .7s linear infinite;
  display: inline-block;
}

/* ══════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════ */
@keyframes vol-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vol-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes vol-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes vol-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .vol-grid--2,
  .vol-grid--3 { grid-template-columns: 1fr; }

  .vol-field--span2 { grid-column: auto; }

  .vol-fieldset { padding: 1.25rem 1rem; }

  .vol-form__actions { justify-content: stretch; }
  .vol-btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .vol-hero__title { font-size: 2rem; }
  .vol-areas { padding: 3.5rem 1rem; }
  .vol-form-section { padding: 3.5rem 1rem; }
}

/* ══════════════════════════════════════
   EMOJI EN CARDS DE ÁREA
══════════════════════════════════════ */
.vol-area-card__icon--emoji {
  font-size: 2rem;
  background: var(--vol-primary-light);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ══════════════════════════════════════
   CHECKBOXES DE DISPONIBILIDAD
══════════════════════════════════════ */
.vol-checks-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
  margin-top: .25rem;
}

.vol-check-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  background: #fff;
  border: 1.5px solid var(--vol-border);
  border-radius: var(--vol-radius-sm);
  cursor: pointer;
  transition: border-color var(--vol-transition), background var(--vol-transition);
  font-size: .9rem;
  color: var(--vol-text);
  user-select: none;
}
.vol-check-option:hover {
  border-color: var(--vol-primary);
  background: var(--vol-primary-light);
}
.vol-check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--vol-primary);
  cursor: pointer;
}
.vol-check-option:has(input:checked) {
  border-color: var(--vol-primary);
  background: var(--vol-primary-light);
  font-weight: 600;
}

@media (max-width: 480px) {
  .vol-checks-group {
    grid-template-columns: 1fr;
  }
}

.vol-hero {
  /* Gradiente igual al blog */
  background: linear-gradient(160deg, #083d2e 0%, #0a7c5c 60%, #1a9e7a 100%);
  /* Altura igual al blog — el flex + align-items:center causaba el 88vh */
  display: block;
  min-height: unset;
  height: auto;
  padding: 80px 24px 72px;
  text-align: center;
}

/* Centrar contenido sin flex */
.vol-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
}

/* Scroll indicator: sacar del absolute para que no afecte altura */
.vol-hero__scroll {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: block;
  text-align: center;
  margin-top: 20px;
}