/* ═══════════════════════════════════════════════════════
   VOLUNTARIADO.CSS — Formulario de Registro de Voluntariado
   Amigos del Parque Ross · 2026
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Caveat:wght@400;600;700&display=swap');

:root {
    --verde-oscuro: #2A6B35;
    --verde-medio: #5A9E62;
    --verde-mint: #D4EDDA;
    --rosa-coral: #E8637A;
    --rosa-suave: #F5C2CB;
    --crema: #FDF6EE;
    --marron: #7B4F2E;
    --amarillo: #F5C842;
    --verde-muy-oscuro: #1E3A22;
    --blanco: #FFFFFF;
    --f-nunito: 'Nunito', sans-serif;
    --f-caveat: 'Caveat', cursive;
    --max-w: 860px;
    --radius-card: 24px;
    --radius-pill: 999px;
    --tr: all 0.22s ease;
    --shadow-card: 0 8px 32px rgba(42, 107, 53, 0.12);
    --shadow-coral: 0 8px 28px rgba(232, 99, 122, 0.35);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--f-nunito);
    color: var(--marron);
    background: var(--crema);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── HERO HEADER ────────────────────────────────────── */
.vol-hero {
    background: linear-gradient(160deg, var(--verde-muy-oscuro) 0%, var(--verde-oscuro) 60%, #3a8a48 100%);
    padding: 72px 28px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vol-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(90, 158, 98, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.vol-hero-deco {
    position: absolute;
    font-size: 7rem;
    opacity: 0.06;
    pointer-events: none;
}

.vol-hero-deco:nth-child(1) {
    top: -10px;
    left: 2%;
}

.vol-hero-deco:nth-child(2) {
    bottom: -10px;
    right: 4%;
    font-size: 5rem;
}

.vol-hero-logo {
    height: 72px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.vol-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: var(--tr);
}

.vol-hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.vol-hero h1 {
    font-family: var(--f-nunito);
    font-size: clamp(26px, 4.5vw, 46px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.vol-hero h1 span {
    color: var(--amarillo);
}

.vol-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
    margin: 0 auto 12px;
    line-height: 1.75;
}

.vol-hero-nota {
    display: inline-block;
    background: rgba(245, 200, 66, 0.18);
    border: 1px solid rgba(245, 200, 66, 0.35);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--amarillo);
    font-weight: 700;
    max-width: 640px;
    text-align: center;
    margin-top: 8px;
}

/* Wave del hero */
.vol-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.vol-hero-wave svg {
    display: block;
    width: 100%;
}

/* ─── MAIN CONTAINER ─────────────────────────────────── */
.vol-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ─── STEPPER / PROGRESS ─────────────────────────────── */
.vol-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 48px auto 52px;
    max-width: 700px;
    position: relative;
}

.vol-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
    position: relative;
    cursor: default;
}

.vol-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #e0d5c8;
    z-index: 0;
    transition: background 0.4s;
}

.vol-step.done:not(:last-child)::after {
    background: var(--verde-medio);
}

.vol-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8ddd3;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    z-index: 1;
    transition: var(--tr);
    position: relative;
    flex-shrink: 0;
}

.vol-step.active .vol-step-circle {
    background: var(--verde-oscuro);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(42, 107, 53, 0.18);
}

.vol-step.done .vol-step-circle {
    background: var(--verde-medio);
    color: #fff;
}

.vol-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
}

.vol-step.active .vol-step-label {
    color: var(--verde-oscuro);
}

.vol-step.done .vol-step-label {
    color: var(--verde-medio);
}

/* ─── CARD / SECTION ─────────────────────────────────── */
.vol-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 40px 44px;
    margin-bottom: 0;
    display: none;
}

.vol-card.active {
    display: block;
}

.vol-card-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--verde-mint);
}

.vol-card-header .card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--verde-medio);
    margin-bottom: 6px;
    display: block;
}

.vol-card-header h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--verde-oscuro);
    line-height: 1.2;
}

.vol-card-header p {
    font-size: 0.92rem;
    color: #8a7060;
    margin-top: 8px;
    line-height: 1.65;
}

/* ─── FIELDS ─────────────────────────────────────────── */
.field-group {
    margin-bottom: 22px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.field-label .req {
    color: var(--rosa-coral);
    margin-left: 3px;
}

.field-label .opt {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    margin-left: 6px;
    font-style: italic;
}

.field-hint {
    font-size: 0.78rem;
    color: #9a8070;
    margin-top: 5px;
    line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #e8ddd3;
    border-radius: 14px;
    font-family: var(--f-nunito);
    font-size: 0.97rem;
    color: var(--marron);
    background: #fdfaf7;
    transition: var(--tr);
    outline: none;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--verde-oscuro);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 107, 53, 0.1);
}

input.error,
textarea.error {
    border-color: var(--rosa-coral);
    box-shadow: 0 0 0 3px rgba(232, 99, 122, 0.12);
}

.field-error-msg {
    font-size: 0.78rem;
    color: var(--rosa-coral);
    font-weight: 700;
    margin-top: 5px;
    display: none;
}

.field-error-msg.show {
    display: block;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

/* ─── RADIO / CHECK OPTIONS ──────────────────────────── */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.options-grid.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opt-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fdfaf7;
    border: 2px solid #e8ddd3;
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    transition: var(--tr);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--marron);
    line-height: 1.4;
    user-select: none;
}

.opt-label:hover {
    border-color: var(--verde-medio);
    background: rgba(42, 107, 53, 0.04);
}

.opt-label input[type="radio"],
.opt-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--verde-oscuro);
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}

.opt-label:has(input:checked) {
    border-color: var(--verde-oscuro);
    background: rgba(42, 107, 53, 0.06);
    color: var(--verde-oscuro);
}

