/* Hero Section */
.voluntariado-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.voluntariado-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Contexto del Proyecto */
.proyecto-contexto {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--gray-200);
}

.contexto-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contexto-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contexto-icon {
    flex-shrink: 0;
}

.contexto-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.contexto-content {
    padding: 1.5rem;
}

.contexto-content p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.contexto-content p:last-of-type {
    margin-bottom: 1.5rem;
}

.contexto-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #0369a1;
    margin: 1rem 0 1.5rem !important;
}

.contexto-info svg {
    flex-shrink: 0;
}

.contexto-actions {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* No hay vacantes */
.no-vacantes {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-vacantes-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.no-vacantes h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 1rem;
}

.no-vacantes p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-vacantes-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Estadísticas */
.voluntariado-stats {
    padding: 3rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.3);
}

.stat-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-content h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-content p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Mensajes */
.mensaje-section {
    padding: 2rem 0;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 0 auto;
    max-width: 800px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.alert-content p {
    margin: 0;
    font-size: 1rem;
}

/* Vacantes */
.vacantes-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.vacante-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.vacante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.vacante-header {
    margin-bottom: 1.5rem;
}

.vacante-header h3 {
    font-size: 1.4rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.vacante-ubicacion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.vacante-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vacante-requisitos {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.vacante-requisitos h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.vacante-requisitos p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.vacante-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Formulario */
.solicitud-section {
    padding: 4rem 0;
    background: white;
}

.solicitud-container {
    max-width: 800px;
    margin: 0 auto;
}

.solicitud-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solicitud-header h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.solicitud-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
}

.solicitud-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-100);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-700);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilos para mensajes de ayuda y validación */
.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.opcional {
    font-weight: normal;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.success-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 500;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Estilos para información de vacante seleccionada */
.vacante-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid #007bff !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.vacante-info h4 {
    color: #007bff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.vacante-info p {
    margin: 5px 0 !important;
    line-height: 1.4 !important;
}

.vacante-info .proyecto-info {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.vacante-info .detalles {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid #dee2e6 !important;
}

.vacante-info small {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

/* Estilos mejorados para alertas */
.alert {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1c2c7 100%);
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
}

/* Información */
.info-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.info-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .voluntariado-hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .vacantes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .solicitud-form {
        padding: 1.5rem;
    }
    
    .solicitud-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-content h3 {
        font-size: 2.5rem;
    }
    
    .vacante-card {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}