.opt-label .opt-sub {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a08060;
    display: block;
    margin-top: 2px;
}

/* ─── SEPARADOR SECCIÓN ──────────────────────────────── */
.vol-section-divider {
    font-size: 1rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin: 32px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vol-section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--verde-mint);
    border-radius: 2px;
}

/* ─── CUOTA BOX ──────────────────────────────────────── */
.cuota-box {
    background: linear-gradient(135deg, rgba(42, 107, 53, 0.06) 0%, rgba(90, 158, 98, 0.08) 100%);
    border: 2px solid rgba(42, 107, 53, 0.2);
    border-radius: 20px;
    padding: 28px 28px;
    margin-bottom: 28px;
}

.cuota-box h3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--verde-oscuro);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cuota-box p {
    font-size: 0.92rem;
    color: var(--marron);
    margin-bottom: 10px;
    line-height: 1.7;
}

.cuota-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.cuota-box ul li {
    font-size: 0.9rem;
    color: var(--marron);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cuota-box ul li::before {
    content: '✅';
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cuota-sinpe {
    background: rgba(42, 107, 53, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--verde-oscuro);
    font-weight: 700;
    margin-top: 10px;
}

/* ─── FILE UPLOAD ────────────────────────────────────── */
.file-upload-wrap {
    transition: var(--tr);
}

.file-upload-wrap.hidden {
    display: none;
}

.drop-zone {
    border: 2px dashed #c8bdb0;
    border-radius: 18px;
    background: #fdfaf7;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--tr);
    position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--verde-oscuro);
    background: rgba(42, 107, 53, 0.04);
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.drop-zone-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-bottom: 6px;
}

.drop-zone-sub {
    font-size: 0.82rem;
    color: #a08060;
    margin-bottom: 16px;
}

.drop-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--verde-oscuro);
    color: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--f-nunito);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: var(--tr);
}

.drop-zone-btn:hover {
    background: #1f5228;
}

input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Preview */
.file-preview {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: #f4ede6;
    border: 2px solid #e8ddd3;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

.file-preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(42, 107, 53, 0.06);
}

.file-preview-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.file-remove-btn {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--rosa-coral);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: var(--tr);
}

.file-remove-btn:hover {
    background: rgba(232, 99, 122, 0.1);
}

/* PDF preview */
.file-preview-pdf {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.file-preview-pdf-icon {
    font-size: 2.5rem;
}

/* ─── NAVEGACIÓN ─────────────────────────────────────── */
.vol-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-nunito);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--verde-oscuro);
    border: 2px solid var(--verde-mint);
    cursor: pointer;
    transition: var(--tr);
}

.btn-back:hover {
    background: var(--verde-mint);
    transform: translateX(-2px);
}

.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-nunito);
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    background: var(--verde-oscuro);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--tr);
    box-shadow: 0 6px 20px rgba(42, 107, 53, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    background: #1f5228;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 107, 53, 0.4);
}

.btn-submit {
    background: var(--rosa-coral);
    box-shadow: var(--shadow-coral);
    animation: pulse-submit 2.5s ease-in-out infinite;
}

.btn-submit:hover {
    background: #cc4f66;
    animation: none;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

@keyframes pulse-submit {

    0%,
    100% {
        box-shadow: 0 8px 28px rgba(232, 99, 122, 0.35);
    }

    50% {
        box-shadow: 0 8px 40px rgba(232, 99, 122, 0.6), 0 0 0 8px rgba(232, 99, 122, 0.1);
    }
}

/* ─── PANTALLA DE ÉXITO ──────────────────────────────── */
.vol-success {
    display: none;
    text-align: center;
    padding: 72px 32px 80px;
    animation: fade-up 0.5s ease;
}

.vol-success.show {
    display: block;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-emoji {
    font-size: 5rem;
    margin-bottom: 24px;
    display: block;
    animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: var(--f-caveat);
    font-size: clamp(36px, 6vw, 54px);
    font-weight: 700;
    color: var(--verde-oscuro);
    margin-bottom: 16px;
    line-height: 1.2;
}

.success-msg {
    font-size: 1.05rem;
    color: var(--marron);
    max-width: 560px;
    margin: 0 auto 12px;
    line-height: 1.75;
}

.success-detail {
    font-size: 0.9rem;
    color: #a08060;
    max-width: 480px;
    margin: 0 auto 36px;
}

.success-badge {
    display: inline-block;
    background: var(--verde-mint);
    color: var(--verde-oscuro);
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}

.success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--verde-oscuro);
    color: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--f-nunito);
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--tr);
}

.btn-volver:hover {
    background: #1f5228;
    transform: translateY(-2px);
}

/* ─── UPLOAD LOADING ─────────────────────────────────── */
.upload-progress {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    padding: 12px 0;
}

.upload-progress.show {
    display: flex;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--verde-mint);
    border-top-color: var(--verde-oscuro);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
    .vol-card {
        padding: 28px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .options-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .vol-stepper {
        gap: 0;
    }

    .vol-step-label {
        font-size: 0.62rem;
        max-width: 60px;
    }

    .vol-step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }

    .vol-nav {
        flex-direction: column;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ─── FOOTER MÍNIMO ──────────────────────────────────── */
.vol-footer {
    background: var(--verde-muy-oscuro);
    color: rgba(253, 246, 238, 0.5);
    text-align: center;
    font-size: 0.82rem;
    padding: 24px;
    margin-top: 0;
}

.vol-footer a {
    color: var(--verde-mint);
    font-weight: 700;
    transition: var(--tr);
}

.vol-footer a:hover {
    color: #fff;
}